40 #include "StHbtMaker/Cut/qualityPairCut.h"
49 qualityPairCut::qualityPairCut(){
50 mNPairsPassed = mNPairsFailed = 0;
57 bool qualityPairCut::Pass(
const StHbtPair* pair){
58 double qual = pair->quality();
59 bool temp = ( (qual>mQualCutLo) &&
62 temp ? mNPairsPassed++ : mNPairsFailed++;
66 StHbtString qualityPairCut::Report(){
67 string Stemp =
"Quality Pair Cut\n";
69 sprintf(Ctemp,
"Range of cut:\t%E ... \t%E\n",mQualCutLo,mQualCutHi);
71 sprintf(Ctemp,
"Number of pairs which passed:\t%ld Number which failed:\t%ld\n",mNPairsPassed,mNPairsFailed);
73 StHbtString returnThis = Stemp;
77 void qualityPairCut::SetQualityCut(
const double& QualCutLo,
const double& QualCutHi) {
78 mQualCutLo = QualCutLo;
79 mQualCutHi = QualCutHi;