@@ -99,6 +99,7 @@ struct lambdapolsp {
9999 Configurable<int > cfgMaxOccupancy{" cfgMaxOccupancy" , 1000 , " maximum occupancy of tracks in neighbouring collisions in a given time range" };
100100 Configurable<int > cfgMinOccupancy{" cfgMinOccupancy" , 0 , " maximum occupancy of tracks in neighbouring collisions in a given time range" };
101101 Configurable<int > sys{" sys" , 1 , " flag to select systematic source" };
102+ Configurable<int > centestim{" centestim" , 0 , " flag to select centrality estimator" };
102103 Configurable<bool > dosystematic{" dosystematic" , false , " flag to perform systematic study" };
103104 Configurable<bool > needetaaxis{" needetaaxis" , false , " flag to use last axis" };
104105 struct : ConfigurableGroup {
@@ -142,8 +143,8 @@ struct lambdapolsp {
142143 Configurable<float > ConfDaughEta{" ConfDaughEta" , 0 .8f , " V0 Daugh sel: max eta" };
143144 Configurable<float > cfgDaughPrPt{" cfgDaughPrPt" , 0.4 , " minimum daughter proton pt" };
144145 Configurable<float > cfgDaughPiPt{" cfgDaughPiPt" , 0.2 , " minimum daughter pion pt" };
145- // Configurable<float> rcrfc{"rcrfc", 0.8f, "Ratio of CR to FC"};
146- // Configurable<float> ConfDaughTPCnclsMin{"ConfDaughTPCnclsMin", 50.f, "V0 Daugh sel: Min. nCls TPC"};
146+ Configurable<float > rcrfc{" rcrfc" , 0 .8f , " Ratio of CR to FC" };
147+ Configurable<float > ConfDaughTPCnclsMin{" ConfDaughTPCnclsMin" , 50 .f , " V0 Daugh sel: Min. nCls TPC" };
147148 Configurable<float > ConfDaughPIDCuts{" ConfDaughPIDCuts" , 3 , " PID selections for Lambda daughters" };
148149 Configurable<bool > usesubdet{" usesubdet" , false , " use subdet" };
149150 Configurable<bool > useAccCorr{" useAccCorr" , false , " use acceptance correction" };
@@ -483,13 +484,13 @@ struct lambdapolsp {
483484 /* if (TMath::Abs(eta) > ConfDaughEta) {
484485 return false;
485486 }*/
486- /*
487+
487488 if (tpcNClsF < ConfDaughTPCnclsMin) {
488489 return false ;
489490 }
490491 if (track.tpcCrossedRowsOverFindableCls () < rcrfc) {
491492 return false ;
492- } */
493+ }
493494
494495 if (pid == 0 && TMath::Abs (track.tpcNSigmaPr ()) > ConfDaughPIDCuts) {
495496 return false ;
@@ -542,14 +543,14 @@ struct lambdapolsp {
542543 if (posTrackExtra.tpcNClsCrossedRows () < cfgTPCcluster || negTrackExtra.tpcNClsCrossedRows () < cfgTPCcluster) {
543544 return false ;
544545 }
545- /*
546+
546547 if (posTrackExtra.tpcNClsFound () < ConfDaughTPCnclsMin || negTrackExtra.tpcNClsFound () < ConfDaughTPCnclsMin) {
547548 return false ;
548549 }
549550 if (posTrackExtra.tpcCrossedRowsOverFindableCls () < rcrfc || negTrackExtra.tpcCrossedRowsOverFindableCls () < rcrfc) {
550551 return false ;
551552 }
552- */
553+
553554 // check TPC PID
554555 if (pid == 0 && ((std::abs (posTrackExtra.tpcNSigmaPr ()) > ConfDaughPIDCuts) || (std::abs (negTrackExtra.tpcNSigmaPi ()) > ConfDaughPIDCuts))) {
555556 return false ;
@@ -589,14 +590,14 @@ struct lambdapolsp {
589590 if (posTrackExtra.tpcNClsCrossedRows () < cfgTPCcluster || negTrackExtra.tpcNClsCrossedRows () < cfgTPCcluster) {
590591 return false ;
591592 }
592- /*
593- if (posTrackExtra.tpcNClsFound() < ConfDaughTPCnclsMin || negTrackExtra.tpcNClsFound() < ConfDaughTPCnclsMin) {
594- return false;
595- }
596- if (posTrackExtra.tpcCrossedRowsOverFindableCls() < rcrfc || negTrackExtra.tpcCrossedRowsOverFindableCls() < rcrfc) {
597- return false;
598- }
599- */
593+
594+ if (posTrackExtra.tpcNClsFound () < ConfDaughTPCnclsMin || negTrackExtra.tpcNClsFound () < ConfDaughTPCnclsMin) {
595+ return false ;
596+ }
597+ if (posTrackExtra.tpcCrossedRowsOverFindableCls () < rcrfc || negTrackExtra.tpcCrossedRowsOverFindableCls () < rcrfc) {
598+ return false ;
599+ }
600+
600601 // check TPC PID
601602 if (((std::abs (posTrackExtra.tpcNSigmaPi ()) > ConfDaughPIDCuts) || (std::abs (negTrackExtra.tpcNSigmaPi ()) > ConfDaughPIDCuts))) {
602603 return false ;
@@ -802,7 +803,16 @@ struct lambdapolsp {
802803 if (!collision.sel8 ()) {
803804 return ;
804805 }
805- auto centrality = collision.centFT0C ();
806+ double centrality;
807+ if (centestim == 0 )
808+ centrality = collision.centFT0C ();
809+ else if (centestim == 1 )
810+ centrality = collision.centFT0M ();
811+ else if (centestim == 2 )
812+ centrality = collision.centFT0A ();
813+ else if (centestim == 3 )
814+ centrality = collision.centFV0A ();
815+
806816 // histos.fill(HIST("hCentrality0"), centrality);
807817 if (!collision.triggereventsp ()) {
808818 return ;
@@ -1203,7 +1213,17 @@ struct lambdapolsp {
12031213 if (!collision.sel8 ()) {
12041214 return ;
12051215 }
1206- auto centrality = collision.centFT0C ();
1216+ double centrality;
1217+ if (centestim == 0 )
1218+ centrality = collision.centFT0C ();
1219+ else if (centestim == 1 )
1220+ centrality = collision.centFT0M ();
1221+ else if (centestim == 2 )
1222+ centrality = collision.centFT0A ();
1223+ else if (centestim == 3 )
1224+ centrality = collision.centFV0A ();
1225+
1226+ // auto centrality = collision.centFT0C();
12071227 if (!collision.triggereventsp ()) { // provided by StraZDCSP
12081228 return ;
12091229 }
@@ -1621,7 +1641,6 @@ struct lambdapolsp {
16211641 if (additionalEvSel4 && !collision2.selection_bit (o2::aod::evsel::kIsGoodITSLayersAll )) {
16221642 continue ;
16231643 }
1624-
16251644 auto centrality = collision1.centFT0C ();
16261645 auto qxZDCA = collision1.qxZDCA ();
16271646 auto qxZDCC = collision1.qxZDCC ();
0 commit comments