1 ////////////////////////////////////////////////////////////////////////////////
3 /// AliFemtoCutMonitorTrackTPCncls - the cut monitor for tracks to study ///
4 /// the number of TPC clusters distribution. ///
6 ////////////////////////////////////////////////////////////////////////////////
7 #include "AliFemtoCutMonitorTrackTPCncls.h"
8 #include "AliFemtoModelHiddenInfo.h"
9 #include "AliFemtoEvent.h"
15 AliFemtoCutMonitorTrackTPCncls::AliFemtoCutMonitorTrackTPCncls():
18 // Default constructor
19 fTrTPCncls = new TH1D("TrTPCncls", "Track TPC Clusters", 5001, -0.5, 5000.5);
22 AliFemtoCutMonitorTrackTPCncls::AliFemtoCutMonitorTrackTPCncls(const char *aName):
28 snprintf(name, 200, "TrTPCncls%s", aName);
29 fTrTPCncls = new TH1D(name, "Track TPC Clusters", 5001, -0.5, 5000.5);
32 AliFemtoCutMonitorTrackTPCncls::AliFemtoCutMonitorTrackTPCncls(const AliFemtoCutMonitorTrackTPCncls &aCut):
37 if (fTrTPCncls) delete fTrTPCncls;
38 fTrTPCncls = new TH1D(*aCut.fTrTPCncls);
41 AliFemtoCutMonitorTrackTPCncls::~AliFemtoCutMonitorTrackTPCncls()
47 AliFemtoCutMonitorTrackTPCncls& AliFemtoCutMonitorTrackTPCncls::operator=(const AliFemtoCutMonitorTrackTPCncls& aCut)
49 // assignment operator
53 if (fTrTPCncls) delete fTrTPCncls;
54 fTrTPCncls = new TH1D(*aCut.fTrTPCncls);
59 AliFemtoString AliFemtoCutMonitorTrackTPCncls::Report(){
60 // Prepare report from the execution
61 string stemp = "*** AliFemtoCutMonitorTrackTPCncls report";
62 AliFemtoString returnThis = stemp;
66 void AliFemtoCutMonitorTrackTPCncls::Fill(const AliFemtoTrack* aTrack)
68 // Fill in the monitor histograms with the values from the current track
69 fTrTPCncls->Fill(aTrack->TPCncls());
72 void AliFemtoCutMonitorTrackTPCncls::Write()
74 // Write out the relevant histograms
78 TList *AliFemtoCutMonitorTrackTPCncls::GetOutputList()
80 TList *tOutputList = new TList();
81 tOutputList->Add(fTrTPCncls);