1 #include "StHbtMaker/Infrastructure/StHbtEvent.hh"
2 #include "StHbtMaker/Infrastructure/StHbtTypes.hh"
3 #include "StHbtMaker/Cut/eventCutMonitor_Mult.h"
9 eventCutMonitor_Mult::eventCutMonitor_Mult(){
10 mHisto =
new StHbt1DHisto(
"Mult",
"multiplicity",1000,0,10000.);
11 mHisto->SetDirectory(0);
14 eventCutMonitor_Mult::eventCutMonitor_Mult(
const char* TitCutMoni,
const char* title,
15 int nbins,
double min,
double max){
16 mHisto =
new StHbt1DHisto(TitCutMoni, title, nbins , min, max);
17 mHisto->SetDirectory(0);
20 eventCutMonitor_Mult::~eventCutMonitor_Mult(){
25 void eventCutMonitor_Mult::Fill(
const StHbtEvent* event){
26 mHisto->Fill( event->NumberOfTracks(), 1.);
30 void eventCutMonitor_Mult::Finish(){
31 cout <<
" entries in histogram : " << mHisto->Integral() << endl;
35 StHbtString eventCutMonitor_Mult::Report(){
38 sprintf(Ctemp,
" eventCutMonitor_Mult");
40 StHbtString returnThis = Stemp;