]>
Commit | Line | Data |
---|---|---|
10757ee9 | 1 | |
2 | #ifndef AliTPCSelectorESD_h | |
3 | #define AliTPCSelectorESD_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 | ||
c6f3749a | 14 | class TString; |
10757ee9 | 15 | class AliESDEvent; |
16 | class AliESD; | |
17 | class AliESDfriend; | |
18 | class TH1I; | |
19 | ||
20 | ||
21 | class AliTPCSelectorESD : public TSelector { | |
22 | public : | |
c6f3749a | 23 | AliTPCSelectorESD(TTree *tree=0); |
24 | virtual ~AliTPCSelectorESD() { /*delete fESD; delete fESDfriend;*/ } | |
25 | virtual Int_t Version() const { return 1; } | |
26 | virtual void Begin(TTree *tree); | |
27 | virtual void SlaveBegin(TTree *tree); | |
28 | virtual void Init(TTree *tree); | |
29 | virtual Bool_t Notify(); | |
30 | virtual Bool_t Process(Long64_t entry); | |
10757ee9 | 31 | virtual Int_t ReadEvent(Long64_t entry); |
c6f3749a | 32 | virtual Int_t ProcessIn(Long64_t entry); |
33 | virtual void RegisterData(); | |
10757ee9 | 34 | |
c6f3749a | 35 | |
36 | virtual void SetOption(const char *option) { fOption = option; } | |
37 | virtual void SetObject(TObject *obj) { fObject = obj; } | |
38 | virtual void SetInputList(TList *input); | |
39 | virtual TList *GetOutputList() const { return fOutput; } | |
40 | virtual void SlaveTerminate(); | |
41 | virtual void Terminate(); | |
42 | void CleanESD(); | |
43 | void DumpSysInfo(Int_t entry); // dump system info | |
10757ee9 | 44 | |
45 | protected: | |
c6f3749a | 46 | TTree *fChain; //! pointer to the analyzed TTree or TChain |
47 | TTree *fTreeFriend; //! pointer to friend tree | |
10757ee9 | 48 | AliESDEvent *fESDevent; //! esd event |
c6f3749a | 49 | AliESD *fESD; //! pointer to ESD |
50 | AliESDfriend *fESDfriend; //! pointer to friend | |
10757ee9 | 51 | // USER defined variables |
c6f3749a | 52 | Int_t fFileNo; //! file number |
53 | TH1I *fNtracks; //! number of Tracks | |
54 | TH1I *fNtracksFriend; //! number of firend Tracks | |
55 | TH1I *fNClusters; //! number of clusters on track | |
56 | TString *fRegPath; // path to store persistent data | |
57 | // | |
58 | // System info | |
59 | // | |
60 | fstream *fSysWatch; // system watch - Memory and CPU usage | |
61 | fstream *fFileWatch; // file watch - write the status of the analyzed files | |
62 | Int_t fDebugLevel; //debug level | |
63 | ClassDef(AliTPCSelectorESD,1); | |
10757ee9 | 64 | }; |
65 | ||
66 | ||
67 | ||
68 | ||
69 | ||
70 | #endif |