]>
Commit | Line | Data |
---|---|---|
1 | ||
2 | #ifndef AliComparisonSelector_h | |
3 | #define AliComparisonSelector_h | |
4 | ||
5 | #include <iostream> | |
6 | #include <fstream> | |
7 | using namespace std; | |
8 | #include <TSelector.h> | |
9 | ||
10 | #include <TROOT.h> | |
11 | #include <TChain.h> | |
12 | #include <TFile.h> | |
13 | #include "AliGenInfo.h" | |
14 | #include "AliRecInfo.h" | |
15 | ||
16 | class AliESDEvent; | |
17 | class AliESD; | |
18 | class AliESDfriend; | |
19 | class TH1I; | |
20 | class AliComparisonDraw; | |
21 | ||
22 | class AliComparisonSelector : public TSelector { | |
23 | public : | |
24 | AliComparisonSelector(TTree *tree=0); | |
25 | virtual ~AliComparisonSelector() { /*delete fESD; delete fESDfriend;*/ } | |
26 | virtual Int_t Version() const { return 1; } | |
27 | virtual void Begin(TTree *tree); | |
28 | virtual void SlaveBegin(TTree *tree); | |
29 | virtual void Init(TTree *tree); | |
30 | virtual Bool_t Notify(); | |
31 | virtual Bool_t Process(Long64_t entry); | |
32 | virtual Int_t ReadEvent(Long64_t entry); | |
33 | virtual Int_t ProcessIn(Long64_t entry); | |
34 | // | |
35 | virtual void SetOption(const char *option) { fOption = option; } | |
36 | virtual void SetObject(TObject *obj) { fObject = obj; } | |
37 | virtual void SetInputList(TList *input) { fInput = input; } | |
38 | virtual TList *GetOutputList() const { return fOutput; } | |
39 | virtual void SlaveTerminate(); | |
40 | virtual void Terminate(); | |
41 | void DumpSysInfo(Int_t entry); // dump system info | |
42 | // | |
43 | void Clean(); | |
44 | // | |
45 | // | |
46 | // | |
47 | protected: | |
48 | TTree *fChain; //! pointer to the analyzed TTree or TChain | |
49 | // | |
50 | // System info | |
51 | // | |
52 | Int_t fFileNo; //!file number | |
53 | fstream *fSysWatch; //!system watch - Memory and CPU usage | |
54 | fstream *fFileWatch; //!file watch - write the status of the analyzed files | |
55 | Int_t fDebugLevel; //debug level | |
56 | // | |
57 | AliMCInfo *fInfoMC; | |
58 | AliESDRecInfo *fInfoRC; | |
59 | AliComparisonDraw *fComp; | |
60 | ||
61 | ClassDef(AliComparisonSelector,1); | |
62 | }; | |
63 | ||
64 | ||
65 | ||
66 | ||
67 | ||
68 | ||
69 | ||
70 | ||
71 | ||
72 | ||
73 | ||
74 | ||
75 | ||
76 | ||
77 | ||
78 | #endif |