@@ -131,6 +131,17 @@ struct HfFemtoDreamProducer {
131131 Configurable<int > nClassesMl{" nClassesMl" , static_cast <int >(hf_cuts_ml::NCutScores), " Number of classes in ML model" };
132132 Configurable<std::vector<std::string>> namesInputFeatures{" namesInputFeatures" , std::vector<std::string>{" feature1" , " feature2" }, " Names of ML model input features" };
133133
134+ FemtoDreamTrackSelection trackCuts;
135+
136+ HfHelper hfHelper;
137+ o2::analysis::HfMlResponseLcToPKPi<float > hfMlResponse;
138+ std::vector<float > outputMlPKPi = {};
139+ std::vector<float > outputMlPiKP = {};
140+ o2::ccdb::CcdbApi ccdbApi;
141+ o2::hf_evsel::HfEventSelection hfEvSel;
142+
143+ float magField;
144+ int runNumber;
134145 using CandidateLc = soa::Join<aod::HfCand3Prong, aod::HfSelLc>;
135146 using CandidateLcMc = soa::Join<aod::HfCand3Prong, aod::HfSelLc, aod::HfCand3ProngMcRec>;
136147
@@ -145,22 +156,10 @@ struct HfFemtoDreamProducer {
145156
146157 using GeneratedMc = soa::Filtered<soa::Join<aod::McParticles, aod::HfCand3ProngMcGen>>;
147158
148- FemtoDreamTrackSelection trackCuts;
149-
150159 Filter filterSelectCandidateLc = (aod::hf_sel_candidate_lc::isSelLcToPKPi >= selectionFlagLc || aod::hf_sel_candidate_lc::isSelLcToPiKP >= selectionFlagLc);
151160
152161 HistogramRegistry qaRegistry{" QAHistos" , {}, OutputObjHandlingPolicy::AnalysisObject};
153- HistogramRegistry TrackRegistry{" Tracks" , {}, OutputObjHandlingPolicy::AnalysisObject};
154-
155- HfHelper hfHelper;
156- o2::analysis::HfMlResponseLcToPKPi<float > hfMlResponse;
157- std::vector<float > outputMlPKPi = {};
158- std::vector<float > outputMlPiKP = {};
159- o2::ccdb::CcdbApi ccdbApi;
160- o2::hf_evsel::HfEventSelection hfEvSel;
161-
162- float magField;
163- int runNumber;
162+ HistogramRegistry trackRegistry{" Tracks" , {}, OutputObjHandlingPolicy::AnalysisObject};
164163
165164 Service<o2::ccdb::BasicCCDBManager> ccdb; // / Accessing the CCDB
166165 o2::base::MatLayerCylSet* lut;
@@ -173,8 +172,8 @@ struct HfFemtoDreamProducer {
173172 LOGP (fatal, " One and only one process function must be enabled at a time." );
174173 }
175174
176- int CutBits = 8 * sizeof (o2::aod::femtodreamparticle::cutContainerType);
177- TrackRegistry .add (" AnalysisQA/CutCounter" , " ; Bit; Counter" , kTH1F , {{CutBits + 1 , -0.5 , CutBits + 0.5 }});
175+ int cutBits = 8 * sizeof (o2::aod::femtodreamparticle::cutContainerType);
176+ trackRegistry .add (" AnalysisQA/CutCounter" , " ; Bit; Counter" , kTH1F , {{cutBits + 1 , -0.5 , cutBits + 0.5 }});
178177
179178 // event QA histograms
180179 constexpr int kEventTypes = kPairSelected + 1 ;
@@ -207,7 +206,7 @@ struct HfFemtoDreamProducer {
207206 trackCuts.setSelection (trkPIDnSigmaMax, femtoDreamTrackSelection::kPIDnSigmaMax , femtoDreamSelection::kAbsUpperLimit );
208207 trackCuts.setPIDSpecies (trkPIDspecies);
209208 trackCuts.setnSigmaPIDOffset (trkPIDnSigmaOffsetTPC, trkPIDnSigmaOffsetTOF);
210- trackCuts.init <aod::femtodreamparticle::ParticleType::kTrack , aod::femtodreamparticle::TrackType::kNoChild , aod::femtodreamparticle::cutContainerType>(&qaRegistry, &TrackRegistry );
209+ trackCuts.init <aod::femtodreamparticle::ParticleType::kTrack , aod::femtodreamparticle::TrackType::kNoChild , aod::femtodreamparticle::cutContainerType>(&qaRegistry, &trackRegistry );
211210
212211 runNumber = 0 ;
213212 magField = 0.0 ;
@@ -352,7 +351,7 @@ struct HfFemtoDreamProducer {
352351 // std::vector<int> tmpIDtrack; // this vector keeps track of the matching of the primary track table row <-> aod::track table global index
353352 bool fIsTrackFilled = false ;
354353
355- for (auto & track : tracks) {
354+ for (const auto & track : tracks) {
356355 // / if the most open selection criteria are not fulfilled there is no
357356 // / point looking further at the track
358357 if (!trackCuts.isSelectedMinimal (track)) {
0 commit comments