ATLAS Offline Software
Loading...
Searching...
No Matches
LArSingleFloatUpdater Class Reference

#include <LArSingleFloatUpdater.h>

Collaboration diagram for LArSingleFloatUpdater:

Public Member Functions

template<class P>
void update (const LArConditionsSubset< P > *old, LArConditionsSubset< LArSingleFloatP > *newObj)

Static Private Member Functions

static float getPayload (const LArMphysOverMcalP &p)
static float getPayload (const LArDAC2uAP &p)
static float getPayload (const LAruA2MeVP &p)
static float getPayload (const LArfSamplP &p)

Detailed Description

Definition at line 19 of file LArSingleFloatUpdater.h.

Member Function Documentation

◆ getPayload() [1/4]

float LArSingleFloatUpdater::getPayload ( const LArDAC2uAP & p)
inlinestaticprivate

Definition at line 40 of file LArSingleFloatUpdater.h.

40 {
41 return p.m_DAC2uA;
42 }

◆ getPayload() [2/4]

float LArSingleFloatUpdater::getPayload ( const LArfSamplP & p)
inlinestaticprivate

Definition at line 47 of file LArSingleFloatUpdater.h.

47 {
48 return p.m_fSampl;
49 }

◆ getPayload() [3/4]

float LArSingleFloatUpdater::getPayload ( const LArMphysOverMcalP & p)
inlinestaticprivate

Definition at line 32 of file LArSingleFloatUpdater.h.

32 {
33 return p.m_MphysOverMcal;
34 }

◆ getPayload() [4/4]

float LArSingleFloatUpdater::getPayload ( const LAruA2MeVP & p)
inlinestaticprivate

Definition at line 43 of file LArSingleFloatUpdater.h.

43 {
44 return p.m_uA2MeV;
45 }

◆ update()

template<class P>
void LArSingleFloatUpdater::update ( const LArConditionsSubset< P > * old,
LArConditionsSubset< LArSingleFloatP > * newObj )
inline

Definition at line 22 of file LArSingleFloatUpdater.h.

24 {
25 newObj->assign (*old,
26 [] (const P& from,
27 LArSingleFloatP& to)
28 { to.m_data = getPayload(from); });
29 }
static Double_t P(Double_t *tt, Double_t *par)
void assign(const LArConditionsSubset< U > &other, COPIER copier)
Copy from another subset object.
static float getPayload(const LArMphysOverMcalP &p)
CONT to(RANGE &&r)
Definition ranges.h:39

The documentation for this class was generated from the following file: