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