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

#include <LArFEBTimeOffset.h>

Inheritance diagram for LArFEBTimeOffset:
Collaboration diagram for LArFEBTimeOffset:

Public Member Functions

 LArFEBTimeOffset ()
 
virtual ~LArFEBTimeOffset ()
 
void setTimeOffset (const HWIdentifier fId, const float offset)
 
float TimeOffset (const HWIdentifier fId) const
 
float TimeOffset (const HWIdentifier fId, float defVal) const
 
unsigned size () const
 
void setDefaultReturnValue (const float value)
 

Private Attributes

std::map< HWIdentifier, float > m_febTimeMap
 
float m_defaultReturnValue = 0
 

Detailed Description

Definition at line 13 of file LArFEBTimeOffset.h.

Constructor & Destructor Documentation

◆ LArFEBTimeOffset()

LArFEBTimeOffset::LArFEBTimeOffset ( )

Definition at line 7 of file LArFEBTimeOffset.cxx.

7 {}

◆ ~LArFEBTimeOffset()

virtual LArFEBTimeOffset::~LArFEBTimeOffset ( )
inlinevirtual

Definition at line 16 of file LArFEBTimeOffset.h.

16 {}; //Destructor

Member Function Documentation

◆ setDefaultReturnValue()

void LArFEBTimeOffset::setDefaultReturnValue ( const float  value)
inline

Definition at line 25 of file LArFEBTimeOffset.h.

◆ setTimeOffset()

void LArFEBTimeOffset::setTimeOffset ( const HWIdentifier  fId,
const float  offset 
)
inlinevirtual

Implements ILArFEBTimeOffset.

Definition at line 17 of file LArFEBTimeOffset.h.

18  {m_febTimeMap[fId]=offset;}

◆ size()

unsigned LArFEBTimeOffset::size ( ) const
inline

Definition at line 22 of file LArFEBTimeOffset.h.

23  { return m_febTimeMap.size();}

◆ TimeOffset() [1/2]

float LArFEBTimeOffset::TimeOffset ( const HWIdentifier  fId) const
inlinevirtual

Implements ILArFEBTimeOffset.

Definition at line 33 of file LArFEBTimeOffset.h.

34 {
35  const std::map <HWIdentifier,float>::const_iterator it=m_febTimeMap.find(fId);
36  if (it==m_febTimeMap.end())
37  return m_defaultReturnValue;
38  else
39  return it->second;
40 }

◆ TimeOffset() [2/2]

float LArFEBTimeOffset::TimeOffset ( const HWIdentifier  fId,
float  defVal 
) const
inline

Definition at line 42 of file LArFEBTimeOffset.h.

44 {
45  const std::map <HWIdentifier,float>::const_iterator it=m_febTimeMap.find(fId);
46  if (it==m_febTimeMap.end())
47  return defVal;
48  else
49  return it->second;
50 }

Member Data Documentation

◆ m_defaultReturnValue

float LArFEBTimeOffset::m_defaultReturnValue = 0
private

Definition at line 30 of file LArFEBTimeOffset.h.

◆ m_febTimeMap

std::map<HWIdentifier,float> LArFEBTimeOffset::m_febTimeMap
private

Definition at line 29 of file LArFEBTimeOffset.h.


The documentation for this class was generated from the following files:
WriteCalibToCool.defVal
defVal
Definition: WriteCalibToCool.py:442
skel.it
it
Definition: skel.GENtoEVGEN.py:396
athena.value
value
Definition: athena.py:124
LArFEBTimeOffset::m_febTimeMap
std::map< HWIdentifier, float > m_febTimeMap
Definition: LArFEBTimeOffset.h:29
LArFEBTimeOffset::m_defaultReturnValue
float m_defaultReturnValue
Definition: LArFEBTimeOffset.h:30
convertTimingResiduals.offset
offset
Definition: convertTimingResiduals.py:71