]>
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 | |
8838ab7a | 12 | // magali.estienne@subatech.in2p3.fr |
99e5fe42 | 13 | //--------------------------------------------------------------------- |
14 | ||
be6e5811 | 15 | //#include <Riostream.h> |
16 | //#include <vector> | |
17 | ||
99e5fe42 | 18 | #include <TObject.h> |
1d27ecd2 | 19 | #include "AliAODJet.h" |
99e5fe42 | 20 | |
8838ab7a | 21 | class TChain; |
952b368c | 22 | class TTree; |
1d27ecd2 | 23 | class AliAODJet; |
24 | class AliAODEvent; | |
b8bf1e90 | 25 | class AliAODJetEventBackground; |
952b368c | 26 | class AliJetHeader; |
27 | class AliJetReader; | |
28 | class AliJetReaderHeader; | |
99e5fe42 | 29 | |
99e5fe42 | 30 | class AliJetFinder : public TObject |
31 | { | |
32 | public: | |
99e5fe42 | 33 | AliJetFinder(); |
34 | virtual ~AliJetFinder(); | |
35 | ||
42b0ac89 | 36 | // Getters |
952b368c | 37 | virtual AliJetReader *GetReader() const {return fReader;} |
38 | virtual AliJetHeader *GetHeader() const {return fHeader;} | |
b8bf1e90 | 39 | virtual AliAODJetEventBackground* GetEventBackground() const {return fAODEvBkg;} |
42b0ac89 | 40 | // Setters |
8838ab7a | 41 | virtual void SetJetReader(AliJetReader* r) {fReader=r;} |
42 | virtual void SetJetHeader(AliJetHeader* h) {fHeader=h;} | |
b8bf1e90 | 43 | virtual void SetEventBackground(AliAODJetEventBackground* bkg) {fAODEvBkg = bkg;} |
42b0ac89 | 44 | // Others |
8838ab7a | 45 | virtual void AddJet(AliAODJet jet); |
8838ab7a | 46 | virtual void WriteRHeaderToFile(); |
99e5fe42 | 47 | // the following have to be implemented for each specific finder |
8838ab7a | 48 | virtual void Init() {} |
49 | virtual void InitTask(TChain* /*tree*/) {} | |
50 | virtual void Reset() {fNAODjets = 0;} | |
51 | virtual void FindJets() {} | |
52 | virtual void FindJetsC(){} | |
be6e5811 | 53 | virtual void WriteJHeaderToFile() {} |
7d0f353c | 54 | // some methods to allow steering from the outside |
8838ab7a | 55 | virtual Bool_t ProcessEvent(); |
56 | virtual Bool_t ProcessEvent2(); | |
8838ab7a | 57 | virtual void ConnectTree(TTree* tree, TObject* data); |
58 | virtual void ConnectAOD(AliAODEvent* aod); | |
59 | virtual void ConnectAODNonStd(AliAODEvent* aod,const char* bname); | |
8838ab7a | 60 | virtual void WriteHeaders(); |
8838ab7a | 61 | |
99e5fe42 | 62 | protected: |
1b7d5d7e | 63 | AliJetFinder(const AliJetFinder& rJetFinder); |
64 | AliJetFinder& operator = (const AliJetFinder& rhsf); | |
b8bf1e90 | 65 | AliJetReader* fReader; // pointer to reader |
66 | AliJetHeader* fHeader; // pointer to header | |
67 | TClonesArray* fAODjets; //! reconstructed jets | |
68 | Int_t fNAODjets; //! number of reconstructed jets | |
69 | AliAODJetEventBackground* fAODEvBkg; //! bkg object to be store | |
7d0f353c | 70 | ClassDef(AliJetFinder,2) |
99e5fe42 | 71 | }; |
72 | ||
73 | #endif |