]> git.uio.no Git - u/mrichter/AliRoot.git/blob - JETAN/AliJetHeader.h
propagate changes to DEV
[u/mrichter/AliRoot.git] / JETAN / AliJetHeader.h
1 #ifndef ALIJETHEADER_H
2 #define ALIJETHEADER_H
3  
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5  * See cxx source for full Copyright notice                               */
6  
7  
8 //---------------------------------------------------------------------
9 // Jet header base class 
10 // Stores a comment which describes the jet analysis
11 // Author: jgcn@mda.cinvestav.mx
12 //---------------------------------------------------------------------
13  
14 #include <TNamed.h>
15 #include <TString.h>
16 #include <TMath.h>
17  
18 class AliJetHeader : public TNamed
19 {
20  public:
21  
22   AliJetHeader(const char* name);
23   AliJetHeader();
24   virtual ~AliJetHeader() { }
25
26   // Getters
27   virtual TString GetComment() const {return fComment;} 
28   virtual Float_t GetJetEtaMax() const {return fJetEtaMax;}
29   virtual Float_t GetJetEtaMin() const {return fJetEtaMin;}
30   virtual Float_t GetJetPhiMax() const {return fJetPhiMax;}
31   virtual Float_t GetJetPhiMin() const {return fJetPhiMin;}
32   virtual Int_t   GetDebug() const     {return fDebug;    }
33
34   // Setters
35   virtual void SetComment(const char* com) {fComment=TString(com);}
36   virtual void SetJetEtaMax(Float_t eta= 0.5) {fJetEtaMax = eta;}
37   virtual void SetJetEtaMin(Float_t eta= -0.5) {fJetEtaMin = eta;}
38   virtual void SetJetPhiMax(Float_t phi= 2*TMath::Pi()) {fJetPhiMax = phi;}
39   virtual void SetJetPhiMin(Float_t phi= 0.) {fJetPhiMin = phi;}
40   virtual void SetDebug(Int_t debug) {fDebug = debug;}
41   
42
43   // others
44   
45 protected:
46   TString fComment;         // a comment 
47   Float_t fJetEtaMax;       // maximum eta for the jet
48   Float_t fJetEtaMin;       // minimum eta for the jet
49   Float_t fJetPhiMax;       // maximum phi for the jet
50   Float_t fJetPhiMin;       // minimum phi for the jet
51   Int_t   fDebug;           // debug option
52   
53   ClassDef(AliJetHeader,3)
54 };
55  
56 #endif