StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
trackCutMonitor_DCA.cxx
1 #include "StHbtMaker/Infrastructure/StHbtTrack.hh"
2 #include "StHbtMaker/Infrastructure/StHbtTypes.hh"
3 #include "StHbtMaker/Cut/trackCutMonitor_DCA.h"
4 #include <cstdio>
5 
6 #ifdef __ROOT__
7 ClassImp(trackCutMonitor_DCA)
8 #endif
9 
10 trackCutMonitor_DCA::trackCutMonitor_DCA(){
11  mHisto = new StHbt1DHisto("DCA","DCA (cm)",20,0.,10.);
12  mHisto->SetDirectory(0);
13 }
14 //------------------------------
15 trackCutMonitor_DCA::trackCutMonitor_DCA(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);
19 }
20 //------------------------------
21 trackCutMonitor_DCA::~trackCutMonitor_DCA(){
22  delete mHisto;
23 }
24 //------------------------------
25 void trackCutMonitor_DCA::Fill(const StHbtTrack* track){
26  mHisto->Fill( track->DCAxy() );
27 }
28 
29