StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
trackCutMonitor_Nhits_vs_NhitsDedx.cxx
1 #include "StHbtMaker/Infrastructure/StHbtTrack.hh"
2 #include "StHbtMaker/Infrastructure/StHbtTypes.hh"
3 #include "StHbtMaker/Cut/trackCutMonitor_Nhits_vs_NhitsDedx.h"
4 #include <cstdio>
5 #include "StLorentzVector.hh"
6 
7 #ifdef __ROOT__
9 #endif
10 
12 trackCutMonitor_Nhits_vs_NhitsDedx::trackCutMonitor_Nhits_vs_NhitsDedx(){
13  trackCutMonitor_Nhits_vs_NhitsDedx("P_vs_Dedx","Momentum (GeV/c) vs Energy loss (a.u.)");
14 }
16 trackCutMonitor_Nhits_vs_NhitsDedx::trackCutMonitor_Nhits_vs_NhitsDedx(const char* TitCutMoni, const char* title){
17  mHisto= new StHbt2DHisto(TitCutMoni, title, 45 , -0.5, 45.5, 45 , -0.5, 45.5);
18 }
20 trackCutMonitor_Nhits_vs_NhitsDedx::trackCutMonitor_Nhits_vs_NhitsDedx( const trackCutMonitor_Nhits_vs_NhitsDedx& cutMoni) {
21  mHisto = new StHbt2DHisto(*(cutMoni.mHisto));
22 }
24 trackCutMonitor_Nhits_vs_NhitsDedx::~trackCutMonitor_Nhits_vs_NhitsDedx(){
25  delete mHisto;
26 }
28 void trackCutMonitor_Nhits_vs_NhitsDedx::Fill(const StHbtTrack* track){
29  mHisto->Fill( track->NHits(), track->NHitsDedx(), 1.);
30 }
31 
32