ATLAS Offline Software
Loading...
Searching...
No Matches
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
6
7#include <iostream>
8using namespace std ;
9
11
13
14/* Fill transient object in ATHENA *****************************************
15 */
16void 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 */
27float 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
33float 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}
float pedestal(const HWIdentifier &CellID, int gain) const
std::vector< float > m_vPedestal
std::vector< float > m_vPedestalRMS
float pedestalRMS(const HWIdentifier &CellID, int gain) const
access to RMS of Pedestal index by Identifier, and gain setting
void set(const std::vector< float > &vPedestal, const std::vector< float > &vPedestalRMS)
virtual ~LArPedestalMC()
STL namespace.