]>
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 |
139cbd96 | 13 | // alexandre.shabetai@cern.ch |
99e5fe42 | 14 | //--------------------------------------------------------------------- |
15 | ||
139cbd96 | 16 | #include "AliJetCalTrk.h" |
1d27ecd2 | 17 | #include "AliAODJet.h" |
4bd88e77 | 18 | #include "AliJetHeader.h" |
4bd88e77 | 19 | #include "AliAODJetEventBackground.h" |
1d27ecd2 | 20 | class AliAODEvent; |
3a7af7bd | 21 | |
99e5fe42 | 22 | class AliJetFinder : public TObject |
23 | { | |
24 | public: | |
99e5fe42 | 25 | AliJetFinder(); |
26 | virtual ~AliJetFinder(); | |
27 | ||
42b0ac89 | 28 | // Getters |
139cbd96 | 29 | virtual AliJetCalTrkEvent* GetCalTrkEvent() const {return fCalTrkEvent;} |
30 | virtual AliJetHeader *GetJetHeader() const {return fHeader;} | |
b8bf1e90 | 31 | virtual AliAODJetEventBackground* GetEventBackground() const {return fAODEvBkg;} |
42b0ac89 | 32 | // Setters |
139cbd96 | 33 | virtual void SetCalTrkEvent(AliJetCalTrkEvent& event) {fCalTrkEvent = &event;} |
34 | virtual void SetJetHeader(AliJetHeader* h) {fHeader=h;} | |
35 | virtual void SetEventBackground(AliAODJetEventBackground* bkg) {fAODEvBkg = bkg;} | |
42b0ac89 | 36 | // Others |
139cbd96 | 37 | virtual void AddJet(AliAODJet jet); |
38 | virtual void WriteHeaderToFile(); | |
39 | virtual void WriteHeader(); | |
99e5fe42 | 40 | // the following have to be implemented for each specific finder |
139cbd96 | 41 | virtual void Init() {} |
42 | virtual void Reset() {fNAODjets = 0;} | |
43 | virtual void FindJets() {} | |
44 | virtual void ComputeBkgs() {} | |
45 | virtual void CreateOutputObjects(TList * const /*histos*/) {} // Used by CDF for histo storage | |
46 | ||
7d0f353c | 47 | // some methods to allow steering from the outside |
139cbd96 | 48 | virtual Bool_t ProcessEvent(); |
49 | virtual void ConnectAOD(const AliAODEvent* aod); | |
50 | virtual void ConnectAODNonStd(AliAODEvent* aod,const char* bname); | |
51 | virtual void AddHistosToList(TList */*list*/) {} | |
8838ab7a | 52 | |
99e5fe42 | 53 | protected: |
1b7d5d7e | 54 | AliJetFinder(const AliJetFinder& rJetFinder); |
55 | AliJetFinder& operator = (const AliJetFinder& rhsf); | |
b8bf1e90 | 56 | AliJetHeader* fHeader; // pointer to header |
57 | TClonesArray* fAODjets; //! reconstructed jets | |
139cbd96 | 58 | Int_t fNAODjets; // number of reconstructed jets |
b8bf1e90 | 59 | AliAODJetEventBackground* fAODEvBkg; //! bkg object to be store |
dd677561 | 60 | Int_t fDebug; // debug option, set through the header |
139cbd96 | 61 | AliJetCalTrkEvent* fCalTrkEvent; // pointer to AliJetCalTrkEvent object |
62 | ||
63 | ClassDef(AliJetFinder,3) // base class for any jet finder | |
dd677561 | 64 | |
99e5fe42 | 65 | }; |
66 | ||
67 | #endif |