36 #include "StHbtMaker/Cut/mikesStarStandardEventCut.h"
45 mikesStarStandardEventCut::mikesStarStandardEventCut(){
46 mNEventsPassed = mNEventsFailed = 0;
56 bool mikesStarStandardEventCut::Pass(
const StHbtEvent* event){
59 double VertexZPos =
event->PrimVertPos().z();
60 cout <<
"mikesStarStandardEventCut:: VertexZPos: " << mVertZPos[0] <<
" < " << VertexZPos <<
" < " << mVertZPos[1] << endl;
62 ((VertexZPos > mVertZPos[0]) &&
63 (VertexZPos < mVertZPos[1]));
68 for (StHbtTrackIterator pIter=event->TrackCollection()->begin();pIter!=
event->TrackCollection()->end();pIter++){
70 if ((track->Charge()<0)&&(track->NHits()>=10)&&(track->DCAxy()<3.0)&&(fabs(track->P().pseudoRapidity())<0.5)){
76 cout <<
"mikesStarStandardEventCut:: mult: " << mEventMult[0] <<
" < " << mult <<
" < " << mEventMult[1] << endl;
77 goodEvent = (goodEvent&& (mult > mEventMult[0]) && (mult < mEventMult[1]));
80 goodEvent ? mNEventsPassed++ : mNEventsFailed++ ;
81 cout <<
"mikesStarStandardEventCut:: return : " << goodEvent << endl;
87 StHbtString mikesStarStandardEventCut::Report(){
90 sprintf(Ctemp,
"\nMultiplicity:\t %d-%d",mEventMult[0],mEventMult[1]);
92 sprintf(Ctemp,
"\nVertex Z-position:\t %E-%E",mVertZPos[0],mVertZPos[1]);
94 sprintf(Ctemp,
"\nNumber of events which passed:\t%ld Number which failed:\t%ld",mNEventsPassed,mNEventsFailed);
96 StHbtString returnThis = Stemp;