ATLAS Offline Software
LArSingleFloatUpdater.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 //Dear emacs, this is -*-c++-*-
6 
7 #ifndef LARSINGLEFLOATUPDATER_H
8 #define LARSINGLEFLOATUPDATER_H
9 
10 //class LArMphysOverMcalP1;
15 
16 
17 class LArDAC2uAP;
18 
20  public:
21  template<class P>
24  {
25  newObj->assign (*old,
26  [] (const P& from,
28  { to.m_data = getPayload(from); });
29  }
30 
31  private:
32  static float getPayload(const LArMphysOverMcalP& p) {
33  return p.m_MphysOverMcal;
34  }
35 
36 // float getPayload(const LArMphysOverMcalP1& p) {
37 // return p.m_MphysOverMcal;
38 //}
39 
40  static float getPayload(const LArDAC2uAP& p) {
41  return p.m_DAC2uA;
42  }
43  static float getPayload(const LAruA2MeVP& p) {
44  return p.m_uA2MeV;
45  }
46 
47  static float getPayload(const LArfSamplP& p) {
48  return p.m_fSampl;
49  }
50 
51 
52 };
53 
54 #endif
55 
LArDAC2uAP.h
LArMphysOverMcalP.h
LArSingleFloatUpdater::getPayload
static float getPayload(const LAruA2MeVP &p)
Definition: LArSingleFloatUpdater.h:43
DMTest::P
P_v1 P
Definition: P.h:23
LArSingleFloatP
Definition: LArSingleFloatP.h:11
LArSingleFloatUpdater::update
void update(const LArConditionsSubset< P > *old, LArConditionsSubset< LArSingleFloatP > *newObj)
Definition: LArSingleFloatUpdater.h:22
LArSingleFloatUpdater
Definition: LArSingleFloatUpdater.h:19
LArSingleFloatUpdater::getPayload
static float getPayload(const LArfSamplP &p)
Definition: LArSingleFloatUpdater.h:47
LAruA2MeVP.h
LArSingleFloatUpdater::getPayload
static float getPayload(const LArMphysOverMcalP &p)
Definition: LArSingleFloatUpdater.h:32
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
LAruA2MeVP
c-struct reproducing the structure of the persistent data
Definition: LAruA2MeVP.h:19
LArMphysOverMcalP
c-struct reproducing the structure of the persistent data
Definition: LArMphysOverMcalP.h:20
LArfSamplP.h
LArConditionsSubset
template class for use for I/O of conditions data
Definition: LArConditionsSubset.h:122
CxxUtils::to
CONT to(RANGE &&r)
Definition: ranges.h:39
LArfSamplP
c-struct reproducing the structure of the persistent data
Definition: LArfSamplP.h:20
CSV_InDetExporter.old
old
Definition: CSV_InDetExporter.py:145
LArSingleFloatUpdater::getPayload
static float getPayload(const LArDAC2uAP &p)
Definition: LArSingleFloatUpdater.h:40
LArDAC2uAP
c-struct reproducing the structure of the persistent data
Definition: LArDAC2uAP.h:20
LArConditionsSubset::assign
void assign(const LArConditionsSubset< U > &other, COPIER copier)
Copy from another subset object.
Definition: LArConditionsSubset.h:339