33 #include "StHbtMaker/Cut/mercedesStarStandardEventCut.h"
40 mercedesStarStandardEventCut::mercedesStarStandardEventCut(){
41 mNEventsPassed = mNEventsFailed = 0;
45 bool mercedesStarStandardEventCut::Pass(
const StHbtEvent* event){
47 double VertexZPos =
event->PrimVertPos().z();
48 cout <<
"mercedesStarStandardEventCut:: VertexZPos: " << mVertZPos[0] <<
" < " << VertexZPos <<
" < " << mVertZPos[1] << endl;
50 ((VertexZPos > mVertZPos[0]) &&
51 (VertexZPos < mVertZPos[1]));
54 int mult =
event->UncorrectedNumberOfPrimaries();
65 cout <<
"mercedesStarStandardEventCut:: mult: " << mEventMult[0] <<
" < " << mult <<
" < " << mEventMult[1] << endl;
66 goodEvent = (goodEvent&& (mult > mEventMult[0]) && (mult < mEventMult[1]));
69 goodEvent ? mNEventsPassed++ : mNEventsFailed++ ;
70 cout <<
"mercedesStarStandardEventCut:: return : " << goodEvent << endl;
76 StHbtString mercedesStarStandardEventCut::Report(){
79 sprintf(Ctemp,
"\nMultiplicity:\t %d-%d",mEventMult[0],mEventMult[1]);
81 sprintf(Ctemp,
"\nVertex Z-position:\t %E-%E",mVertZPos[0],mVertZPos[1]);
83 sprintf(Ctemp,
"\nNumber of events which passed:\t%ld Number which failed:\t%ld",mNEventsPassed,mNEventsFailed);
85 StHbtString returnThis = Stemp;