]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG0/TPC/AliTPCClusterHistograms.h
adding AliTPCRawHistograms
[u/mrichter/AliRoot.git] / PWG0 / TPC / AliTPCClusterHistograms.h
1 #ifndef ALITPCClusterHistograms_H
2 #define ALITPCClusterHistograms_H
3
4 /* $Id$ */
5
6 //
7 // This class contains a number of histograms for diagnostics of a TPC
8 // read out chamber from the reconstructed clusters.
9 //
10
11 #include <TNamed.h>
12
13 class TH3;
14 class TH2F;
15 class TCanvas;
16 class TProfile;
17 class TProfile2D;
18 class TString;
19
20 class AliTPCclusterMI;
21
22 class AliTPCClusterHistograms : public TNamed
23 {
24 public:
25
26   AliTPCClusterHistograms();
27   AliTPCClusterHistograms(Int_t detector, const Char_t* comment="", Int_t timeStart=-1, Int_t timeStop=-1, Bool_t edgeSuppression = kFALSE);
28   
29   AliTPCClusterHistograms(const AliTPCClusterHistograms& c);
30   virtual ~AliTPCClusterHistograms();
31   AliTPCClusterHistograms& operator=(const AliTPCClusterHistograms& corrMatrix);
32
33   virtual Long64_t Merge(TCollection* list);
34
35   virtual void SaveHistograms();
36
37   void FillCluster(AliTPCclusterMI* clusterMI, Int_t time=-1);
38   //  void FillCluster(AliTPCclusterMI* clusterMI, Int_t time=-1, Float_t trackangle);
39
40   TCanvas* DrawHistograms(const Char_t* opt="");
41
42   static const char* FormDetectorName(Int_t detector, Bool_t edgeSuppression = kFALSE, const char* comment = 0);
43
44 protected:
45
46   Int_t       fTimeStart;               // begin time of run(s)
47   Int_t       fTimeStop;                // end time of runs(s)
48
49   TH2F*       fhQmaxVsRow;              //
50   TH2F*       fhQtotVsRow;              //
51   TH2F*       fhSigmaYVsRow;            //
52   TH2F*       fhSigmaZVsRow;            //
53
54   TProfile2D* fhQmaxProfileYVsRow;      //
55   TProfile2D* fhQtotProfileYVsRow;      // 
56   TProfile2D* fhSigmaYProfileYVsRow;    //
57   TProfile2D* fhSigmaZProfileYVsRow;    //
58
59   TProfile2D* fhQmaxProfileZVsRow;      //
60   TProfile2D* fhQtotProfileZVsRow;      //
61   TProfile2D* fhSigmaYProfileZVsRow;    //
62   TProfile2D* fhSigmaZProfileZVsRow;    //
63
64   TProfile*   fhQtotVsTime;             //
65   TProfile*   fhQmaxVsTime;             //
66   
67   Bool_t      fIsIROC;                  // true = IROC, false = OROC
68   Bool_t      fEdgeSuppression;         // if set edges are not taken into account for histograms
69
70   ClassDef(AliTPCClusterHistograms,1)
71 };
72
73 #endif
74