ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
LArCalorimeter
LArCnv
LArCondAthenaPool
src
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;
11
#include "
LArRawConditions/LArMphysOverMcalP.h
"
12
#include "
LArRawConditions/LArDAC2uAP.h
"
13
#include "
LArRawConditions/LAruA2MeVP.h
"
14
#include "
LArRawConditions/LArfSamplP.h
"
15
16
17
class
LArDAC2uAP
;
18
19
class
LArSingleFloatUpdater
{
20
public
:
21
template
<
class
P>
22
void
update
(
const
LArConditionsSubset<P>
* old,
23
LArConditionsSubset<LArSingleFloatP>
* newObj)
24
{
25
newObj->
assign
(*old,
26
[] (
const
P
& from,
27
LArSingleFloatP
& to)
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
P
static Double_t P(Double_t *tt, Double_t *par)
Definition
LArPhysWaveHECTool.cxx:280
LArfSamplP.h
LAruA2MeVP.h
LArConditionsSubset
template class for use for I/O of conditions data
Definition
LArConditionsSubset.h:122
LArConditionsSubset::assign
void assign(const LArConditionsSubset< U > &other, COPIER copier)
Copy from another subset object.
Definition
LArConditionsSubset.h:339
LArDAC2uAP
c-struct reproducing the structure of the persistent data
Definition
LArDAC2uAP.h:20
LArMphysOverMcalP
c-struct reproducing the structure of the persistent data
Definition
LArMphysOverMcalP.h:20
LArSingleFloatP
Definition
LArSingleFloatP.h:11
LArSingleFloatUpdater
Definition
LArSingleFloatUpdater.h:19
LArSingleFloatUpdater::getPayload
static float getPayload(const LArDAC2uAP &p)
Definition
LArSingleFloatUpdater.h:40
LArSingleFloatUpdater::getPayload
static float getPayload(const LAruA2MeVP &p)
Definition
LArSingleFloatUpdater.h:43
LArSingleFloatUpdater::update
void update(const LArConditionsSubset< P > *old, LArConditionsSubset< LArSingleFloatP > *newObj)
Definition
LArSingleFloatUpdater.h:22
LArSingleFloatUpdater::getPayload
static float getPayload(const LArfSamplP &p)
Definition
LArSingleFloatUpdater.h:47
LArSingleFloatUpdater::getPayload
static float getPayload(const LArMphysOverMcalP &p)
Definition
LArSingleFloatUpdater.h:32
LArfSamplP
c-struct reproducing the structure of the persistent data
Definition
LArfSamplP.h:20
LAruA2MeVP
c-struct reproducing the structure of the persistent data
Definition
LAruA2MeVP.h:19
Generated on
for ATLAS Offline Software by
1.17.0