1 #ifndef ALITRDQABLACKEVENTS_H
2 #define ALITRDQABLACKEVENTS_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
6 /* $Id: AliTRDqaBlackEvents.h 23387 2008-01-17 17:25:16Z cblume $ */
8 ////////////////////////////////////////////////////////////////////////////
10 // QA of black events //
13 // Sylwester Radomski (radomski@physi.uni-heidelberg.de) //
15 ////////////////////////////////////////////////////////////////////////////
25 class AliTRDrawStreamTB;
27 class AliTRDqaBlackEvents : public TObject {
31 AliTRDqaBlackEvents();
32 AliTRDqaBlackEvents(const AliTRDqaBlackEvents &qa);
33 ~AliTRDqaBlackEvents() {}
34 AliTRDqaBlackEvents& operator = (const AliTRDqaBlackEvents& /*qa*/) { return *this; };
38 Int_t AddEvent(AliTRDrawStreamTB *data);
39 void Process(const char* filename);
41 //TH2D *GetChamberPedestal(Int_t sm, Int_t layer, Int_t stack) {return 0;}
42 TH2D *GetChamberPedestal(Int_t det) {return fChPed[det];}
44 //TH2D *GetChamberNoise(Int_t sm, Int_t layer, Int_t stack) {return 0;}
45 TH2D *GetChamberNoise(Int_t det) {return fChNoise[det];}
47 void SetNoiseLevel(Double_t min, Double_t max) {fMinNoise = min; fMaxNoise = max;}
48 void SetFitMethod(Int_t fit) {fFitType = fit;}
50 void SetRefFile(const char *filename);
52 void DrawChamber(const char *filename, Int_t det, Int_t w=700, Int_t h=400);
53 //void ScanChamber(const char *filename, Int_t first, Int_t last);
54 void DrawSm(const char *filename, Int_t sm, Int_t w=900, Int_t h=700);
56 void SetFullView(Int_t v, Int_t thresh, Int_t count) {
64 Int_t fnEvents; // number of events processed
65 Int_t fCreateFull; // flag if to create a full view
66 Int_t fThresh; // threshold to analyze MCM data
67 Int_t fCount; // minimum number of entries above threshold
69 Char_t fRefFileName[256]; // name of the file with reference distributions
84 // histograms per detector
86 TH1D *fOccupancy; // how many times is a pad present in data
87 TH2D *fDetRob; // detector -- read out board
89 // histograms per chamber
91 TH1D *fPed[kDET]; // reconstructed pedestals distribution (on hist per chamber)
92 TH1D *fNoise[kDET]; // reconstructed noise distribution (on hist per chamber)
93 TH1D *fChPP[kDET]; // peak to peak for each chamber
94 TH1D *fNPointDist[kDET]; // distributin of the number of points
95 TH2D *fChPed[kDET]; // Some histograms
96 TH2D *fChNoise[kDET]; // Some histograms
97 TH2D *fNPoint[kDET]; // number of data points
98 TH3F *fData[kDET]; // Some histograms
99 TH1D *fSignal[kDET]; // Some histograms
100 TH2D *fnEntriesRM[kDET]; // number of entries for ROB - MCM
101 TH1D *fnEntriesRMDist[kDET]; // distribtion of number of entries per ROB-MCM
103 // after reference subtraction
104 TH2D *fChPedRes[kDET]; // histograms after reference subtraction
105 TH2D *fChNoiseRes[kDET]; // histograms after reference subtraction
107 TH2D *fTBEvent; // coherent noise
109 TH2D *fRefHistPed; // reference distributions
110 TH2D *fRefHistNoise; // reference distributions
112 TH2S *fFullSignal[kDET*kROB*kMCM]; // one histogram per MCM
113 Short_t fFullCounter[kDET*kROB*kMCM]; // counts a number of entries with high signal
116 TH1D *fErrorHC; // number of errors HC
117 TH1D *fErrorMCM; // number of errors MCM
118 TH1D *fErrorADC; // number of errors ADC
120 TH1D *fErrorSMHC; // number of errors in HC per SM
121 TH1D *fErrorSMMCM; // number of errors in MCM per SM
122 TH1D *fErrorSMADC; // number of errors in ADC per SM
124 TH2D *fErrorLocHC[kDET]; // location of errors
125 TH2D *fErrorLocMCM[kDET]; // location
126 TH2D *fErrorLocADC[kDET]; // errors in ADC
129 TGraph *fErrorGraphHC;
130 TGraph *fErrorGraphMCM;
131 TGraph *fErrorGraphADC;
133 TGraph *fGraphMCM; // number of strange MCMs detected
136 TObjArray *fMcmTracks;
142 // full detector view
146 // number of fired ADC channels in total and per SM
147 TGraph *fNumberADC[kSM+1];
154 TH1D *fSmNoiseRms[kSM];
155 TH1D *fSmNoiseFit[kSM];
159 Double_t fMinNoise; // Minimum noise
160 Double_t fMaxNoise; // Maximum noise
164 void ReadRefHists(Int_t det);
165 Int_t CheckMCM(Int_t index);
168 ClassDef(AliTRDqaBlackEvents,0) // QA for black events