@@ -155,6 +155,9 @@ struct Phik0shortanalysis {
155155 Configurable<float > maxChi2TPC{" maxChi2TPC" , 4 .0f , " max chi2 per cluster TPC" };
156156 Configurable<int > minITSnCls{" minITSnCls" , 4 , " min number of ITS clusters" };
157157 Configurable<float > maxChi2ITS{" maxChi2ITS" , 36 .0f , " max chi2 per cluster ITS" };
158+
159+ Configurable<bool > applyExtraPhiCuts{" applyExtraPhiCuts" , false , " Enable extra phi cut" };
160+ Configurable<std::vector<float >> extraPhiCuts{" extraPhiCuts" , {3 .07666f , 3 .12661f , 0 .03f , 6 .253f }, " Extra phi cuts" };
158161 } trackConfigs;
159162
160163 // Configurables on phi pT bins
@@ -2493,6 +2496,10 @@ struct Phik0shortanalysis {
24932496 dataEventHist.fill (HIST (" h2VertexZvsMult" ), collision.posZ (), collision.centFT0M ());
24942497
24952498 for (const auto & track : filteredTracks) {
2499+ if (trackConfigs.applyExtraPhiCuts && ((track.phi () > trackConfigs.extraPhiCuts ->at (0 ) && track.phi () < trackConfigs.extraPhiCuts ->at (1 )) ||
2500+ track.phi () <= trackConfigs.extraPhiCuts ->at (2 ) || track.phi () >= trackConfigs.extraPhiCuts ->at (3 )))
2501+ continue ;
2502+
24962503 dataEventHist.fill (HIST (" h5EtaDistribution" ), collision.posZ (), collision.centFT0M (), track.eta (), track.phi (), kGlobalplusITSonly );
24972504 if (track.hasTPC ()) {
24982505 dataEventHist.fill (HIST (" h5EtaDistribution" ), collision.posZ (), collision.centFT0M (), track.eta (), track.phi (), kGlobalonly );
@@ -2523,6 +2530,9 @@ struct Phik0shortanalysis {
25232530 mcEventHist.fill (HIST (" h2RecoMCVertexZvsMult" ), collision.posZ (), mcCollision.centFT0M ());
25242531
25252532 for (const auto & track : filteredMCTracks) {
2533+ if (trackConfigs.applyExtraPhiCuts && ((track.phi () > trackConfigs.extraPhiCuts ->at (0 ) && track.phi () < trackConfigs.extraPhiCuts ->at (1 )) ||
2534+ track.phi () <= trackConfigs.extraPhiCuts ->at (2 ) || track.phi () >= trackConfigs.extraPhiCuts ->at (3 )))
2535+ continue ;
25262536 if (!track.has_mcParticle ())
25272537 continue ;
25282538
@@ -2578,6 +2588,9 @@ struct Phik0shortanalysis {
25782588
25792589 auto filteredMCTracksThisColl = filteredMCTracks.sliceBy (preslices.perColl , collision.globalIndex ());
25802590 for (const auto & track : filteredMCTracksThisColl) {
2591+ if (trackConfigs.applyExtraPhiCuts && ((track.phi () > trackConfigs.extraPhiCuts ->at (0 ) && track.phi () < trackConfigs.extraPhiCuts ->at (1 )) ||
2592+ track.phi () <= trackConfigs.extraPhiCuts ->at (2 ) || track.phi () >= trackConfigs.extraPhiCuts ->at (3 )))
2593+ continue ;
25812594 if (!track.has_mcParticle ())
25822595 continue ;
25832596
0 commit comments