24 #include "StHbtMaker/Cut/ManyPairCuts.h"
33 ManyPairCuts::ManyPairCuts(){
34 mNPairsPassed = mNPairsFailed = 0;
41 bool ManyPairCuts::Pass(
const StHbtPair* pair){
44 for (StHbtPairCutIterator iter=mPairCutCollection.begin();iter!=mPairCutCollection.end();iter++){
45 if (!((*iter)->Pass(pair))){
55 StHbtString ManyPairCuts::Report(){
56 string Stemp =
"ManyPairCuts Report\n";
58 sprintf(Ctemp,
"Number of pairs which passed:\t%li Number which failed:\t%li\n",mNPairsPassed,mNPairsFailed);
60 sprintf(Ctemp,
"Here are the reports from the\t%i PairCuts in the collection\n",mPairCutCollection.size());
63 for (StHbtPairCutIterator iter=mPairCutCollection.begin();iter!=mPairCutCollection.end();iter++){
64 Stemp += (*iter)->Report();
66 StHbtString returnThis = Stemp;