ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
LArCellTimeOffset Class Reference

#include <LArCellTimeOffset.h>

Collaboration diagram for LArCellTimeOffset:

Public Member Functions

 LArCellTimeOffset ()
 
virtual ~LArCellTimeOffset ()
 
void setTimeOffset (const HWIdentifier fId, const float offset)
 
float TimeOffset (const HWIdentifier fId) const
 
unsigned size () const
 
void setDefaultReturnValue (const float value)
 
std::map< HWIdentifier, float >::const_iterator begin () const
 
std::map< HWIdentifier, float >::const_iterator end () const
 

Private Attributes

std::map< HWIdentifier, float > m_cellTimeMap
 
float m_defaultReturnValue
 

Detailed Description

Definition at line 12 of file LArCellTimeOffset.h.

Constructor & Destructor Documentation

◆ LArCellTimeOffset()

LArCellTimeOffset::LArCellTimeOffset ( )

Definition at line 7 of file LArCellTimeOffset.cxx.

7 : m_defaultReturnValue(0.0) {}

◆ ~LArCellTimeOffset()

virtual LArCellTimeOffset::~LArCellTimeOffset ( )
inlinevirtual

Definition at line 15 of file LArCellTimeOffset.h.

15 {}; //Destructor

Member Function Documentation

◆ begin()

std::map<HWIdentifier,float>::const_iterator LArCellTimeOffset::begin ( ) const
inline

Definition at line 26 of file LArCellTimeOffset.h.

27  { return m_cellTimeMap.begin();}

◆ end()

std::map<HWIdentifier,float>::const_iterator LArCellTimeOffset::end ( ) const
inline

Definition at line 29 of file LArCellTimeOffset.h.

30  { return m_cellTimeMap.end();}

◆ setDefaultReturnValue()

void LArCellTimeOffset::setDefaultReturnValue ( const float  value)
inline

Definition at line 23 of file LArCellTimeOffset.h.

◆ setTimeOffset()

void LArCellTimeOffset::setTimeOffset ( const HWIdentifier  fId,
const float  offset 
)
inline

Definition at line 16 of file LArCellTimeOffset.h.

17  {m_cellTimeMap[fId]=offset;}

◆ size()

unsigned LArCellTimeOffset::size ( ) const
inline

Definition at line 20 of file LArCellTimeOffset.h.

21  { return m_cellTimeMap.size();}

◆ TimeOffset()

float LArCellTimeOffset::TimeOffset ( const HWIdentifier  fId) const
inline

Definition at line 37 of file LArCellTimeOffset.h.

37  {
38  const std::map <HWIdentifier,float>::const_iterator it=m_cellTimeMap.find(fId);
39  if (it==m_cellTimeMap.end())
40  return m_defaultReturnValue;
41  else
42  return it->second;
43 }

Member Data Documentation

◆ m_cellTimeMap

std::map<HWIdentifier,float> LArCellTimeOffset::m_cellTimeMap
private

Definition at line 33 of file LArCellTimeOffset.h.

◆ m_defaultReturnValue

float LArCellTimeOffset::m_defaultReturnValue
private

Definition at line 34 of file LArCellTimeOffset.h.


The documentation for this class was generated from the following files:
skel.it
it
Definition: skel.GENtoEVGEN.py:396
athena.value
value
Definition: athena.py:124
LArCellTimeOffset::m_cellTimeMap
std::map< HWIdentifier, float > m_cellTimeMap
Definition: LArCellTimeOffset.h:33
LArCellTimeOffset::m_defaultReturnValue
float m_defaultReturnValue
Definition: LArCellTimeOffset.h:34
convertTimingResiduals.offset
offset
Definition: convertTimingResiduals.py:71