]> git.uio.no Git - u/mrichter/AliRoot.git/blob - JETAN/AliJetFinder.h
update from pr task : sjena
[u/mrichter/AliRoot.git] / JETAN / AliJetFinder.h
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 // Jet finder base class
9 // manages the search for jets 
10 // Authors: jgcn@mda.cinvestav.mx
11 //          andreas.morsch@cern.ch
12 //          magali.estienne@subatech.in2p3.fr
13 //          alexandre.shabetai@cern.ch
14 //---------------------------------------------------------------------
15
16 #include "AliJetCalTrk.h"
17 #include "AliAODJet.h"
18 #include "AliJetHeader.h"
19 #include "AliAODJetEventBackground.h"
20 class AliAODEvent;
21
22 class AliJetFinder : public TObject 
23 {
24  public:
25   AliJetFinder();
26   virtual ~AliJetFinder();
27
28   // Getters
29   virtual AliJetCalTrkEvent* GetCalTrkEvent() const {return fCalTrkEvent;}
30   virtual AliJetHeader *GetJetHeader() const {return fHeader;}
31   virtual AliAODJetEventBackground* GetEventBackground() const {return fAODEvBkg;}
32   // Setters
33   virtual void              SetCalTrkEvent(AliJetCalTrkEvent& event) {fCalTrkEvent = &event;}
34   virtual void              SetJetHeader(AliJetHeader* h) {fHeader=h;}
35   virtual void              SetEventBackground(AliAODJetEventBackground* bkg) {fAODEvBkg = bkg;}
36   // Others
37   virtual void              AddJet(AliAODJet jet);
38   virtual void              WriteHeaderToFile();
39   virtual void              WriteHeader();
40   // the following have to be implemented for each specific finder
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
47   // some methods to allow steering from the outside
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*/) {}
52
53  protected:
54   AliJetFinder(const AliJetFinder& rJetFinder);
55   AliJetFinder& operator = (const AliJetFinder& rhsf);
56   AliJetHeader*             fHeader;         //  pointer to header
57   TClonesArray*             fAODjets;        //! reconstructed jets
58   Int_t                     fNAODjets;       //  number of reconstructed jets
59   AliAODJetEventBackground* fAODEvBkg;       //! bkg object to be store
60   Int_t                     fDebug;          //  debug option, set through the header
61   AliJetCalTrkEvent*        fCalTrkEvent;    //  pointer to AliJetCalTrkEvent object
62  
63   ClassDef(AliJetFinder,3)                   //  base class for any jet finder
64
65 };
66
67 #endif