1 ////////////////////////////////////////////////////////////////////////////////
3 // AliFemtoCutMonitorParticlePID - the cut monitor for particles to study //
4 // various aspects of the PID determination //
6 ////////////////////////////////////////////////////////////////////////////////
7 #include "AliFemtoCutMonitorParticlePID.h"
8 #include "AliFemtoModelHiddenInfo.h"
14 AliFemtoCutMonitorParticlePID::AliFemtoCutMonitorParticlePID():
17 // Default constructor
18 fTPCdEdx = new TH2D("TPCdEdx", "TPC dEdx vs momentum", 190, 0.1, 2.0, 500, 0.0, 500.0);
21 AliFemtoCutMonitorParticlePID::AliFemtoCutMonitorParticlePID(const char *aName):
27 snprintf(name, 200, "TPCdEdx%s", aName);
28 fTPCdEdx = new TH2D(name, "TPC dEdx vs. momentum", 190, 0.1, 2.0, 500, 0.0, 500.0);
31 AliFemtoCutMonitorParticlePID::AliFemtoCutMonitorParticlePID(const AliFemtoCutMonitorParticlePID &aCut):
36 if (fTPCdEdx) delete fTPCdEdx;
37 fTPCdEdx = new TH2D(*aCut.fTPCdEdx);
40 AliFemtoCutMonitorParticlePID::~AliFemtoCutMonitorParticlePID()
46 AliFemtoCutMonitorParticlePID& AliFemtoCutMonitorParticlePID::operator=(const AliFemtoCutMonitorParticlePID& aCut)
48 // assignment operator
52 if (fTPCdEdx) delete fTPCdEdx;
53 fTPCdEdx = new TH2D(*aCut.fTPCdEdx);
58 AliFemtoString AliFemtoCutMonitorParticlePID::Report(){
59 // Prepare report from the execution
60 string stemp = "*** AliFemtoCutMonitorParticlePID report";
61 AliFemtoString returnThis = stemp;
65 void AliFemtoCutMonitorParticlePID::Fill(const AliFemtoTrack* aTrack)
67 // Fill in the monitor histograms with the values from the current track
68 float tMom = aTrack->P().Mag();
69 float tdEdx = aTrack->TPCsignal();
71 fTPCdEdx->Fill(tMom, tdEdx);
74 void AliFemtoCutMonitorParticlePID::Write()
76 // Write out the relevant histograms
80 TList *AliFemtoCutMonitorParticlePID::GetOutputList()
82 TList *tOutputList = new TList();
83 tOutputList->Add(fTPCdEdx);