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