ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
LArCalorimeter
LArRawConditions
src
LArCaliPulseParamsComplete.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
LArRawConditions/LArCaliPulseParamsComplete.h
"
6
7
LArCaliPulseParamsComplete::LArCaliPulseParamsComplete
()
8
{}
9
10
LArCaliPulseParamsComplete::~LArCaliPulseParamsComplete
() {}
11
12
/* Fill transient object in ATHENA *****************************************
13
*/
14
void
LArCaliPulseParamsComplete::set
(
const
HWIdentifier
& CellID,
int
gain,
15
float
tcal,
float
fstep ) {
16
17
LArCaliPulseParamsP
t ;
18
t.m_Tcal = tcal ;
19
t.m_Fstep = fstep ;
20
21
setPdata
(CellID,t,gain) ;
22
}
23
void
LArCaliPulseParamsComplete::set
(
const
HWIdentifier
& CellID,
int
gain,
24
float
tcal,
float
fstep,
float
offset,
float
dtcal ) {
25
26
LArCaliPulseParamsP
t ;
27
t.m_Tcal = tcal ;
28
t.m_Fstep = fstep ;
29
t.m_Offset = offset ;
30
t.m_dTimeCal = dtcal ;
31
32
setPdata
(CellID,t,gain) ;
33
}
34
void
LArCaliPulseParamsComplete::set
(
const
HWIdentifier
& CellID,
int
gain,
35
float
tcal,
float
fstep,
float
offset,
float
dtcal,
short
ncb ) {
36
37
LArCaliPulseParamsP
t ;
38
t.m_Tcal = tcal ;
39
t.m_Fstep = fstep ;
40
t.m_Offset = offset ;
41
t.m_dTimeCal = dtcal ;
42
t.m_nCB = ncb ;
43
44
setPdata
(CellID,t,gain) ;
45
}
46
47
48
/* retrieve CaliPulseParams ******************************************************
49
*/
50
const
float
&
LArCaliPulseParamsComplete::Tcal
(
const
HWIdentifier
& CellID,
int
gain)
const
51
{
52
const
LArCaliPulseParamsP
& t =
get
(CellID,gain) ;
53
return
(t.m_Tcal);
54
}
55
56
const
float
&
LArCaliPulseParamsComplete::Fstep
(
const
HWIdentifier
& CellID,
int
gain)
const
57
{
58
const
LArCaliPulseParamsP
& t =
get
(CellID,gain) ;
59
return
(t.m_Fstep);
60
}
61
62
const
float
&
LArCaliPulseParamsComplete::Offset
(
const
HWIdentifier
& CellID,
int
gain)
const
63
{
64
const
LArCaliPulseParamsP
& t =
get
(CellID,gain) ;
65
return
(t.m_Offset);
66
}
67
68
const
float
&
LArCaliPulseParamsComplete::dTimeCal
(
const
HWIdentifier
& CellID,
int
gain)
const
69
{
70
const
LArCaliPulseParamsP
& t =
get
(CellID,gain) ;
71
return
(t.m_dTimeCal);
72
}
73
74
const
short
&
LArCaliPulseParamsComplete::nCB
(
const
HWIdentifier
& CellID,
int
gain)
const
75
{
76
const
LArCaliPulseParamsP
& t =
get
(CellID,gain) ;
77
return
(t.m_nCB);
78
}
LArCaliPulseParamsComplete.h
HWIdentifier
Definition
HWIdentifier.h:13
LArCaliPulseParamsComplete::set
void set(const HWIdentifier &CellID, int gain, float tcal, float fstep)
Definition
LArCaliPulseParamsComplete.cxx:14
LArCaliPulseParamsComplete::dTimeCal
virtual const float & dTimeCal(const HWIdentifier &CellID, int gain) const
Definition
LArCaliPulseParamsComplete.cxx:68
LArCaliPulseParamsComplete::Tcal
virtual const float & Tcal(const HWIdentifier &CellID, int gain) const
Definition
LArCaliPulseParamsComplete.cxx:50
LArCaliPulseParamsComplete::nCB
virtual const short & nCB(const HWIdentifier &CellID, int gain) const
Definition
LArCaliPulseParamsComplete.cxx:74
LArCaliPulseParamsComplete::LArCaliPulseParamsComplete
LArCaliPulseParamsComplete()
Definition
LArCaliPulseParamsComplete.cxx:7
LArCaliPulseParamsComplete::~LArCaliPulseParamsComplete
virtual ~LArCaliPulseParamsComplete()
Definition
LArCaliPulseParamsComplete.cxx:10
LArCaliPulseParamsComplete::Offset
virtual const float & Offset(const HWIdentifier &CellID, int gain) const
Definition
LArCaliPulseParamsComplete.cxx:62
LArCaliPulseParamsComplete::Fstep
virtual const float & Fstep(const HWIdentifier &CellID, int gain) const
Definition
LArCaliPulseParamsComplete.cxx:56
LArCaliPulseParamsP
Definition
LArCaliPulseParamsP.h:12
LArConditionsContainer< LArCaliPulseParamsP >::setPdata
void setPdata(const HWIdentifier id, const LArCaliPulseParamsP &payload, unsigned int gain=0)
LArConditionsContainer< LArCaliPulseParamsP >::get
ConstReference get(const HWIdentifier id, unsigned int gain=0) const
Generated on
for ATLAS Offline Software by
1.17.0