Skip to content

Commit

Permalink
removed the unused parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Prottay Das committed Dec 23, 2024
1 parent d1780d2 commit 1ec48ef
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions PWGLF/TableProducer/Common/spvector.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -173,19 +173,19 @@ struct spvector {
TF1* fMultCutHigh = nullptr;
TF1* fMultMultPVCut = nullptr;
*/

/*
template <typename TCollision>
bool eventSelected(TCollision collision, const double& centrality)
{ /*
{
auto multNTracksPV = collision.multNTracksPV();
if (multNTracksPV < fMultPVCutLow->Eval(centrality))
return 0;
if (multNTracksPV > fMultPVCutHigh->Eval(centrality))
return 0;
*/
return 1;
}

*/
void init(o2::framework::InitContext&)
{

Expand Down Expand Up @@ -424,7 +424,8 @@ struct spvector {
return;
}

if (collision.sel8() && centrality > cfgCutCentralityMin && centrality < cfgCutCentralityMax && TMath::Abs(vz) < cfgCutVertex && collision.has_foundFT0() && eventSelected(collision, centrality) && collision.selection_bit(aod::evsel::kNoTimeFrameBorder) && collision.selection_bit(aod::evsel::kNoITSROFrameBorder)) {
// if (collision.sel8() && centrality > cfgCutCentralityMin && centrality < cfgCutCentralityMax && TMath::Abs(vz) < cfgCutVertex && collision.has_foundFT0() && eventSelected(collision, centrality) && collision.selection_bit(aod::evsel::kNoTimeFrameBorder) && collision.selection_bit(aod::evsel::kNoITSROFrameBorder)) {
if (collision.sel8() && centrality > cfgCutCentralityMin && centrality < cfgCutCentralityMax && TMath::Abs(vz) < cfgCutVertex && collision.has_foundFT0() && collision.selection_bit(aod::evsel::kNoTimeFrameBorder) && collision.selection_bit(aod::evsel::kNoITSROFrameBorder)) {

Check warning on line 428 in PWGLF/TableProducer/Common/spvector.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root-entity]

Consider replacing ROOT entities with equivalents from standard C++ or from O2.
triggerevent = true;
if (useGainCallib && (currentRunNumber != lastRunNumber)) {
gainprofile = ccdb->getForTimeStamp<TH2D>(ConfGainPath.value, bc.timestamp());
Expand Down

0 comments on commit 1ec48ef

Please sign in to comment.