]>
Commit | Line | Data |
---|---|---|
59fbd3a7 | 1 | ////////////////////////////////////////////////////////// |
2 | // This class has been automatically generated on | |
3 | // Wed Aug 17 17:16:33 2005 by ROOT version 5.02/00 | |
4 | // from TTree esdTree/Tree with ESD objects | |
5 | // found on file: AliESDs.root | |
6 | // and modified by M. Ivanov | |
7 | ////////////////////////////////////////////////////////// | |
8 | ||
9 | #ifndef PointMaker_h | |
10 | #define PointMaker_h | |
11 | ||
12 | #include <TROOT.h> | |
13 | #include <TChain.h> | |
14 | #include <TFile.h> | |
15 | #include <TSelector.h> | |
16 | #include <TH1F.h> | |
17 | #include <TH2F.h> | |
18 | ||
19 | #include "AliESDEvent.h" | |
20 | #include "AliESDfriend.h" | |
21 | class AliTrackPointArray; | |
22 | ||
23 | class PointMaker : public TSelector { | |
24 | public: | |
25 | ||
26 | PointMaker(char *outfil="AliTrackPoints.root"); | |
27 | virtual ~PointMaker(); | |
28 | ||
29 | virtual Int_t Version() const {return 1;} | |
30 | virtual void Begin(TTree *tree); | |
31 | virtual void SlaveBegin(TTree *tree); | |
32 | virtual void Init(TTree *tree); | |
33 | virtual Bool_t Notify(); | |
34 | virtual Bool_t Process(Long64_t entry); | |
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 | ||
42 | private: | |
43 | Bool_t IsIdenticalWithOneOf(AliTrackPoint *p, AliTrackPointArray *parray, int nmax=kMaxInt); | |
44 | TTree *fChain; //! pointer to the analyzed TTree or TChain | |
45 | // Declaration of leave types | |
46 | AliESDEvent *fESD; //! | |
47 | AliESDfriend *fESDfriend; //! | |
48 | TFile *fFile; //! output file | |
49 | TTree *fTree; //! pointer to the output TTree | |
50 | AliTrackPointArray *fArray; // pointer to the track points | |
51 | Int_t fNevents; // number of events | |
52 | Int_t fNtracks; // number of tracks | |
53 | Int_t fNAcceptedTracks; // number of accepted tracks | |
54 | TString fOutfil; // output filename | |
55 | public: | |
56 | TH1D *fCuttra; // histogram for monitoring track cuts | |
57 | TH1D *fCutpoi; // histogram for monitoring point cuts | |
58 | TH2D *fModpop; // histogram for monitoring module population | |
59 | ||
60 | ClassDef(PointMaker,0); | |
61 | }; | |
62 | ||
63 | #endif | |
64 |