1 #include "StHbtMaker/Infrastructure/StHbtTrack.hh"
2 #include "StHbtMaker/Infrastructure/StHbtTypes.hh"
3 #include "StHbtMaker/Cut/trackCutMonitor_P.h"
10 trackCutMonitor_P::trackCutMonitor_P(){
11 mHisto =
new StHbt1DHisto(
"P",
"momentum (GeV/c)",20,0.,2.);
12 mHisto->SetDirectory(0);
15 trackCutMonitor_P::trackCutMonitor_P(
const char* TitCutMoni,
const char* title,
16 int nbins,
double min,
double max){
17 mHisto =
new StHbt1DHisto(TitCutMoni, title, nbins , min, max);
18 mHisto->SetDirectory(0);
21 trackCutMonitor_P::~trackCutMonitor_P(){
27 mHisto->Fill( abs(track->P()), 1.);
31 void trackCutMonitor_P::Finish(){
32 cout <<
" entries in histogram : " << mHisto->Integral() << endl;
36 StHbtString trackCutMonitor_P::Report(){
39 sprintf(Ctemp,
" report some stuff");
41 StHbtString returnThis = Stemp;