Skip to content

Commit 9c8ef60

Browse files
author
Chiara De Martin
committed
add conditional to retrieve multiplicity information from ccdb
1 parent 50e10af commit 9c8ef60

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

EventFiltering/PWGLF/strangenessFilter.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -516,8 +516,8 @@ struct strangenessFilter {
516516
o2::parameters::GRPMagField* grpmag = ccdb->getForRun<o2::parameters::GRPMagField>("GLO/Config/GRPMagField", run);
517517
o2::base::Propagator::initFieldFromGRP(grpmag);
518518
mBz = static_cast<float>(grpmag->getNominalL3Field());
519-
mMeanMultT0C = ccdb->getForRun<std::vector<double>>("Users/e/ekryshen/meanT0C", run);
520-
mMeanMultT0A = ccdb->getForRun<std::vector<double>>("Users/e/ekryshen/meanT0A", run);
519+
if (useNormalisedMult) mMeanMultT0C = ccdb->getForRun<std::vector<double>>("Users/e/ekryshen/meanT0C", run);
520+
if (useNormalisedMult) mMeanMultT0A = ccdb->getForRun<std::vector<double>>("Users/e/ekryshen/meanT0A", run);
521521

522522
mDCAFitter.setBz(mBz);
523523
mDCAFitter.setPropagateToPCA(propToDCA);

0 commit comments

Comments
 (0)