43 #include "StHbtMaker/Cut/fabricesPairCut.h"
54 mNPairsPassed = mNPairsFailed = 0;
66 bool fabricesPairCut::Pass(
const StHbtPair* pair){
67 bool temp = ( pair->track1()->TrackId()!=pair->track2()->TrackId() &&
68 pair->ElectronPairProbability() < mElPairMaxProb &&
69 ((pair->track1()->Track()->PidProbPion()) *
70 (pair->track2()->Track()->PidProbPion()))<=mPiPiPairMaxProb &&
71 ((pair->track1()->Track()->PidProbKaon()) *
72 (pair->track2()->Track()->PidProbKaon()))<=mKKPairMaxProb &&
73 ((pair->track1()->Track()->PidProbPion()) *
74 (pair->track2()->Track()->PidProbKaon()))>=mPiKPairMinProb &&
75 ((pair->track1()->Track()->PidProbPion()) *
76 (pair->track2()->Track()->PidProbProton()))>=mPiPPairMinProb &&
77 pair->getFracOfMergedRow()<mMaxFracPair
79 temp ? mNPairsPassed++ : mNPairsFailed++;
83 StHbtString fabricesPairCut::Report(){
84 string Stemp =
"Fabrices Pair Cut - total dummy-- always returns true\n";
86 sprintf(Ctemp,
"Number of pairs which passed:\t%ld Number which failed:\t%ld\n",mNPairsPassed,mNPairsFailed);
88 StHbtString returnThis = Stemp;
92 std::ostringstream* fabricesPairCut::finalReport()
const{
93 std::ostringstream* tFinalReport =
new std::ostringstream;
94 (*tFinalReport) <<
"_____ Fabrices pair Cut _____ " << endl
95 <<
" N pairs passed : " << mNPairsPassed << endl
96 <<
" N pairs failed : " << mNPairsFailed << endl