]>
Commit | Line | Data |
---|---|---|
820b4d9e | 1 | #ifndef AliMFTClusterQA_H |
2 | #define AliMFTClusterQA_H | |
3 | ||
4 | #include "TObject.h" | |
5 | #include "AliRunLoader.h" | |
6 | #include "AliRun.h" | |
7 | #include "AliLoader.h" | |
8 | #include "AliMFT.h" | |
9 | #include "TClonesArray.h" | |
10 | #include "AliMFTCluster.h" | |
11 | #include "AliMFTSegmentation.h" | |
12 | #include "TFile.h" | |
13 | #include "TH1D.h" | |
14 | #include "AliLog.h" | |
15 | #include "TString.h" | |
16 | ||
17 | //==================================================================================================================================================== | |
18 | // | |
19 | // Class for the analysis of the MFT clusters (a.k.a. rec points). Few QA histograms are created | |
20 | // | |
21 | // Contact author: antonio.uras@cern.ch | |
22 | // | |
23 | //==================================================================================================================================================== | |
24 | ||
25 | class AliMFTClusterQA : public TObject { | |
26 | ||
27 | public: | |
28 | ||
29 | AliMFTClusterQA(); | |
30 | virtual ~AliMFTClusterQA() {;} | |
31 | ||
32 | void Init(Char_t *readDir, Char_t *outDir, Int_t nEventsToAnalyze); | |
33 | Bool_t LoadNextEvent(); | |
34 | void BookHistos(); | |
35 | void Terminate(); | |
36 | ||
37 | private: | |
38 | ||
39 | AliMFTClusterQA(const AliMFTClusterQA& obj); | |
40 | AliMFTClusterQA& operator=(const AliMFTClusterQA& other); | |
41 | ||
42 | protected: | |
43 | ||
44 | static const Int_t fMaxNPlanesMFT = 20; | |
45 | ||
46 | TH1D *fHistNClustersPerEvent[fMaxNPlanesMFT], *fHistNPixelsPerCluster[fMaxNPlanesMFT]; | |
47 | TH1D *fHistClusterSizeX[fMaxNPlanesMFT], *fHistClusterSizeY[fMaxNPlanesMFT]; | |
48 | ||
49 | TClonesArray *fMFTClusterArray[fMaxNPlanesMFT]; | |
50 | ||
51 | AliLoader *fMFTLoader; | |
52 | AliRunLoader *fRunLoader; | |
53 | AliMFT *fMFT; | |
54 | ||
55 | Int_t fNPlanes, fNEvents, fEv; | |
56 | ||
57 | TFile *fFileOut; | |
58 | ||
59 | TString fReadDir, fOutDir; | |
60 | ||
61 | ClassDef(AliMFTClusterQA, 1); | |
62 | ||
63 | }; | |
64 | ||
65 | //====================================================================================================== | |
66 | ||
67 | #endif | |
68 | ||
69 |