ATLAS Offline Software
Loading...
Searching...
No Matches
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
17class 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
static Double_t P(Double_t *tt, Double_t *par)
template class for use for I/O of conditions data
void assign(const LArConditionsSubset< U > &other, COPIER copier)
Copy from another subset object.
c-struct reproducing the structure of the persistent data
Definition LArDAC2uAP.h:20
c-struct reproducing the structure of the persistent data
static float getPayload(const LArDAC2uAP &p)
static float getPayload(const LAruA2MeVP &p)
void update(const LArConditionsSubset< P > *old, LArConditionsSubset< LArSingleFloatP > *newObj)
static float getPayload(const LArfSamplP &p)
static float getPayload(const LArMphysOverMcalP &p)
c-struct reproducing the structure of the persistent data
Definition LArfSamplP.h:20
c-struct reproducing the structure of the persistent data
Definition LAruA2MeVP.h:19