@@ -141,6 +141,7 @@ struct LfV0qaanalysis {
141141 Configurable<bool > isNoITSROFrameBorder{" isNoITSROFrameBorder" , 1 , " Is No ITS Readout Frame Border" };
142142 Configurable<bool > isVertexTOFmatched{" isVertexTOFmatched" , 0 , " Is Vertex TOF matched" };
143143 Configurable<bool > isGoodZvtxFT0vsPV{" isGoodZvtxFT0vsPV" , 0 , " isGoodZvtxFT0vsPV" };
144+ Configurable<int > v0TypeSelection{" v0TypeSelection" , 1 , " select on a certain V0 type (leave negative if no selection desired)" };
144145
145146 // V0 selection criteria
146147 Configurable<double > v0cospa{" v0cospa" , 0.97 , " V0 CosPA" };
@@ -205,6 +206,9 @@ struct LfV0qaanalysis {
205206
206207 for (auto & v0 : V0s) { // loop over V0s
207208
209+ if (v0.v0Type () != v0TypeSelection) {
210+ continue ;
211+ }
208212 // c tau
209213 float ctauLambda = v0.distovertotmom (collision.posX (), collision.posY (), collision.posZ ()) * o2::constants::physics::MassLambda0;
210214 float ctauAntiLambda = v0.distovertotmom (collision.posX (), collision.posY (), collision.posZ ()) * o2::constants::physics::MassLambda0Bar;
@@ -299,6 +303,10 @@ struct LfV0qaanalysis {
299303 continue ;
300304 }
301305
306+ if (v0.v0Type () != v0TypeSelection) {
307+ continue ;
308+ }
309+
302310 // Highest numerator of efficiency
303311 if (v0mcparticle.isPhysicalPrimary ()) {
304312 if (v0mcparticle.pdgCode () == 310 ) {
0 commit comments