62 #include "StHbtMaker/Cut/mikesEventCut.h"
69 mikesEventCut::mikesEventCut(){
70 mNEventsPassed = mNEventsFailed = 0;
77 bool mikesEventCut::Pass(
const StHbtEvent* event){
78 int mult =
event->NumberOfTracks();
79 double VertexZPos =
event->PrimVertPos().z();
80 cout <<
"mikesEventCut:: mult: " << mEventMult[0] <<
" < " << mult <<
" < " << mEventMult[1] << endl;
81 cout <<
"mikesEventCut:: VertexZPos: " << mVertZPos[0] <<
" < " << VertexZPos <<
" < " << mVertZPos[1] << endl;
83 ((mult > mEventMult[0]) &&
84 (mult < mEventMult[1]) &&
85 (VertexZPos > mVertZPos[0]) &&
86 (VertexZPos < mVertZPos[1]));
87 goodEvent ? mNEventsPassed++ : mNEventsFailed++ ;
88 cout <<
"mikesEventCut:: return : " << goodEvent << endl;
92 StHbtString mikesEventCut::Report(){
95 sprintf(Ctemp,
"\nMultiplicity:\t %d-%d",mEventMult[0],mEventMult[1]);
97 sprintf(Ctemp,
"\nVertex Z-position:\t %E-%E",mVertZPos[0],mVertZPos[1]);
99 sprintf(Ctemp,
"\nNumber of events which passed:\t%ld Number which failed:\t%ld",mNEventsPassed,mNEventsFailed);
101 StHbtString returnThis = Stemp;