]>
Commit | Line | Data |
---|---|---|
99e5fe42 | 1 | #ifndef ALIJETFINDER_H |
2 | #define ALIJETFINDER_H | |
3 | ||
4 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
5 | * See cxx source for full Copyright notice */ | |
6 | ||
99e5fe42 | 7 | //--------------------------------------------------------------------- |
8 | // Jet finder base class | |
9 | // manages the search for jets | |
7d0f353c | 10 | // Authors: jgcn@mda.cinvestav.mx |
11 | // andreas.morsch@cern.ch | |
99e5fe42 | 12 | //--------------------------------------------------------------------- |
13 | ||
14 | #include <TObject.h> | |
1d27ecd2 | 15 | #include "AliAODJet.h" |
99e5fe42 | 16 | |
17 | class TFile; | |
7d0f353c | 18 | class TTree; |
99e5fe42 | 19 | class AliJet; |
20 | class AliJetReader; | |
7aec0427 | 21 | class AliJetHeader; |
99e5fe42 | 22 | class AliJetControlPlots; |
23 | class AliLeading; | |
1d27ecd2 | 24 | class AliAODJet; |
25 | class AliAODEvent; | |
99e5fe42 | 26 | |
99e5fe42 | 27 | class AliJetFinder : public TObject |
28 | { | |
29 | public: | |
99e5fe42 | 30 | AliJetFinder(); |
31 | virtual ~AliJetFinder(); | |
32 | ||
33 | // getters | |
83a444b1 | 34 | virtual AliJet *GetJets() {return fJets;} |
35 | virtual Bool_t GetPlotMode() const {return fPlotMode;} | |
36 | virtual TFile* GetOutputFile() {return fOut;} | |
99e5fe42 | 37 | // setters |
38 | virtual void SetPlotMode(Bool_t b); | |
39 | virtual void SetOutputFile(const char *name="jets.root"); | |
40 | virtual void SetJetReader(AliJetReader* r) {fReader=r;} | |
7d0f353c | 41 | virtual void SetJetHeader(AliJetHeader* h) {fHeader=h;} |
99e5fe42 | 42 | // others |
1d27ecd2 | 43 | virtual void AddJet(AliAODJet jet); |
7d0f353c | 44 | virtual void PrintJets(); |
45 | virtual void Run(); | |
7d0f353c | 46 | virtual void WriteRHeaderToFile(); |
99e5fe42 | 47 | // the following have to be implemented for each specific finder |
7d0f353c | 48 | virtual void Init() {} |
b45b0c92 | 49 | virtual void Reset() {} |
50 | virtual void FindJets() {} | |
51 | virtual void FindJetsTPC(){} | |
99e5fe42 | 52 | virtual void WriteJHeaderToFile() { } |
7d0f353c | 53 | // some methods to allow steering from the outside |
54 | virtual Bool_t ProcessEvent(Long64_t entry); | |
55 | virtual void FinishRun(); | |
f3f3617d | 56 | virtual void ConnectTree(TTree* tree, TObject* data); |
1d27ecd2 | 57 | virtual void ConnectAOD(AliAODEvent* aod); |
eaabc21f | 58 | virtual TTree* MakeTreeJ(char* name); |
7d0f353c | 59 | virtual void WriteHeaders(); |
eaabc21f | 60 | virtual void WriteJetsToFile() {;} |
61 | virtual void TestJet() {;} | |
99e5fe42 | 62 | protected: |
1b7d5d7e | 63 | AliJetFinder(const AliJetFinder& rJetFinder); |
64 | AliJetFinder& operator = (const AliJetFinder& rhsf); | |
eaabc21f | 65 | TTree* fTreeJ; //! pointer to jet tree |
66 | Bool_t fPlotMode; //! do you want control plots? | |
19e6695b | 67 | AliJet* fJets; //! pointer to jet class |
68 | AliJet* fGenJets; //! pointer to generated jets | |
69 | AliLeading* fLeading; //! pointer to leading particle data | |
70 | AliJetReader* fReader; // pointer to reader | |
71 | AliJetHeader* fHeader; // pointer to header | |
1d27ecd2 | 72 | TClonesArray* fAODjets; //! reconstructed jets |
73 | Int_t fNAODjets; //! number of reconstructed jets | |
19e6695b | 74 | AliJetControlPlots* fPlots; //! pointer to control plots |
75 | TFile* fOut; //! output file | |
7d0f353c | 76 | ClassDef(AliJetFinder,2) |
99e5fe42 | 77 | }; |
78 | ||
79 | #endif |