]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TPC/AliTPCSelectorESD.h
Adding the classes to generate a par file (Marian)
[u/mrichter/AliRoot.git] / TPC / AliTPCSelectorESD.h
CommitLineData
10757ee9 1
2#ifndef AliTPCSelectorESD_h
3#define AliTPCSelectorESD_h
4
5#include <iostream>
6#include <fstream>
7using namespace std;
8#include <TSelector.h>
9
10#include <TROOT.h>
11#include <TChain.h>
12#include <TFile.h>
13
14class AliESDEvent;
15class AliESD;
16class AliESDfriend;
17class TH1I;
18
19
20class AliTPCSelectorESD : public TSelector {
21public :
22 AliTPCSelectorESD(TTree *tree=0);
23 virtual ~AliTPCSelectorESD() { /*delete fESD; delete fESDfriend;*/ }
24 virtual Int_t Version() const { return 1; }
25 virtual void Begin(TTree *tree);
26 virtual void SlaveBegin(TTree *tree);
27 virtual void Init(TTree *tree);
28 virtual Bool_t Notify();
29 virtual Bool_t Process(Long64_t entry);
30 virtual Int_t ReadEvent(Long64_t entry);
31 virtual Int_t ProcessIn(Long64_t entry);
32
33 virtual void SetOption(const char *option) { fOption = option; }
34 virtual void SetObject(TObject *obj) { fObject = obj; }
35 virtual void SetInputList(TList *input) { fInput = input; }
36 virtual TList *GetOutputList() const { return fOutput; }
37 virtual void SlaveTerminate();
38 virtual void Terminate();
39 void CleanESD();
40 void DumpSysInfo(Int_t entry); // dump system info
41
42protected:
43 TTree *fChain; //! pointer to the analyzed TTree or TChain
44 TTree *fTreeFriend; //! pointer to friend tree
45 AliESDEvent *fESDevent; //! esd event
46 AliESD *fESD; //! pointer to ESD
47 AliESDfriend *fESDfriend; //! pointer to friend
48 // USER defined variables
49 Int_t fFileNo; //! file number
50 TH1I *fNtracks; //! number of Tracks
51 TH1I *fNtracksFriend; //! number of firend Tracks
52 TH1I *fNClusters; //! number of clusters on track
53 //
54 // System info
55 //
56 fstream *fSysWatch; // system watch - Memory and CPU usage
57 fstream *fFileWatch; // file watch - write the status of the analyzed files
58 Int_t fDebugLevel; //debug level
59
60 ClassDef(AliTPCSelectorESD,1);
61};
62
63
64
65
66
67#endif