@@ -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
@@ -189,21 +179,21 @@ struct AntinucleiInJetsCDF {
189179
190180 // Histograms for reconstructed particles in different azimuthal regions
191181 registryMC.add (" antip_toward_rec_tpc" , " antip_toward_rec_tpc" , HistType::kTH1F ,
192- {{nbins, min, max, " #it{p}_{T} (GeV/#it{c})" }});
182+ {{nbins, min, max, " #it{p}_{T} (GeV/#it{c})" }});
193183 registryMC.add (" antip_toward_rec_tof" , " antip_toward_rec_tof" , HistType::kTH1F ,
194- {{nbins, min, max, " #it{p}_{T} (GeV/#it{c})" }});
184+ {{nbins, min, max, " #it{p}_{T} (GeV/#it{c})" }});
195185 registryMC.add (" antip_transv_rec_tpc" , " antip_transv_rec_tpc" , HistType::kTH1F ,
196- {{nbins, min, max, " #it{p}_{T} (GeV/#it{c})" }});
186+ {{nbins, min, max, " #it{p}_{T} (GeV/#it{c})" }});
197187 registryMC.add (" antip_transv_rec_tof" , " antip_transv_rec_tof" , HistType::kTH1F ,
198- {{nbins, min, max, " #it{p}_{T} (GeV/#it{c})" }});
188+ {{nbins, min, max, " #it{p}_{T} (GeV/#it{c})" }});
199189 registryMC.add (" antid_toward_rec_tpc" , " antid_toward_rec_tpc" , HistType::kTH1F ,
200- {{nbins, min, max, " #it{p}_{T} (GeV/#it{c})" }});
190+ {{nbins, min, max, " #it{p}_{T} (GeV/#it{c})" }});
201191 registryMC.add (" antid_toward_rec_tof" , " antid_toward_rec_tof" , HistType::kTH1F ,
202- {{nbins, min, max, " #it{p}_{T} (GeV/#it{c})" }});
192+ {{nbins, min, max, " #it{p}_{T} (GeV/#it{c})" }});
203193 registryMC.add (" antid_transv_rec_tpc" , " antid_transv_rec_tpc" , HistType::kTH1F ,
204- {{nbins, min, max, " #it{p}_{T} (GeV/#it{c})" }});
194+ {{nbins, min, max, " #it{p}_{T} (GeV/#it{c})" }});
205195 registryMC.add (" antid_transv_rec_tof" , " antid_transv_rec_tof" , HistType::kTH1F ,
206- {{nbins, min, max, " #it{p}_{T} (GeV/#it{c})" }});
196+ {{nbins, min, max, " #it{p}_{T} (GeV/#it{c})" }});
207197
208198 // Histograms for secondary antiprotons
209199 registryMC.add (" antip_toward_prim" , " antip_toward_prim" , HistType::kTH1F , {{nbins, min, max, " #it{p}_{T} (GeV/#it{c})" }});
@@ -240,9 +230,9 @@ struct AntinucleiInJetsCDF {
240230 if ((!hasITSHit (track, 1 )) && (!hasITSHit (track, 2 )) && (!hasITSHit (track, 3 )))
241231 return false ;
242232 if (!track.hasTPC ())
243- return false ;
233+ return false ;
244234 if (track.tpcNClsCrossedRows () < MinTpcCr)
245- return false ;
235+ return false ;
246236 if (track.tpcChi2NCl () > MaxChi2Tpc)
247237 return false ;
248238 if (track.itsChi2NCl () > MaxChi2Its)
@@ -311,7 +301,7 @@ struct AntinucleiInJetsCDF {
311301 static constexpr double Two = 2.0 ;
312302 const double deltaPhi = std::remainder (particle.Phi () - leadingParticle.Phi (), o2::constants::math::TwoPI);
313303 return (std::abs (deltaPhi) >= o2::constants::math::PIThird &&
314- std::abs (deltaPhi) < Two * o2::constants::math::PIThird);
304+ std::abs (deltaPhi) < Two * o2::constants::math::PIThird);
315305 }
316306
317307 // Check if particle is a physical primary or a decay product of a heavy-flavor hadron
@@ -453,7 +443,6 @@ struct AntinucleiInJetsCDF {
453443 }
454444 PROCESS_SWITCH (AntinucleiInJetsCDF, processData, " Process real-data analysis" , true );
455445
456-
457446 // Define preslice to group MC particles by their associated MC collision
458447 Preslice<aod::McParticles> mcParticlesPerMcCollision = o2::aod::mcparticle::mcCollisionId;
459448
@@ -551,7 +540,6 @@ struct AntinucleiInJetsCDF {
551540 }
552541 PROCESS_SWITCH (AntinucleiInJetsCDF, processGenMC, " Process gen MC" , false );
553542
554-
555543 // Define preslice to group reconstructed MC tracks by collision
556544 Preslice<AntiNucleiTracksMc> mcTracksPerMcCollision = o2::aod::track::collisionId;
557545
0 commit comments