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