@@ -139,9 +139,6 @@ struct AntinucleiInJets {
139139 Configurable<double > nSigmaItsMin{" nSigmaItsMin" , -3.0 , " nSigmaITS min" };
140140 Configurable<double > nSigmaItsMax{" nSigmaItsMax" , +3.0 , " nSigmaITS max" };
141141
142- // Initialize ITS PID Response object
143- o2::aod::ITSResponse itsResponse;
144-
145142 // CCDB manager service for accessing condition data
146143 Service<o2::ccdb::BasicCCDBManager> ccdb;
147144
@@ -255,9 +252,6 @@ struct AntinucleiInJets {
255252 // Reconstructed antiproton spectra in jets and UE (MC-matched) with TPC/TOF PID
256253 if (doprocessJetsMCrec) {
257254
258- // Configure ITS PID response with default parameters for Monte Carlo analysis
259- itsResponse.setMCDefaultParameters ();
260-
261255 // Event counter
262256 registryMC.add (" recEvents" , " number of reconstructed events in mc" , HistType::kTH1F , {{20 , 0 , 20 , " counter" }});
263257
@@ -339,9 +333,6 @@ struct AntinucleiInJets {
339333 // Systematic uncertainties (MC)
340334 if (doprocessSystEff) {
341335
342- // Configure ITS PID response with default parameters for Monte Carlo analysis
343- itsResponse.setMCDefaultParameters ();
344-
345336 // Histograms for generated antiparticles
346337 registryMC.add (" antiproton_gen_syst" , " antiproton_gen_syst" , HistType::kTH1F , {{nbins, min, max, " #it{p}_{T} (GeV/#it{c})" }});
347338 registryMC.add (" antideuteron_gen_syst" , " antideuteron_gen_syst" , HistType::kTH1F , {{nbins, 2 * min, 2 * max, " #it{p}_{T} (GeV/#it{c})" }});
@@ -752,6 +743,9 @@ struct AntinucleiInJets {
752743 return ;
753744 registryData.fill (HIST (" number_of_events_data" ), 8.5 );
754745
746+ // Initialize ITS PID Response object
747+ o2::aod::ITSResponse itsResponse;
748+
755749 // Loop over reconstructed tracks
756750 int id (-1 );
757751 std::vector<fastjet::PseudoJet> fjParticles;
@@ -1188,6 +1182,10 @@ struct AntinucleiInJets {
11881182 // Antinuclei reconstruction efficiency
11891183 void processAntinucleiEfficiency (RecCollisionsMc const & collisions, AntiNucleiTracksMc const & mcTracks, aod::McParticles const & mcParticles)
11901184 {
1185+
1186+ // Initialize ITS PID Response object
1187+ o2::aod::ITSResponse itsResponse;
1188+
11911189 // Loop over all simulated collision events
11921190 for (const auto & collision : collisions) {
11931191
@@ -1499,6 +1497,9 @@ struct AntinucleiInJets {
14991497 // Reconstructed events
15001498 void processJetsMCrec (RecCollisionsMc const & collisions, AntiNucleiTracksMc const & mcTracks, McParticles const &)
15011499 {
1500+ // Initialize ITS PID Response object
1501+ o2::aod::ITSResponse itsResponse;
1502+
15021503 // Loop over all reconstructed collisions
15031504 for (const auto & collision : collisions) {
15041505
@@ -1759,6 +1760,9 @@ struct AntinucleiInJets {
17591760 // Process real data with systematic variations of analysis parameters
17601761 void processSystData (SelectedCollisions::iterator const & collision, AntiNucleiTracks const & tracks)
17611762 {
1763+ // Initialize ITS PID Response object
1764+ o2::aod::ITSResponse itsResponse;
1765+
17621766 // Event counter: before event selection
17631767 registryData.fill (HIST (" number_of_events_data_syst" ), 0.5 );
17641768
@@ -1903,6 +1907,9 @@ struct AntinucleiInJets {
19031907 // Process MC with systematic variations of analysis parameters
19041908 void processSystEff (GenCollisionsMc const & genCollisions, RecCollisionsMc const & recCollisions, AntiNucleiTracksMc const & mcTracks, aod::McParticles const & mcParticles)
19051909 {
1910+ // Initialize ITS PID Response object
1911+ o2::aod::ITSResponse itsResponse;
1912+
19061913 // Cut settings
19071914 static std::vector<double > maxDcaxySyst = {
19081915 0.071 , 0.060 , 0.066 , 0.031 , 0.052 , 0.078 , 0.045 , 0.064 , 0.036 , 0.074 ,
0 commit comments