ATLAS Offline Software
Loading...
Searching...
No Matches
LArCalorimeter
LArRawConditions
src
LArPedestalMC.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/LArPedestalMC.h
"
6
7
#include <iostream>
8
using namespace
std
;
9
10
LArPedestalMC::LArPedestalMC
() {}
11
12
LArPedestalMC::~LArPedestalMC
() {}
13
14
/* Fill transient object in ATHENA *****************************************
15
*/
16
void
LArPedestalMC::set
(
const
std::vector<float>& vPedestal,
17
const
std::vector<float>& vPedestalRMS )
18
{
19
m_vPedestal
= vPedestal;
20
m_vPedestalRMS
= vPedestalRMS;
21
22
}
23
24
25
/* retrieve Pedestal ******************************************************
26
*/
27
float
LArPedestalMC::pedestal
(
const
HWIdentifier
&
/*CellID*/
,
int
/*gain*/
)
const
28
{
29
if
(!
m_vPedestal
.empty())
return
m_vPedestal
[0];
30
else
return
LArElecCalib::ERRORCODE
;
31
}
32
33
float
LArPedestalMC::pedestalRMS
(
const
HWIdentifier
&
/*CellID*/
,
int
/*gain*/
)
const
34
{
35
36
if
(!
m_vPedestalRMS
.empty())
return
m_vPedestalRMS
[0];
37
else
return
LArElecCalib::ERRORCODE
;
38
39
}
LArPedestalMC.h
HWIdentifier
Definition
HWIdentifier.h:13
LArPedestalMC::pedestal
float pedestal(const HWIdentifier &CellID, int gain) const
Definition
LArPedestalMC.cxx:27
LArPedestalMC::LArPedestalMC
LArPedestalMC()
Definition
LArPedestalMC.cxx:10
LArPedestalMC::m_vPedestal
std::vector< float > m_vPedestal
Definition
LArPedestalMC.h:45
LArPedestalMC::m_vPedestalRMS
std::vector< float > m_vPedestalRMS
Definition
LArPedestalMC.h:45
LArPedestalMC::pedestalRMS
float pedestalRMS(const HWIdentifier &CellID, int gain) const
access to RMS of Pedestal index by Identifier, and gain setting
Definition
LArPedestalMC.cxx:33
LArPedestalMC::set
void set(const std::vector< float > &vPedestal, const std::vector< float > &vPedestalRMS)
Definition
LArPedestalMC.cxx:16
LArPedestalMC::~LArPedestalMC
virtual ~LArPedestalMC()
Definition
LArPedestalMC.cxx:12
LArElecCalib::ERRORCODE
@ ERRORCODE
Definition
LArCalibErrorCode.h:17
std
STL namespace.
Generated on
for ATLAS Offline Software by
1.14.0