Coverity fix
[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//---------------------------------------------------------------------
8838ab7a 12#include <Riostream.h>
99e5fe42 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();}
f45e6f72 29 virtual const TString GetEMCALmatrices2bLoad() {return fMatricesEMCAL;}
30 virtual const TString GetEMCALgeo2bLoad() {return fGeomEMCAL;}
31 virtual const TString GetMyOADBfile() {return fMyOADBfile;}
32
832017f1 33 virtual Float_t GetFiducialEtaMin() const {return fFiducialEtaMin;}
ee7de0dd 34 virtual Float_t GetFiducialEtaMax() const {return fFiducialEtaMax;}
35 virtual Float_t GetFiducialPhiMin() const {return fFiducialPhiMin;}
36 virtual Float_t GetFiducialPhiMax() const {return fFiducialPhiMax;}
b45b0c92 37 virtual Float_t GetPtCut() const {return fPtCut;}
4faf4c3d 38 Int_t GetNEvents() const {return fLast-fFirst;}
39 Int_t GetFirstEvent() const {return fFirst;}
40 Int_t GetLastEvent() const {return fLast;}
41 Int_t GetDetector() const {return fOption;}
8838ab7a 42 Int_t GetCluster() const {return fCluster;}
ee7de0dd 43 Bool_t GetDZ() const {return fDZ;}
b14fae2d 44 Int_t GetDebug() const {return fDebug;}
4faf4c3d 45 Int_t GetSignalPerBg() const {return fSignalPerBg;}
46
99e5fe42 47 // Setters
4faf4c3d 48 virtual void SetComment(const char* s) {fComment=TString(s);}
49 virtual void SetPattern(const char* s) {fPattern=TString(s);}
50 virtual void SetDirectory(const char* s) {fDir=TString(s);}
51 virtual void SetBgDirectory(const char* s, Int_t n = 1)
b1a192e8 52 {fBgDir=TString(s); fSignalPerBg = n;}
f45e6f72 53 virtual void SetEMCALgeo2bLoad(const char* s) {fGeomEMCAL=TString(s);}
54 virtual void SetEMCALmatrices2bLoad(const char* s) {fMatricesEMCAL=TString(s);}
55 virtual void SetMyOADBfile(const char* s) {fMyOADBfile=TString(s);}
99e5fe42 56 virtual void SetFirstEvent(Int_t i=0) {fFirst=i;}
57 virtual void SetLastEvent(Int_t i=-1) {fLast=i;}
832017f1 58 virtual void SetFiducialEta(Float_t etamin, Float_t etamax)
83a444b1 59 { fFiducialEtaMin = etamin; fFiducialEtaMax = etamax;}
ee7de0dd 60 virtual void SetFiducialPhi(Float_t phimin, Float_t phimax)
61 { fFiducialPhiMin = phimin; fFiducialPhiMax = phimax;}
83a444b1 62 virtual void SetPtCut(Float_t par = 2.0) {fPtCut = par;}
ee7de0dd 63 virtual void SetDZ(Bool_t deadzone = 0) {fDZ = deadzone;}
b45b0c92 64 virtual void SetDetector(Int_t option = 0) {fOption = option;}
8838ab7a 65 virtual void SetCluster(Int_t option = 0) {fCluster = option;}
b45b0c92 66 virtual void SetDebug(Int_t debug = 0) {fDebug = debug;}
ee7de0dd 67
99e5fe42 68 protected:
b45b0c92 69 Int_t fFirst; // First and last events analyzed
70 Int_t fLast; // in current set of files
8838ab7a 71 Int_t fOption; // detector used for jet reconstruction
72 Int_t fCluster; // cluster type
b45b0c92 73 Int_t fDebug; // debug option
ee7de0dd 74 Bool_t fDZ; // include dead zones or not
1240edf5 75 Int_t fSignalPerBg; // Signal per Background
832017f1 76 Float_t fFiducialEtaMin; // Fiducial minimum eta
83a444b1 77 Float_t fFiducialEtaMax; // Fiducial maximum eta
ee7de0dd 78 Float_t fFiducialPhiMin; // Fiducial minimum phi
79 Float_t fFiducialPhiMax; // Fiducial maximum phi
83a444b1 80 Float_t fPtCut; // pt cut
832017f1 81 TString fComment; // a comment
4faf4c3d 82 TString fDir; // directory with input files for signal
83 TString fBgDir; // directory with input files for background
832017f1 84 TString fPattern; // pattern to look for input files
f45e6f72 85 TString fMatricesEMCAL; // survey/matrices version for EMCAL
86 TString fGeomEMCAL; // geometry version for EMCAL
87 TString fMyOADBfile; // private version of the OADB file with EMCAL matrices
99e5fe42 88
f45e6f72 89 ClassDef(AliJetReaderHeader,3);
99e5fe42 90};
91
92#endif