@@ -202,12 +202,12 @@ struct TrHeAnalysis {
202202 Configurable<float > cfgCutMaxChi2ItsH3{" cfgCutMaxChi2ItsH3" , 36 .f , " Maximum chi2 per cluster for ITS" };
203203 Configurable<float > cfgCutMaxChi2TpcHe{" cfgCutMaxChi2TpcHe" , 4 .f , " Maximum chi2 per cluster for TPC" };
204204 Configurable<float > cfgCutMaxChi2ItsHe{" cfgCutMaxChi2ItsHe" , 36 .f , " Maximum chi2 per cluster for ITS" };
205- Configurable<bool > cfgCutTpcRefit{" cfgCutTpcRefit" , 1 , " Maximum chi2 per cluster for TPC " };
206- Configurable<bool > cfgCutItsRefit{" cfgCutItsRefit" , 1 , " Maximum chi2 per cluster for ITS" };
207- Configurable<float > cfgCutMaxItsClusterSizeHe{" cfgCutMaxItsClusterSizeHe" , 4 .f , " Maximum chi2 per cluster for TPC " };
208- Configurable<float > cfgCutMinItsClusterSizeHe{" cfgCutMinItsClusterSizeHe" , 1 .f , " Maximum chi2 per cluster for ITS " };
209- Configurable<float > cfgCutMaxItsClusterSizeH3{" cfgCutMaxItsClusterSizeH3" , 4 .f , " Maximum chi2 per cluster for TPC " };
210- Configurable<float > cfgCutMinItsClusterSizeH3{" cfgCutMinItsClusterSizeH3" , 1 .f , " Maximum chi2 per cluster for ITS " };
205+ Configurable<bool > cfgCutTpcRefit{" cfgCutTpcRefit" , 1 , " TPC refit " };
206+ Configurable<bool > cfgCutItsRefit{" cfgCutItsRefit" , 1 , " ITS refit " };
207+ Configurable<float > cfgCutMaxItsClusterSizeHe{" cfgCutMaxItsClusterSizeHe" , 4 .f , " Maximum ITS Cluster Size for He " };
208+ Configurable<float > cfgCutMinItsClusterSizeHe{" cfgCutMinItsClusterSizeHe" , 1 .f , " Minimum ITS Cluster Size for He " };
209+ Configurable<float > cfgCutMaxItsClusterSizeH3{" cfgCutMaxItsClusterSizeH3" , 4 .f , " Maximum ITS Cluster Size for Tr " };
210+ Configurable<float > cfgCutMinItsClusterSizeH3{" cfgCutMinItsClusterSizeH3" , 1 .f , " Minimum ITS Cluster Size for Tr " };
211211 // Set the kinematic and PID cuts for tracks
212212 struct : ConfigurableGroup {
213213 Configurable<float > pCut{" pCut" , 0 .3f , " Value of the p selection for spectra (default 0.3)" };
@@ -273,7 +273,7 @@ struct TrHeAnalysis {
273273 h->GetXaxis ()->SetBinLabel (6 , " Sel8 cut" );
274274 h->GetXaxis ()->SetBinLabel (7 , " Z-vert Cut" );
275275 histos.add <TH1>(" histogram/cuts" , " cuts" , HistType::kTH1D ,
276- {{11 , -0.5 , 10 .5 }});
276+ {{12 , -0.5 , 11 .5 }});
277277 auto hCuts = histos.get <TH1>(HIST (" histogram/cuts" ));
278278 hCuts->GetXaxis ()->SetBinLabel (1 , " total" );
279279 hCuts->GetXaxis ()->SetBinLabel (2 , " p cut" );
@@ -284,8 +284,9 @@ struct TrHeAnalysis {
284284 hCuts->GetXaxis ()->SetBinLabel (7 , " max chi2 ITS" );
285285 hCuts->GetXaxis ()->SetBinLabel (8 , " max chi2 TPC" );
286286 hCuts->GetXaxis ()->SetBinLabel (9 , " crossed rows over findable cluster" );
287- hCuts->GetXaxis ()->SetBinLabel (9 , " TPC refit" );
288- hCuts->GetXaxis ()->SetBinLabel (9 , " ITS refit" );
287+ hCuts->GetXaxis ()->SetBinLabel (10 , " TPC refit" );
288+ hCuts->GetXaxis ()->SetBinLabel (11 , " ITS refit" );
289+ hCuts->GetXaxis ()->SetBinLabel (12 , " ITS cluster size" );
289290 for (int i = 0 ; i < nParticles; i++) {
290291 particles.push_back (Particle (particleNames.at (i), particlePdgCodes.at (i),
291292 particleMasses.at (i), particleCharge.at (i),
@@ -326,7 +327,7 @@ struct TrHeAnalysis {
326327 histos.fill (HIST (" histogram/cuts" ), 1 );
327328 continue ;
328329 }
329- if (std::abs (track.eta ()) >= kinemOptions.etaCut ) {
330+ if (std::abs (track.eta ()) > kinemOptions.etaCut ) {
330331 histos.fill (HIST (" histogram/cuts" ), 2 );
331332 continue ;
332333 }
@@ -376,6 +377,10 @@ struct TrHeAnalysis {
376377 histos.fill (HIST (" histogram/cuts" ), 7 );
377378 continue ;
378379 }
380+ if (cfgCutMinItsClusterSizeH3 < getMeanItsClsSize (track) / std::cosh (track.eta ()) && getMeanItsClsSize (track) / std::cosh (track.eta ()) < cfgCutMaxItsClusterSizeH3) {
381+ histos.fill (HIST (" histogram/cuts" ), 12 );
382+ continue ;
383+ }
379384 histos.fill (HIST (" histogram/H3/H3-TPCsignVsTPCmomentum" ),
380385 track.tpcInnerParam () / (1 .f * track.sign ()),
381386 track.tpcSignal ());
@@ -417,6 +422,10 @@ struct TrHeAnalysis {
417422 histos.fill (HIST (" histogram/cuts" ), 7 );
418423 continue ;
419424 }
425+ if (cfgCutMinItsClusterSizeHe < getMeanItsClsSize (track) / std::cosh (track.eta ()) && getMeanItsClsSize (track) / std::cosh (track.eta ()) < cfgCutMaxItsClusterSizeHe) {
426+ histos.fill (HIST (" histogram/cuts" ), 12 );
427+ continue ;
428+ }
420429 histos.fill (HIST (" histogram/He/He-TPCsignVsTPCmomentum" ),
421430 track.tpcInnerParam () / (2 .f * track.sign ()),
422431 track.tpcSignal ());
@@ -466,7 +475,7 @@ struct TrHeAnalysis {
466475 histos.fill (HIST (" histogram/cuts" ), 1 );
467476 continue ;
468477 }
469- if (std::abs (track.eta ()) < kinemOptions.etaCut ) {
478+ if (std::abs (track.eta ()) > kinemOptions.etaCut ) {
470479 histos.fill (HIST (" histogram/cuts" ), 2 );
471480 continue ;
472481 }
@@ -515,6 +524,10 @@ struct TrHeAnalysis {
515524 histos.fill (HIST (" histogram/cuts" ), 7 );
516525 continue ;
517526 }
527+ if (cfgCutMinItsClusterSizeH3 < getMeanItsClsSize (track) / std::cosh (track.eta ()) && getMeanItsClsSize (track) / std::cosh (track.eta ()) < cfgCutMaxItsClusterSizeH3) {
528+ histos.fill (HIST (" histogram/cuts" ), 12 );
529+ continue ;
530+ }
518531 histos.fill (HIST (" histogram/H3/H3-TPCsignVsTPCmomentum" ),
519532 track.tpcInnerParam () / (1 .f * track.sign ()),
520533 track.tpcSignal ());
@@ -555,6 +568,10 @@ struct TrHeAnalysis {
555568 histos.fill (HIST (" histogram/cuts" ), 7 );
556569 continue ;
557570 }
571+ if (cfgCutMinItsClusterSizeHe < getMeanItsClsSize (track) / std::cosh (track.eta ()) && getMeanItsClsSize (track) / std::cosh (track.eta ()) < cfgCutMaxItsClusterSizeHe) {
572+ histos.fill (HIST (" histogram/cuts" ), 12 );
573+ continue ;
574+ }
558575 histos.fill (HIST (" histogram/He/He-TPCsignVsTPCmomentum" ),
559576 track.tpcInnerParam () / (2 .f * track.sign ()),
560577 track.tpcSignal ());
0 commit comments