HYDRA_development_version
Main Page
Namespaces
Classes
Files
File List
File Members
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
;}
35
void
setLocalMax
(){
m_nIsLocalMax
= 1;}
36
void
resetLocalMax
(){
m_nIsLocalMax
= 0;}
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
HShowerCal::setModule
void setModule(Char_t m)
Definition:
hshowercal.h:30
HShowerCal::m_nSector
ClassDef(HShowerCal, 1) private Char_t m_nSector
Definition:
hshowercal.h:41
HShowerCal::setLocalMax
void setLocalMax()
Definition:
hshowercal.h:35
HShowerCal::setSector
void setSector(Char_t s)
Definition:
hshowercal.h:29
HShowerCal::getSector
Char_t getSector(void)
Definition:
hshowercal.h:24
HShowerCal::resetLocalMax
void resetLocalMax()
Definition:
hshowercal.h:36
HShowerCal::getModule
Char_t getModule(void)
Definition:
hshowercal.h:25
HShowerCal::HShowerCal
HShowerCal(const Float_t fCharge)
Definition:
hshowercal.h:14
HShowerCal::getAddress
Int_t getAddress(void)
Definition:
hshowercal.h:23
HShowerCal::getCharge
Float_t getCharge() const
Definition:
hshowercal.h:20
HShowerCal::clear
Int_t clear()
HShowerCal::getCol
Char_t getCol(void)
Definition:
hshowercal.h:27
HShowerCal::setCharge
void setCharge(Float_t fCharge)
Definition:
hshowercal.h:21
HShowerCal::m_nModule
Char_t m_nModule
Definition:
hshowercal.h:47
HShowerCal::HShowerCal
HShowerCal()
Definition:
hshowercal.h:9
HShowerCal
Definition:
hshowercal.h:7
HShowerCal::setCol
void setCol(Char_t c)
Definition:
hshowercal.h:32
HShowerCal::isLocalMax
Int_t isLocalMax()
Definition:
hshowercal.h:34
HShowerCal::m_nRow
Char_t m_nRow
Definition:
hshowercal.h:48
HShowerCal::getNLocationIndex
Int_t getNLocationIndex(void)
Definition:
hshowercal.cc:49
HShowerCal::getLocationIndex
Int_t getLocationIndex(Int_t i)
Definition:
hshowercal.cc:53
HShowerCal::m_nCol
Char_t m_nCol
Definition:
hshowercal.h:49
HShowerCal::getRow
Char_t getRow(void)
Definition:
hshowercal.h:26
HShowerCal::setRow
void setRow(Char_t r)
Definition:
hshowercal.h:31
HShowerCal::m_fCharge
Float_t m_fCharge
Definition:
hshowercal.h:51
HShowerCal::m_nIsLocalMax
Int_t m_nIsLocalMax
Definition:
hshowercal.h:53
shower
hshowercal.h
Generated on Fri Oct 9 2020 14:30:07 for HYDRA_development_version by
1.8.8