@@ -220,7 +220,7 @@ using KaonMcGenTrack = KaonMcGenTracks::iterator;
220220} // namespace o2::aod
221221
222222enum CollisionLabels {
223- kTotColBeforeHasMcCollision = 0 ,
223+ kTotColBeforeHasMcCollision = 1 ,
224224 kTotCol ,
225225 kPassSelCol
226226};
@@ -536,24 +536,26 @@ struct LambdaTableProducer {
536536 }
537537 }
538538
539- // Load reco efficiency histograms
540- void LoadRecoEfficiencyHistograms ( )
539+ template < typename T>
540+ void GetCorrFactHists (T& vhists, std::vector<std::string> const & strings )
541541 {
542- auto GetCorrFactHists = [&]<typename T>(T& vhists, std::vector<std::string> const & strings) {
543- using HistPtr = typename T::value_type;
544- for (size_t i = 0 ; i < vhists.size (); ++i) {
545- auto * obj = ccdbObjRecoEff->FindObject (strings[i].c_str ());
546- if (!obj) {
547- LOGF (fatal, " CCDB object %s not found!" , strings[i].c_str ());
548- continue ;
549- }
550- vhists[i] = dynamic_cast <HistPtr>(obj->Clone ());
551- if (!vhists[i]) {
552- LOGF (fatal, " CCDB object %s could not be cast!" , strings[i].c_str ());
553- }
542+ using HistPtr = typename T::value_type;
543+ for (size_t i = 0 ; i < vhists.size (); ++i) {
544+ auto * obj = ccdbObjRecoEff->FindObject (strings[i].c_str ());
545+ if (!obj) {
546+ LOGF (fatal, " CCDB object %s not found!" , strings[i].c_str ());
547+ continue ;
554548 }
555- };
549+ vhists[i] = dynamic_cast <HistPtr>(obj->Clone ());
550+ if (!vhists[i]) {
551+ LOGF (fatal, " CCDB object %s could not be cast!" , strings[i].c_str ());
552+ }
553+ }
554+ }
556555
556+ // Load reco efficiency histograms
557+ void LoadRecoEfficiencyHistograms ()
558+ {
557559 if (cCorrFactHist == kEffCorrPtCent ) {
558560 GetCorrFactHists (corrHist.vPtCentCorrHists , vCorrFactStrings[kEffCorrPtCent ]);
559561 } else if (cCorrFactHist == kEffCorrPtRapCent ) {
0 commit comments