]>
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 | ||
7 | ||
8 | //--------------------------------------------------------------------- | |
9 | // Jet finder base class | |
10 | // manages the search for jets | |
11 | // Author: jgcn@mda.cinvestav.mx | |
12 | //--------------------------------------------------------------------- | |
13 | ||
14 | #include <TObject.h> | |
15 | ||
16 | class TFile; | |
17 | class AliJet; | |
18 | class AliJetReader; | |
19 | class AliJetControlPlots; | |
20 | class AliLeading; | |
21 | ||
22 | ||
23 | class AliJetFinder : public TObject | |
24 | { | |
25 | public: | |
26 | ||
27 | AliJetFinder(); | |
28 | virtual ~AliJetFinder(); | |
29 | ||
30 | // getters | |
31 | virtual AliJet *GetJets() {return fJets;} | |
32 | virtual Bool_t GetPlotMode() const {return fPlotMode;} | |
33 | virtual TFile* GetOutputFile() { return fOut; } | |
34 | // setters | |
35 | virtual void SetPlotMode(Bool_t b); | |
36 | virtual void SetOutputFile(const char *name="jets.root"); | |
37 | virtual void SetJetReader(AliJetReader* r) {fReader=r;} | |
38 | ||
39 | // others | |
40 | virtual void PrintJets(); | |
41 | virtual void Run(); | |
42 | virtual void WriteJetsToFile(Int_t i); | |
43 | virtual void WriteRHeaderToFile(); | |
44 | // the following have to be implemented for each specific finder | |
45 | virtual void Init() { } | |
46 | virtual void Reset() { } | |
47 | virtual void FindJets() { } | |
48 | virtual void WriteJHeaderToFile() { } | |
49 | virtual void GetGenJets(); | |
50 | ||
51 | protected: | |
52 | Bool_t fPlotMode; // do you want control plots? | |
53 | AliJet* fJets; // pointer to jet class | |
54 | AliJet* fGenJets; // pointer to generated jets | |
55 | AliLeading* fLeading; // pointer to leading particle data | |
56 | AliJetReader* fReader; // pointer to reader | |
57 | AliJetControlPlots* fPlots; // pointer to control plots | |
58 | TFile* fOut; // output file | |
59 | ||
60 | ClassDef(AliJetFinder,1) | |
61 | }; | |
62 | ||
63 | #endif |