Line data Source code
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 "TH2D.h"
15 : #include "AliLog.h"
16 : #include "TString.h"
17 :
18 : //====================================================================================================================================================
19 : //
20 : // Class for the analysis of the MFT clusters (a.k.a. rec points). Few QA histograms are created
21 : //
22 : // Contact author: antonio.uras@cern.ch
23 : //
24 : //====================================================================================================================================================
25 :
26 : class AliMFTClusterQA : public TObject {
27 :
28 : public:
29 :
30 : AliMFTClusterQA();
31 0 : virtual ~AliMFTClusterQA() {;}
32 :
33 : void Init(Char_t *readDir, Char_t *outDir, Int_t nEventsToAnalyze);
34 : Bool_t LoadNextEvent();
35 : void BookHistos();
36 : void Terminate();
37 :
38 : private:
39 :
40 : AliMFTClusterQA(const AliMFTClusterQA& obj);
41 : AliMFTClusterQA& operator=(const AliMFTClusterQA& other);
42 :
43 : protected:
44 :
45 : static const Int_t fNMaxPlanes = AliMFTConstants::fNMaxPlanes;
46 :
47 : TH1D *fHistNClustersPerEvent[fNMaxPlanes], *fHistNPixelsPerCluster[fNMaxPlanes];
48 : TH1D *fHistClusterSizeX[fNMaxPlanes], *fHistClusterSizeY[fNMaxPlanes], *fHistClusterRadialPosition[fNMaxPlanes];
49 : TH2D *fClusterScatterPlotXY[fNMaxPlanes];
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 12 : ClassDef(AliMFTClusterQA, 1);
62 :
63 : };
64 :
65 : //====================================================================================================================================================
66 :
67 : #endif
68 :
69 :
|