20 #include "StHbtMaker/Cut/QinvPairCut.h"
29 QinvPairCut::QinvPairCut(){
30 mNPairsPassed = mNPairsFailed = 0;
37 bool QinvPairCut::Pass(
const StHbtPair* pair){
38 double Qinv = fabs(pair->qInv());
39 bool temp = ( (Qinv>mQinvLo) &&
42 temp ? mNPairsPassed++ : mNPairsFailed++;
46 StHbtString QinvPairCut::Report(){
47 string Stemp =
"Qinvariant Pair Cut\n";
49 sprintf(Ctemp,
"Range of cut:\t%E ... \t%E\n",mQinvLo,mQinvHi);
51 sprintf(Ctemp,
"Number of pairs which passed:\t%ld Number which failed:\t%ld\n",mNPairsPassed,mNPairsFailed);
53 StHbtString returnThis = Stemp;
57 void QinvPairCut::SetQinvRange(
const double& Lo,
const double& Hi) {