@@ -60,15 +60,13 @@ using namespace o2::framework::expressions;
6060using namespace o2 ::constants::physics;
6161using namespace o2 ::constants::math;
6262
63-
6463// Define convenient aliases for commonly used table joins
6564using SelectedCollisions = soa::Join<aod::Collisions, aod::EvSels, aod::CentFT0Ms>;
6665using RecCollisionsMc = soa::Join<aod::Collisions, aod::EvSels, aod::CentFT0Ms, aod::McCollisionLabels>;
6766using GenCollisionsMc = soa::Join<aod::McCollisions, aod::McCentFT0Ms>;
6867using AntiNucleiTracks = soa::Join<aod::Tracks, aod::TracksExtra, aod::TrackSelection, aod::TrackSelectionExtension, aod::TracksDCA, aod::pidTPCFullPr, aod::pidTPCFullDe, aod::pidTOFFullPr, aod::pidTOFFullDe>;
6968using AntiNucleiTracksMc = soa::Join<AntiNucleiTracks, aod::McTrackLabels>;
7069
71-
7270// Lightweight particle container
7371struct ReducedParticle {
7472 double px;
@@ -138,24 +136,16 @@ struct AntinucleiInJetsCDF {
138136 registryData.add (" number_of_events_data" , " number of events in data" , HistType::kTH1F , {{20 , 0 , 20 , " counter" }});
139137
140138 // Antiproton histograms
141- registryData.add (" antip_toward_tpc" , " antip_toward_tpc" , HistType::kTH2F , {{nbins, min, max, " #it{p}_{T} (GeV/#it{c})" },
142- {400 , -20.0 , 20.0 , " n#sigma_{TPC}" }});
143- registryData.add (" antip_toward_tof" , " antip_toward_tof" , HistType::kTH2F , {{nbins, min, max, " #it{p}_{T} (GeV/#it{c})" },
144- {400 , -20.0 , 20.0 , " n#sigma_{TOF}" }});
145- registryData.add (" antip_transv_tpc" , " antip_transv_tpc" , HistType::kTH2F , {{nbins, min, max, " #it{p}_{T} (GeV/#it{c})" },
146- {400 , -20.0 , 20.0 , " n#sigma_{TPC}" }});
147- registryData.add (" antip_transv_tof" , " antip_transv_tof" , HistType::kTH2F , {{nbins, min, max, " #it{p}_{T} (GeV/#it{c})" },
148- {400 , -20.0 , 20.0 , " n#sigma_{TOF}" }});
139+ registryData.add (" antip_toward_tpc" , " antip_toward_tpc" , HistType::kTH2F , {{nbins, min, max, " #it{p}_{T} (GeV/#it{c})" }, {400 , -20.0 , 20.0 , " n#sigma_{TPC}" }});
140+ registryData.add (" antip_toward_tof" , " antip_toward_tof" , HistType::kTH2F , {{nbins, min, max, " #it{p}_{T} (GeV/#it{c})" }, {400 , -20.0 , 20.0 , " n#sigma_{TOF}" }});
141+ registryData.add (" antip_transv_tpc" , " antip_transv_tpc" , HistType::kTH2F , {{nbins, min, max, " #it{p}_{T} (GeV/#it{c})" }, {400 , -20.0 , 20.0 , " n#sigma_{TPC}" }});
142+ registryData.add (" antip_transv_tof" , " antip_transv_tof" , HistType::kTH2F , {{nbins, min, max, " #it{p}_{T} (GeV/#it{c})" }, {400 , -20.0 , 20.0 , " n#sigma_{TOF}" }});
149143
150144 // Antideuteron histograms
151- registryData.add (" antid_toward_tpc" , " antid_toward_tpc" , HistType::kTH2F , {{nbins, min, max, " #it{p}_{T} (GeV/#it{c})" },
152- {400 , -20.0 , 20.0 , " n#sigma_{TPC}" }});
153- registryData.add (" antid_toward_tof" , " antid_toward_tof" , HistType::kTH2F , {{nbins, min, max, " #it{p}_{T} (GeV/#it{c})" },
154- {400 , -20.0 , 20.0 , " n#sigma_{TOF}" }});
155- registryData.add (" antid_transv_tpc" , " antid_transv_tpc" , HistType::kTH2F , {{nbins, min, max, " #it{p}_{T} (GeV/#it{c})" },
156- {400 , -20.0 , 20.0 , " n#sigma_{TPC}" }});
157- registryData.add (" antid_transv_tof" , " antid_transv_tof" , HistType::kTH2F , {{nbins, min, max, " #it{p}_{T} (GeV/#it{c})" },
158- {400 , -20.0 , 20.0 , " n#sigma_{TOF}" }});
145+ registryData.add (" antid_toward_tpc" , " antid_toward_tpc" , HistType::kTH2F , {{nbins, min, max, " #it{p}_{T} (GeV/#it{c})" }, {400 , -20.0 , 20.0 , " n#sigma_{TPC}" }});
146+ registryData.add (" antid_toward_tof" , " antid_toward_tof" , HistType::kTH2F , {{nbins, min, max, " #it{p}_{T} (GeV/#it{c})" }, {400 , -20.0 , 20.0 , " n#sigma_{TOF}" }});
147+ registryData.add (" antid_transv_tpc" , " antid_transv_tpc" , HistType::kTH2F , {{nbins, min, max, " #it{p}_{T} (GeV/#it{c})" }, {400 , -20.0 , 20.0 , " n#sigma_{TPC}" }});
148+ registryData.add (" antid_transv_tof" , " antid_transv_tof" , HistType::kTH2F , {{nbins, min, max, " #it{p}_{T} (GeV/#it{c})" }, {400 , -20.0 , 20.0 , " n#sigma_{TOF}" }});
159149 }
160150
161151 // Process generated MC
@@ -188,22 +178,14 @@ struct AntinucleiInJetsCDF {
188178 registryMC.add (" antid_rec_tof" , " antid_rec_tof" , HistType::kTH1F , {{nbins, min, max, " #it{p}_{T} (GeV/#it{c})" }});
189179
190180 // Histograms for reconstructed particles in different azimuthal regions
191- registryMC.add (" antip_toward_rec_tpc" , " antip_toward_rec_tpc" , HistType::kTH1F ,
192- {{nbins, min, max, " #it{p}_{T} (GeV/#it{c})" }});
193- registryMC.add (" antip_toward_rec_tof" , " antip_toward_rec_tof" , HistType::kTH1F ,
194- {{nbins, min, max, " #it{p}_{T} (GeV/#it{c})" }});
195- registryMC.add (" antip_transv_rec_tpc" , " antip_transv_rec_tpc" , HistType::kTH1F ,
196- {{nbins, min, max, " #it{p}_{T} (GeV/#it{c})" }});
197- registryMC.add (" antip_transv_rec_tof" , " antip_transv_rec_tof" , HistType::kTH1F ,
198- {{nbins, min, max, " #it{p}_{T} (GeV/#it{c})" }});
199- registryMC.add (" antid_toward_rec_tpc" , " antid_toward_rec_tpc" , HistType::kTH1F ,
200- {{nbins, min, max, " #it{p}_{T} (GeV/#it{c})" }});
201- registryMC.add (" antid_toward_rec_tof" , " antid_toward_rec_tof" , HistType::kTH1F ,
202- {{nbins, min, max, " #it{p}_{T} (GeV/#it{c})" }});
203- registryMC.add (" antid_transv_rec_tpc" , " antid_transv_rec_tpc" , HistType::kTH1F ,
204- {{nbins, min, max, " #it{p}_{T} (GeV/#it{c})" }});
205- registryMC.add (" antid_transv_rec_tof" , " antid_transv_rec_tof" , HistType::kTH1F ,
206- {{nbins, min, max, " #it{p}_{T} (GeV/#it{c})" }});
181+ registryMC.add (" antip_toward_rec_tpc" , " antip_toward_rec_tpc" , HistType::kTH1F , {{nbins, min, max, " #it{p}_{T} (GeV/#it{c})" }});
182+ registryMC.add (" antip_toward_rec_tof" , " antip_toward_rec_tof" , HistType::kTH1F , {{nbins, min, max, " #it{p}_{T} (GeV/#it{c})" }});
183+ registryMC.add (" antip_transv_rec_tpc" , " antip_transv_rec_tpc" , HistType::kTH1F , {{nbins, min, max, " #it{p}_{T} (GeV/#it{c})" }});
184+ registryMC.add (" antip_transv_rec_tof" , " antip_transv_rec_tof" , HistType::kTH1F , {{nbins, min, max, " #it{p}_{T} (GeV/#it{c})" }});
185+ registryMC.add (" antid_toward_rec_tpc" , " antid_toward_rec_tpc" , HistType::kTH1F , {{nbins, min, max, " #it{p}_{T} (GeV/#it{c})" }});
186+ registryMC.add (" antid_toward_rec_tof" , " antid_toward_rec_tof" , HistType::kTH1F , {{nbins, min, max, " #it{p}_{T} (GeV/#it{c})" }});
187+ registryMC.add (" antid_transv_rec_tpc" , " antid_transv_rec_tpc" , HistType::kTH1F , {{nbins, min, max, " #it{p}_{T} (GeV/#it{c})" }});
188+ registryMC.add (" antid_transv_rec_tof" , " antid_transv_rec_tof" , HistType::kTH1F , {{nbins, min, max, " #it{p}_{T} (GeV/#it{c})" }});
207189
208190 // Histograms for secondary antiprotons
209191 registryMC.add (" antip_toward_prim" , " antip_toward_prim" , HistType::kTH1F , {{nbins, min, max, " #it{p}_{T} (GeV/#it{c})" }});
@@ -240,9 +222,9 @@ struct AntinucleiInJetsCDF {
240222 if ((!hasITSHit (track, 1 )) && (!hasITSHit (track, 2 )) && (!hasITSHit (track, 3 )))
241223 return false ;
242224 if (!track.hasTPC ())
243- return false ;
225+ return false ;
244226 if (track.tpcNClsCrossedRows () < MinTpcCr)
245- return false ;
227+ return false ;
246228 if (track.tpcChi2NCl () > MaxChi2Tpc)
247229 return false ;
248230 if (track.itsChi2NCl () > MaxChi2Its)
@@ -310,8 +292,7 @@ struct AntinucleiInJetsCDF {
310292 {
311293 static constexpr double Two = 2.0 ;
312294 const double deltaPhi = std::remainder (particle.Phi () - leadingParticle.Phi (), o2::constants::math::TwoPI);
313- return (std::abs (deltaPhi) >= o2::constants::math::PIThird &&
314- std::abs (deltaPhi) < Two * o2::constants::math::PIThird);
295+ return (std::abs (deltaPhi) >= o2::constants::math::PIThird && std::abs (deltaPhi) < Two * o2::constants::math::PIThird);
315296 }
316297
317298 // Check if particle is a physical primary or a decay product of a heavy-flavor hadron
@@ -453,7 +434,6 @@ struct AntinucleiInJetsCDF {
453434 }
454435 PROCESS_SWITCH (AntinucleiInJetsCDF, processData, " Process real-data analysis" , true );
455436
456-
457437 // Define preslice to group MC particles by their associated MC collision
458438 Preslice<aod::McParticles> mcParticlesPerMcCollision = o2::aod::mcparticle::mcCollisionId;
459439
@@ -551,7 +531,6 @@ struct AntinucleiInJetsCDF {
551531 }
552532 PROCESS_SWITCH (AntinucleiInJetsCDF, processGenMC, " Process gen MC" , false );
553533
554-
555534 // Define preslice to group reconstructed MC tracks by collision
556535 Preslice<AntiNucleiTracksMc> mcTracksPerMcCollision = o2::aod::track::collisionId;
557536
0 commit comments