Class moved to STEERBase.
[u/mrichter/AliRoot.git] / JETAN / AliJetReaderHeader.h
CommitLineData
99e5fe42 1#ifndef ALIJETREADERHEADER_H
2#define ALIJETREADERHEADER_H
3
4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6
1994c1b0 7//---------------------------------------------------------------------
99e5fe42 8// base class for Jet Reader Header
1994c1b0 9//
99e5fe42 10// Author: jgcn@mda.cinvestav.mx
1994c1b0 11//---------------------------------------------------------------------
99e5fe42 12
13#include <TNamed.h>
14#include <TString.h>
15
16class AliJetReaderHeader : public TNamed
17{
18
19 public:
20 AliJetReaderHeader(const char* name);
21 AliJetReaderHeader();
22 virtual ~AliJetReaderHeader();
23
24 // Getters
4faf4c3d 25 virtual const TString GetComment() {return fComment;}
26 virtual const char* GetDirectory() {return fDir.Data();}
27 virtual const char* GetBgDirectory(){return fBgDir.Data();}
99e5fe42 28 virtual const char* GetPattern() {return fPattern.Data();}
832017f1 29 virtual Float_t GetFiducialEtaMin() const {return fFiducialEtaMin;}
30 virtual Float_t GetFiducialEtaMax() const {return fFiducialEtaMax;}
b45b0c92 31 virtual Float_t GetPtCut() const {return fPtCut;}
4faf4c3d 32 Int_t GetNEvents() const {return fLast-fFirst;}
33 Int_t GetFirstEvent() const {return fFirst;}
34 Int_t GetLastEvent() const {return fLast;}
35 Int_t GetDetector() const {return fOption;}
36 Int_t GetDebug() const {return fDebug;}
37 Int_t GetSignalPerBg() const {return fSignalPerBg;}
38
99e5fe42 39 // Setters
4faf4c3d 40 virtual void SetComment(const char* s) {fComment=TString(s);}
41 virtual void SetPattern(const char* s) {fPattern=TString(s);}
42 virtual void SetDirectory(const char* s) {fDir=TString(s);}
43 virtual void SetBgDirectory(const char* s, Int_t n = 1)
b1a192e8 44 {fBgDir=TString(s); fSignalPerBg = n;}
99e5fe42 45 virtual void SetFirstEvent(Int_t i=0) {fFirst=i;}
46 virtual void SetLastEvent(Int_t i=-1) {fLast=i;}
832017f1 47 virtual void SetFiducialEta(Float_t etamin, Float_t etamax)
83a444b1 48 { fFiducialEtaMin = etamin; fFiducialEtaMax = etamax;}
49 virtual void SetPtCut(Float_t par = 2.0) {fPtCut = par;}
1b7d5d7e 50
b45b0c92 51 virtual void SetDetector(Int_t option = 0) {fOption = option;}
52 virtual void SetDebug(Int_t debug = 0) {fDebug = debug;}
99e5fe42 53 protected:
b45b0c92 54 Int_t fFirst; // First and last events analyzed
55 Int_t fLast; // in current set of files
56 Int_t fOption; // detector used for jet reconstruction
57 Int_t fDebug; // debug option
4faf4c3d 58 Int_t fSignalPerBg;
832017f1 59 Float_t fFiducialEtaMin; // Fiducial minimum eta
83a444b1 60 Float_t fFiducialEtaMax; // Fiducial maximum eta
61 Float_t fPtCut; // pt cut
832017f1 62 TString fComment; // a comment
4faf4c3d 63 TString fDir; // directory with input files for signal
64 TString fBgDir; // directory with input files for background
832017f1 65 TString fPattern; // pattern to look for input files
99e5fe42 66
83a444b1 67 ClassDef(AliJetReaderHeader,2);
99e5fe42 68};
69
70#endif