@@ -146,6 +146,9 @@ struct JEPFlowAnalysis {
146146 Configurable<std::string> cfgQselHistPath{" cfgQselHistPath" , " " , " CCDB path for q2 histogram" };
147147 Configurable<bool > cfgEventQAonly{" cfgEventQAonly" , false , " event loop only" };
148148
149+ Configurable<bool > cfgSelEvtTwoHP{" cfgSelEvtTwoHP" , false , " event selection with two high pT" };
150+ Configurable<float > cfgHighPtSel{" cfgHighPtSel" , 5.0 , " pT threshold with cfgSelEvtTwoHP" };
151+
149152 Configurable<std::string> cfgDetName{" cfgDetName" , " FT0C" , " The name of detector to be analyzed" };
150153 Configurable<std::string> cfgRefAName{" cfgRefAName" , " TPCPos" , " The name of detector for reference A" };
151154 Configurable<std::string> cfgRefBName{" cfgRefBName" , " TPCNeg" , " The name of detector for reference B" };
@@ -195,6 +198,8 @@ struct JEPFlowAnalysis {
195198 float q2selHigh = 100 .;
196199 float q2selLow = 0 .;
197200
201+ int nHighPt = 0 ;
202+
198203 std::vector<float > ft0RelGainConst{};
199204 std::vector<float > fv0RelGainConst{};
200205
@@ -411,6 +416,20 @@ struct JEPFlowAnalysis {
411416 q2selLow = q2Map->GetBinContent (q2Map->GetXaxis ()->FindBin (i + 2 ), q2Map->GetYaxis ()->FindBin (cent), q2Map->GetZaxis ()->FindBin (1 . - cfgQ2SelFrac));
412417 }
413418
419+ if (cfgSelEvtTwoHP && i == 0 ) {
420+ nHighPt = 0 ;
421+ for (const auto & track : tracks) {
422+ if (cfgTrkSelFlag && trackSel (track))
423+ continue ;
424+
425+ if (track.pt () > cfgHighPtSel)
426+ nHighPt++;
427+ }
428+ }
429+
430+ if (cfgSelEvtTwoHP && nHighPt > 1.5 )
431+ continue ;
432+
414433 epFlowHistograms.fill (HIST (" EpDet" ), i + 2 , cent, eps[0 ]);
415434 epFlowHistograms.fill (HIST (" EpRefA" ), i + 2 , cent, eps[1 ]);
416435 epFlowHistograms.fill (HIST (" EpRefB" ), i + 2 , cent, eps[2 ]);
0 commit comments