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