22 #include "StHbtMaker/Cut/franksV0PairCut.h"
31 franksV0PairCut::franksV0PairCut() : mTrackIdCut(0), mNPairsPassed(0), mNPairsFailed(0) {
38 inline bool franksV0PairCut::Pass(
const StHbtPair* pair){
41 if ( mTrackIdCut == 1 ) {
42 if ( (pair->track1()->NegTrackId() == pair->track2()->NegTrackId()) ||
43 (pair->track1()->PosTrackId() == pair->track2()->PosTrackId())
49 temp ? mNPairsPassed++ : mNPairsFailed++;
54 StHbtString franksV0PairCut::Report(){
55 string Stemp =
" Franks V0 Pair Cut \n";
57 sprintf(Ctemp,
"mTrackIdCut = %d \n",mTrackIdCut);
59 sprintf(Ctemp,
"Number of pairs which passed:\t%ld Number which failed:\t%ld\n",mNPairsPassed,mNPairsFailed);
61 StHbtString returnThis = Stemp;