File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ struct testPV {
4141 struct : ConfigurableGroup {
4242 std::string prefix = " eventCut" ;
4343 Configurable<int > cfgEventGeneratorId{" cfgEventGeneratorId" , -1 , " event generator index. e.g. select gap/signal events" };
44+ Configurable<float > cfgChi2PerNcontribMax{" cfgChi2PerNcontribMax" , 1e+10 , " max. chi2/Ncontrib of PV" };
4445 Configurable<float > cfgZvtxMin{" cfgZvtxMin" , -10 .f , " min. Zvtx" };
4546 Configurable<float > cfgZvtxMax{" cfgZvtxMax" , 10 .f , " max. Zvtx" };
4647 Configurable<bool > cfgRequireFT0AND{" cfgRequireFT0AND" , true , " require FT0AND" };
@@ -136,6 +137,9 @@ struct testPV {
136137 if (eventCut.cfgRequireVertexTOFmatched && !collision.selection_bit (o2::aod::evsel::kIsVertexTOFmatched )) {
137138 return false ;
138139 }
140+ if (collision.chi2 () / collision.numContrib () > eventCut.cfgChi2PerNcontribMax ) {
141+ return false ;
142+ }
139143 return true ;
140144 }
141145
You can’t perform that action at this time.
0 commit comments