]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG0/TPC/AliTPCRawHistograms.h
function to reset stat error on corrections
[u/mrichter/AliRoot.git] / PWG0 / TPC / AliTPCRawHistograms.h
1 #ifndef AliTPCRawHistograms_H
2 #define AliTPCRawHistograms_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 raw data
9 //
10
11 #include <TNamed.h>
12
13 class TH3F;
14 class TH1F;
15 class TCanvas;
16 class TTree;
17 class TNtuple;
18
19 class AliTPCRawStream;
20
21 class AliTPCRawHistograms : public TNamed
22 {
23 public:
24   AliTPCRawHistograms();
25   AliTPCRawHistograms(Int_t detector, const Char_t* comment="", Int_t timeStart=-1, Int_t timeStop=-1);
26   
27   AliTPCRawHistograms(const AliTPCRawHistograms& c);
28   virtual ~AliTPCRawHistograms();
29   AliTPCRawHistograms& operator=(const AliTPCRawHistograms& corrMatrix);
30
31   virtual Long64_t Merge(TCollection* list);
32
33   virtual void SaveHistograms();
34
35   void FillDigit(AliTPCRawStream* rawStream, Int_t time=-1);
36
37   TCanvas* DrawHistograms(const Char_t* opt="");
38
39 protected:
40   Int_t       fTimeStart;               // begin time of run(s)
41   Int_t       fTimeStop;                // end time of runs(s)
42
43   TH3F*       fhDigits;                  // cluster of all digits above threshold
44   TH1F*       fhSignal;                  // signal distribution
45   
46   TNtuple*    fDigitTree;                 // row:pad:time:signal
47   
48   ClassDef(AliTPCRawHistograms,1)
49 };
50
51 #endif
52