copy TRD performance train to PWG1
[u/mrichter/AliRoot.git] / PWG1 / TRD / AliTRDcheckDET.h
CommitLineData
1ee39b3a 1#ifndef ALITRDCHECKDET_H
2#define ALITRDCHECKDET_H
3
4#ifndef ALITRDRECOTASK_H
5#include "AliTRDrecoTask.h"
6#endif
7////////////////////////////////////////////////////////////////////////////
8// Basic checks for tracking and detector performance //
9// //
10// Authors: //
11// Anton Andronic <A.Andronic@gsi.de> //
12// Alexandru Bercuci <A.Bercuci@gsi.de> //
13// Markus Fasel <M.Fasel@gsi.de> //
14////////////////////////////////////////////////////////////////////////////
15
16
17class TObjArray;
18class TH1;
19class TMap;
20class AliESDHeader;
21class AliTRDcluster;
22class AliTRDseedV1;
23class AliTRDgeometry;
24class AliTRDReconstructor;
25class AliTRDrecoParam;
26class AliTRDeventInfo;
27class AliTRDcheckDET : public AliTRDrecoTask{
28public:
29 // The Histogram number
30 enum HistType_t {
31 kNclustersTrack = 0,
32 kNclustersTracklet = 1,
33 kNtrackletsTrack = 2,
34 kNtrackletsSTA = 3,
35 kNtrackletsBAR = 4,
36 kNtrackletsCross = 5,
37 kNtrackletsFindable = 6,
38 kNtracksEvent = 7,
39 kNtracksSector = 8,
40 kPH = 9,
41 kChi2 = 10,
42 kChargeCluster = 11,
43 kChargeTracklet = 12,
44 kNeventsTrigger = 13,
45 kNeventsTriggerTracks=14,
46 kTriggerPurity = 15,
47 kTrackStatus = 16,
48 kTrackletStatus = 17
49 };
50
51 AliTRDcheckDET();
52 virtual ~AliTRDcheckDET();
53
54 virtual void ConnectInputData(const Option_t *);
55 virtual void CreateOutputObjects();
56 virtual void Exec(Option_t *opt);
57
58 virtual TObjArray *Histos();
59
60 // Plotting Functions:
61 TH1 *PlotTrackStatus(const AliTRDtrackV1 *track = 0x0);
62 TH1 *PlotTrackletStatus(const AliTRDtrackV1 *track = 0x0);
63 TH1 *PlotNClustersTracklet(const AliTRDtrackV1 *t = 0x0);
64 TH1 *PlotNClustersTrack(const AliTRDtrackV1 *t = 0x0);
65 TH1 *PlotNTrackletsTrack(const AliTRDtrackV1 *t = 0x0);
66 TH1 *PlotNTrackletsRowCross(const AliTRDtrackV1 *t = 0x0);
67 TH1 *PlotFindableTracklets(const AliTRDtrackV1 *track = 0x0);
68 TH1 *PlotNTracksSector(const AliTRDtrackV1 *t = 0x0);
69 TH1 *PlotPHt(const AliTRDtrackV1 *t = 0x0);
70 TH1 *PlotPHx(const AliTRDtrackV1 *track = 0x0);
71 TH1 *PlotChi2(const AliTRDtrackV1 *t = 0x0);
72 TH1 *PlotChargeCluster(const AliTRDtrackV1 *t = 0x0);
73 TH1 *PlotChargeTracklet(const AliTRDtrackV1 *t = 0x0);
74
75 virtual Bool_t PostProcess();
76 virtual Bool_t GetRefFigure(Int_t ifig);
77
78 void SetRecoParam(AliTRDrecoParam *r);
79
80private:
81 AliTRDcheckDET(const AliTRDcheckDET &);
82 AliTRDcheckDET& operator=(const AliTRDcheckDET &);
83 void GetDistanceToTracklet(Double_t *dist, AliTRDseedV1 * const tracklet, AliTRDcluster * const c);
84 TH1* MakePlotChi2();
85 TH1* MakePlotNTracklets();
86 TH1* MakePlotPulseHeight();
87 Bool_t MakeBarPlot(TH1 *histo, Int_t Color);
88
89 AliTRDeventInfo *fEventInfo; //! ESD Header
90 TMap *fTriggerNames; //! Containing trigger class names
91 AliTRDReconstructor *fReconstructor; // TRD Reconstructor
92 AliTRDgeometry *fGeo; // TRD Geometry object
93
94 ClassDef(AliTRDcheckDET, 1)
95};
96#endif
97