30 #include "StHbtMaker/Infrastructure/StHbtEvent.hh"
31 #include "StHbtMaker/Infrastructure/StHbtTypes.hh"
32 #include "StHbtMaker/Cut/mercedesEventCutMonitor.h"
39 mercedesEventCutMonitor::mercedesEventCutMonitor(){
40 mEventMultHisto =
new StHbt1DHisto(
"EventMultHisto",
"Event Multiplicity",1000,0.,1000.);
41 mEventMultHisto->SetDirectory(0);
42 mZVertexPosHisto =
new StHbt1DHisto(
"ZVertexPos",
"zVertex Position",1000,-50.0,50.0);
43 mZVertexPosHisto->SetDirectory(0);
44 mEventMultvsTracks =
new StHbt2DHisto(
"EventMultvsTracks ",
"Event Multiplicity vs Total Tracks",1000, 0., 1000., 1000,0.,10000.0);
45 mEventMultvsTracks->SetDirectory(0);
48 mercedesEventCutMonitor::~mercedesEventCutMonitor(){
49 delete mEventMultHisto;
50 delete mZVertexPosHisto;
51 delete mEventMultvsTracks;
55 void mercedesEventCutMonitor::Fill(
const StHbtEvent* event){
57 double VertexZPos =
event->PrimVertPos().z();
58 int mult =
event->UncorrectedNumberOfPrimaries();
60 mEventMultHisto->Fill(mult,1.);
61 mZVertexPosHisto->Fill (VertexZPos,1.);
62 mEventMultvsTracks->Fill(mult,event->NumberOfTracks(),1.);
66 void mercedesEventCutMonitor::Finish(){
67 cout <<
" entries in Multiplicity histogram : " << mEventMultHisto->Integral() << endl;
68 cout <<
" entries in Vertex Pos. histogram : " << mZVertexPosHisto->Integral() << endl;
72 StHbtString mercedesEventCutMonitor::Report(){
75 sprintf(Ctemp,
" mercedesEventCutMonitor");
77 StHbtString returnThis = Stemp;