ATLAS Offline Software
Public Types | Public Member Functions | Private Attributes | Friends | List of all members
LArPedestalMC Class Reference

Implementation of the interface ILArfSampl for MC: only one constant is needed for MC. More...

#include <LArPedestalMC.h>

Inheritance diagram for LArPedestalMC:
Collaboration diagram for LArPedestalMC:

Public Types

enum  { ERRORCODE = LArElecCalib::ERRORCODE }
 

Public Member Functions

 LArPedestalMC ()
 
virtual ~LArPedestalMC ()
 
float pedestal (const HWIdentifier &CellID, int gain) const
 
float pedestalRMS (const HWIdentifier &CellID, int gain) const
 access to RMS of Pedestal index by Identifier, and gain setting More...
 
void set (const std::vector< float > &vPedestal, const std::vector< float > &vPedestalRMS)
 

Private Attributes

std::vector< float > m_vPedestal
 
std::vector< float > m_vPedestalRMS
 

Friends

class LArPedestalMCCnv_p1
 

Detailed Description

Implementation of the interface ILArfSampl for MC: only one constant is needed for MC.

Author
S. Laplace
Version
0-0-1 , 02/02/2004

History:

Definition at line 21 of file LArPedestalMC.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
inherited
Enumerator
ERRORCODE 

Definition at line 47 of file ILArPedestal.h.

Constructor & Destructor Documentation

◆ LArPedestalMC()

LArPedestalMC::LArPedestalMC ( )

Definition at line 10 of file LArPedestalMC.cxx.

10 {}

◆ ~LArPedestalMC()

LArPedestalMC::~LArPedestalMC ( )
virtual

Definition at line 12 of file LArPedestalMC.cxx.

12 {}

Member Function Documentation

◆ pedestal()

float LArPedestalMC::pedestal ( const HWIdentifier CellID,
int  gain 
) const
virtual

Implements ILArPedestal.

Definition at line 27 of file LArPedestalMC.cxx.

28 {
29  if (!m_vPedestal.empty()) return m_vPedestal[0];
30  else return LArElecCalib::ERRORCODE;
31 }

◆ pedestalRMS()

float LArPedestalMC::pedestalRMS ( const HWIdentifier id,
int  gain 
) const
virtual

access to RMS of Pedestal index by Identifier, and gain setting

Implements ILArPedestal.

Definition at line 33 of file LArPedestalMC.cxx.

34 {
35 
36  if (!m_vPedestalRMS.empty()) return m_vPedestalRMS[0];
37  else return LArElecCalib::ERRORCODE;
38 
39 }

◆ set()

void LArPedestalMC::set ( const std::vector< float > &  vPedestal,
const std::vector< float > &  vPedestalRMS 
)

Definition at line 16 of file LArPedestalMC.cxx.

18 {
19  m_vPedestal = vPedestal;
20  m_vPedestalRMS = vPedestalRMS;
21 
22 }

Friends And Related Function Documentation

◆ LArPedestalMCCnv_p1

friend class LArPedestalMCCnv_p1
friend

Definition at line 42 of file LArPedestalMC.h.

Member Data Documentation

◆ m_vPedestal

std::vector<float> LArPedestalMC::m_vPedestal
private

Definition at line 45 of file LArPedestalMC.h.

◆ m_vPedestalRMS

std::vector<float> LArPedestalMC::m_vPedestalRMS
private

Definition at line 45 of file LArPedestalMC.h.


The documentation for this class was generated from the following files:
LArPedestalMC::m_vPedestalRMS
std::vector< float > m_vPedestalRMS
Definition: LArPedestalMC.h:45
LArPedestalMC::m_vPedestal
std::vector< float > m_vPedestal
Definition: LArPedestalMC.h:45
ILArPedestal::ERRORCODE
@ ERRORCODE
Definition: ILArPedestal.h:47
LArElecCalib::ERRORCODE
@ ERRORCODE
Definition: LArCalibErrorCode.h:17