00001 #include "StHbtMaker/Infrastructure/StHbtTrack.hh"
00002 #include "StHbtMaker/Infrastructure/StHbtTypes.hh"
00003 #include "StHbtMaker/Cut/trackCutMonitor_Pt.h"
00004
00005 #ifdef __ROOT__
00006 ClassImp(trackCutMonitor_Pt)
00007 #endif
00008
00009 trackCutMonitor_Pt::trackCutMonitor_Pt(){
00010 mHisto = new StHbt1DHisto("Pt","Pt (GeV/c)",20,0.,2.);
00011 cout << " this " << this << endl;
00012 mHisto->SetDirectory(0);
00013 }
00014
00015 trackCutMonitor_Pt::trackCutMonitor_Pt(const char* TitCutMoni, const char* title,
00016 int nbins, double min, double max){
00017 mHisto = new StHbt1DHisto(TitCutMoni, title, nbins , min, max);
00018 mHisto->SetDirectory(0);
00019 }
00020
00021 trackCutMonitor_Pt::~trackCutMonitor_Pt(){
00022 delete mHisto;
00023 }
00024
00025
00026 void trackCutMonitor_Pt::Fill(const StHbtTrack* track){
00027 mHisto->Fill( track->P().perp(), 1.);
00028 }
00029
00030