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