]>
Commit | Line | Data |
---|---|---|
65fb704d | 1 | #ifndef ALIMCQA_H |
2 | #define ALIMCQA_H | |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | /* $Id $ */ | |
7 | ||
8 | /////////////////////////////////////////////////////////////////////////////// | |
9 | // // | |
10 | // Quality assurance services for MC // | |
11 | // // | |
12 | /////////////////////////////////////////////////////////////////////////////// | |
13 | ||
14 | #include "TObject.h" | |
15 | class TObjArray; | |
16 | class TBrowser; | |
8409d8c9 | 17 | class TPaveLabel; |
65fb704d | 18 | |
19 | class AliMCQA : public TObject | |
20 | { | |
21 | public: | |
8409d8c9 | 22 | AliMCQA(); |
65fb704d | 23 | AliMCQA(Int_t ndets); |
e460afec | 24 | virtual ~AliMCQA(); |
65fb704d | 25 | Bool_t IsFolder() const {return kTRUE;} |
26 | virtual void Browse(TBrowser *b); | |
27 | virtual void PreTrack(); | |
28 | virtual TObjArray *GetQAList() const {return fQAList;} | |
8409d8c9 | 29 | void DrawModuleName(); |
30 | void AddModuleName(); | |
31 | void DrawVolumeName(); | |
32 | void AddVolumeName(); | |
33 | ||
34 | ||
65fb704d | 35 | // QA step manager |
36 | virtual void StepManager(Int_t id); | |
37 | ||
38 | protected: | |
8409d8c9 | 39 | Int_t fNdets; // Number of detectors |
40 | Int_t fNvolumes; // Number of volumes | |
41 | TObjArray *fQAList; // QA lists of histograms | |
42 | Int_t fOldId; //! ID of the current module | |
43 | Int_t *fDetDone; //! Detector done flag | |
44 | TObjArray *fQAHist; // Global QA histograms | |
45 | TObjArray *fVolNames; // Volume names | |
46 | TObjArray *fModNames; // Module names | |
47 | TPaveLabel *fMPaveLabel; //! PaveLabel for the Modules | |
48 | TPaveLabel *fVPaveLabel; //! PaveLabel for the Volumes | |
65fb704d | 49 | |
50 | private: | |
51 | AliMCQA(const AliMCQA &) {} | |
52 | AliMCQA & operator=(const AliMCQA &) {return (*this);} | |
8409d8c9 | 53 | void DrawPaveLabel(TPaveLabel *&pv); |
54 | Int_t GetHBin(const char* hname); | |
65fb704d | 55 | |
56 | ClassDef(AliMCQA,1) //Quality Assurance class for the MC | |
57 | }; | |
58 | ||
59 | #endif | |
60 |