ATLAS Offline Software
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>
8 using namespace std ;
9 
11 
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::LArPedestalMC
LArPedestalMC()
Definition: LArPedestalMC.cxx:10
LArPedestalMC::pedestal
float pedestal(const HWIdentifier &CellID, int gain) const
Definition: LArPedestalMC.cxx:27
LArPedestalMC.h
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::~LArPedestalMC
virtual ~LArPedestalMC()
Definition: LArPedestalMC.cxx:12
LArElecCalib::ERRORCODE
@ ERRORCODE
Definition: LArCalibErrorCode.h:17
LArPedestalMC::set
void set(const std::vector< float > &vPedestal, const std::vector< float > &vPedestalRMS)
Definition: LArPedestalMC.cxx:16