HYDRA_development_version
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
hshowercal.h
Go to the documentation of this file.
1 #ifndef HShowerCal_H
2 #define HShowerCal_H
3 #pragma interface
4 
5 #include "hlocateddataobject.h"
6 
7 class HShowerCal : public HLocatedDataObject {
8 public:
9  HShowerCal() : m_nSector(-1), m_nModule(-1), m_nRow(-1), m_nCol(-1),
10  m_fCharge(0.0),
11  m_nIsLocalMax(0) {}
12 
13 // initialization could be used e.g. to clear the data element
14  HShowerCal(const Float_t fCharge) :
15  m_nSector(-1), m_nModule(-1), m_nRow(-1), m_nCol(-1),
16  m_fCharge(fCharge),
17  m_nIsLocalMax(0) {}
18 
19  Int_t clear();
20  Float_t getCharge() const {return m_fCharge;}
21  void setCharge(Float_t fCharge){m_fCharge = fCharge;}
22 
23  Int_t getAddress(void) {return calcAddress();}
24  Char_t getSector(void) {return m_nSector;}
25  Char_t getModule(void) {return m_nModule;}
26  Char_t getRow(void) {return m_nRow;}
27  Char_t getCol(void) {return m_nCol;}
28 
29  void setSector(Char_t s) {m_nSector = s;}
30  void setModule(Char_t m) {m_nModule = m;}
31  void setRow(Char_t r) {m_nRow = r;}
32  void setCol(Char_t c) {m_nCol = c;}
33 
34  Int_t isLocalMax(){return m_nIsLocalMax;}
37 
38  Int_t getNLocationIndex(void);
39  Int_t getLocationIndex(Int_t i);
40 
41  ClassDef(HShowerCal, 1) //ROOT extension
42 
43 private:
44  Int_t calcAddress();
45 
46  Char_t m_nSector; //position of the pad
47  Char_t m_nModule;
48  Char_t m_nRow;
49  Char_t m_nCol;
50 
51  Float_t m_fCharge; //calibrated charge in the pad
52 
53  Int_t m_nIsLocalMax; //! flag is set if it has been found
54  // local maximum for this pad
55 };
56 
57 #endif
void setModule(Char_t m)
Definition: hshowercal.h:30
ClassDef(HShowerCal, 1) private Char_t m_nSector
Definition: hshowercal.h:41
void setLocalMax()
Definition: hshowercal.h:35
void setSector(Char_t s)
Definition: hshowercal.h:29
Char_t getSector(void)
Definition: hshowercal.h:24
void resetLocalMax()
Definition: hshowercal.h:36
Char_t getModule(void)
Definition: hshowercal.h:25
HShowerCal(const Float_t fCharge)
Definition: hshowercal.h:14
Int_t getAddress(void)
Definition: hshowercal.h:23
Float_t getCharge() const
Definition: hshowercal.h:20
Int_t clear()
Char_t getCol(void)
Definition: hshowercal.h:27
void setCharge(Float_t fCharge)
Definition: hshowercal.h:21
Char_t m_nModule
Definition: hshowercal.h:47
HShowerCal()
Definition: hshowercal.h:9
void setCol(Char_t c)
Definition: hshowercal.h:32
Int_t isLocalMax()
Definition: hshowercal.h:34
Char_t m_nRow
Definition: hshowercal.h:48
Int_t getNLocationIndex(void)
Definition: hshowercal.cc:49
Int_t getLocationIndex(Int_t i)
Definition: hshowercal.cc:53
Char_t m_nCol
Definition: hshowercal.h:49
Char_t getRow(void)
Definition: hshowercal.h:26
void setRow(Char_t r)
Definition: hshowercal.h:31
Float_t m_fCharge
Definition: hshowercal.h:51
Int_t m_nIsLocalMax
Definition: hshowercal.h:53