20 Bool_t
STrackCutStudy::ApplyCuts(
const Bool_t isPrimary,
const UInt_t trkNMVtx,
const UInt_t trkNTpc,
const Double_t trkVz,
const Double_t trkDcaXY,
const Double_t trkDcaZ,
const Double_t trkQuality) {
23 const Bool_t isInMVtxCut = ((trkNMVtx > nMVtxCut.first) && (trkNMVtx < nMVtxCut.second));
24 const Bool_t isInTpcCut = ((trkNTpc > nTpcCut.first) && (trkNTpc < nTpcCut.second));
25 const Bool_t isInVzCut = ((trkVz > vzCut.first) && (trkVz < vzCut.second));
26 const Bool_t isInDcaXyCut = ((trkDcaXY > dcaXyCut.first) && (trkDcaXY < dcaXyCut.second));
27 const Bool_t isInDcaZCut = ((trkDcaZ > dcaZCut.first) && (trkDcaZ < dcaZCut.second));
28 const Bool_t isInQualityCut = ((trkQuality > qualityCut.first) && (trkQuality < qualityCut.second));
31 Bool_t isInTrkCut(
true);
32 if (doPrimaryCut && !isPrimary) isInTrkCut =
false;
33 if (doMVtxCut && !isInMVtxCut) isInTrkCut =
false;
34 if (doTpcCut && !isInTpcCut) isInTrkCut =
false;
35 if (doVzCut && !isInVzCut) isInTrkCut =
false;
36 if (doDcaXyCut && !isInDcaXyCut) isInTrkCut =
false;
37 if (doDcaZCut && !isInDcaZCut) isInTrkCut =
false;
38 if (doQualityCut && !isInQualityCut) isInTrkCut =
false;