19 #include "StHbtMaker/Cut/EntranceSepPairCut.h"
28 EntranceSepPairCut::EntranceSepPairCut(){
29 mNPairsPassed = mNPairsFailed = 0;
36 bool EntranceSepPairCut::Pass(
const StHbtPair* pair){
37 double sep = pair->NominalTpcEntranceSeparation();
38 bool temp = ( (sep>mEntSepLo) &&
41 temp ? mNPairsPassed++ : mNPairsFailed++;
45 StHbtString EntranceSepPairCut::Report(){
46 string Stemp =
"Entrance Separation Pair Cut\n";
48 sprintf(Ctemp,
"Range of cut:\t%E ... \t%E\n",mEntSepLo,mEntSepHi);
50 sprintf(Ctemp,
"Number of pairs which passed:\t%ld Number which failed:\t%ld\n",mNPairsPassed,mNPairsFailed);
52 StHbtString returnThis = Stemp;
56 void EntranceSepPairCut::SetEntranceSepRange(
const double& Lo,
const double& Hi) {