Standard connection to ESD in chain.
[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
99e5fe42 12//---------------------------------------------------------------------
13
14#include <TObject.h>
15
16class TFile;
7d0f353c 17class TTree;
99e5fe42 18class AliJet;
19class AliJetReader;
7aec0427 20class AliJetHeader;
99e5fe42 21class AliJetControlPlots;
22class AliLeading;
23
99e5fe42 24class AliJetFinder : public TObject
25{
26 public:
99e5fe42 27 AliJetFinder();
28 virtual ~AliJetFinder();
29
30 // getters
83a444b1 31 virtual AliJet *GetJets() {return fJets;}
32 virtual Bool_t GetPlotMode() const {return fPlotMode;}
33 virtual TFile* GetOutputFile() {return fOut;}
99e5fe42 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;}
7d0f353c 38 virtual void SetJetHeader(AliJetHeader* h) {fHeader=h;}
99e5fe42 39 // others
7d0f353c 40 virtual void PrintJets();
41 virtual void Run();
7d0f353c 42 virtual void WriteRHeaderToFile();
99e5fe42 43 // the following have to be implemented for each specific finder
7d0f353c 44 virtual void Init() {}
b45b0c92 45 virtual void Reset() {}
46 virtual void FindJets() {}
47 virtual void FindJetsTPC(){}
99e5fe42 48 virtual void WriteJHeaderToFile() { }
7d0f353c 49 // some methods to allow steering from the outside
50 virtual Bool_t ProcessEvent(Long64_t entry);
51 virtual void FinishRun();
f3f3617d 52 virtual void ConnectTree(TTree* tree, TObject* data);
eaabc21f 53 virtual TTree* MakeTreeJ(char* name);
7d0f353c 54 virtual void WriteHeaders();
eaabc21f 55 virtual void WriteJetsToFile() {;}
56 virtual void TestJet() {;}
99e5fe42 57 protected:
1b7d5d7e 58 AliJetFinder(const AliJetFinder& rJetFinder);
59 AliJetFinder& operator = (const AliJetFinder& rhsf);
eaabc21f 60 TTree* fTreeJ; //! pointer to jet tree
61 Bool_t fPlotMode; //! do you want control plots?
19e6695b 62 AliJet* fJets; //! pointer to jet class
63 AliJet* fGenJets; //! pointer to generated jets
64 AliLeading* fLeading; //! pointer to leading particle data
65 AliJetReader* fReader; // pointer to reader
66 AliJetHeader* fHeader; // pointer to header
67 AliJetControlPlots* fPlots; //! pointer to control plots
68 TFile* fOut; //! output file
7d0f353c 69 ClassDef(AliJetFinder,2)
99e5fe42 70};
71
72#endif