File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -270,6 +270,10 @@ struct QaMatching {
270270
271271 Configurable<bool > cfgIsMc{" cfgIsMc" , true , " Wheter the processed data is from MC simulations" };
272272
273+ // // Variables for selecting the collisions
274+ Configurable<float > cfgVtxZLow{" cfgVtxZLow" , -10 .0f , " Lower limit for the vertex z position" };
275+ Configurable<float > cfgVtxZUp{" cfgVtxZUp" , 10 .0f , " Upper limit for the vertex z position" };
276+
273277 // // Variables for selecting muon tracks
274278 Configurable<float > cfgPMchLow{" cfgPMchLow" , 0 .0f , " " };
275279 Configurable<float > cfgPtMchLow{" cfgPtMchLow" , 0 .7f , " " };
@@ -2038,6 +2042,11 @@ struct QaMatching {
20382042 int64_t collisionIndex = collision.globalIndex ();
20392043 auto bc = bcs.rawIteratorAt (collision.bcId ());
20402044
2045+ // remove vertices outside the allowed z range
2046+ if ((collision.posZ () < cfgVtxZLow.value ) || (collision.posZ () > cfgVtxZUp.value )) {
2047+ continue ;
2048+ }
2049+
20412050 // fill collision information for MFT standalone tracks
20422051 for (const auto & mftTrack : mftTracks) {
20432052 if (!mftTrack.has_collision ())
You can’t perform that action at this time.
0 commit comments