ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
LArCalorimeter
LArRawConditions
LArRawConditions
LArShapeP2.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
#ifndef LARRAWCONDITIONS_LARSHAPEP2
6
#define LARRAWCONDITIONS_LARSHAPEP2
7
8
#include "
LArElecCalib/ILArShape.h
"
9
#include "
LArRawConditions/LAr2DWaveBase.h
"
10
#include <vector>
11
12
class
LArCompactSubsetChannelProxy
;
13
class
LArCompactSubsetConstChannelProxy
;
14
18
19
class
LArShapeP2
20
:
public
LAr2DWaveBase
21
{
22
public
:
23
24
typedef
ILArShape::ShapeRef_t
ShapeRef_t
;
25
26
LArShapeP2
() {}
27
LArShapeP2
(
float
timeOffset
,
28
float
timeBinWidth
,
29
const
std::vector<std::vector<float> >& vShape,
30
const
std::vector<std::vector<float> >& vShapeDer);
31
LArShapeP2
(
float
timeOffset
,
32
float
timeBinWidth
,
33
unsigned
int
nPhases,
34
unsigned
int
nSamples,
35
const
std::vector<float>&
shape
,
36
const
std::vector<float>&
shapeDer
,
37
unsigned
int
index
);
38
LArShapeP2
(
const
LArCompactSubsetChannelProxy
& other);
39
LArShapeP2
(
const
LArCompactSubsetConstChannelProxy
& other);
40
41
size_t
shapeSize
()
const
{
return
waveSize
(0); }
42
size_t
shapeDerSize
()
const
{
return
waveSize
(1); }
43
44
ShapeRef_t
shape
(
size_t
tbin)
const
{
return
wave
(0, tbin); }
45
ShapeRef_t
shapeDer
(
size_t
tbin)
const
{
return
wave
(1, tbin); }
46
};
47
48
49
53
54
#include "
LArRawConditions/LArConditionsSubset.h
"
55
#include "
LArRawConditions/LArCompactSubset.h
"
56
57
58
template
<>
59
class
LArConditionsSubsetTraits
<
LArShapeP2
>
60
{
61
public
:
62
typedef
unsigned
int
FebId
;
63
typedef
LArCompactSubsetChannelProxy
Reference
;
64
typedef
LArCompactSubsetConstChannelProxy
ConstReference
;
65
typedef
LArCompactSubsetChannelPointer
Pointer
;
66
typedef
LArCompactSubsetChannelPointer
ConstPointer
;
67
typedef
LArCompactSubsetChannelVector
ChannelVector
;
68
typedef
LArCompactSubsetConstChannelVector
ConstChannelVector
;
69
typedef
LArCompactSubsetChannelVectorPointer
ChannelVectorPointer
;
70
typedef
LArCompactSubsetFebPair
FebPair
;
71
typedef
FebPair
FebPairReference
;
72
typedef
LArCompactSubsetVector
SubsetVector
;
73
74
static
ConstReference
empty
()
75
{
76
return
ConstReference
();
77
}
78
79
80
template
<
class
OTHERIT,
class
COPIER>
81
static
void
copySubset
(OTHERIT otherBeg,
82
OTHERIT otherEnd,
83
SubsetVector
& to,
84
COPIER copier)
85
{
86
SubsetVector::copySubset<LArShapeP2>
(otherBeg, otherEnd,
87
to, copier);
88
}
89
};
90
91
92
#endif
93
ILArShape.h
LAr2DWaveBase.h
Per-channel class holding wave information in time bins.
LArCompactSubset.h
A more compact way of storing shape/ofc data.
LArConditionsSubset.h
This file defines the template class used for I/O of conditions data.
ILArShape::ShapeRef_t
LArVectorProxy ShapeRef_t
This class defines the interface for accessing Shape (Nsample variable, Dt = 25 ns fixed) @stereotype...
Definition
ILArShape.h:26
LAr2DWaveBase::timeBinWidth
float timeBinWidth() const
Return the time bin width for this channel.
LAr2DWaveBase::LAr2DWaveBase
LAr2DWaveBase()
Default constructor.
LAr2DWaveBase::waveSize
size_t waveSize(unsigned int which) const
Return the number of time bins for a wave.
LAr2DWaveBase::wave
LArVectorProxy wave(unsigned int which, size_t tbin) const
Return wave data.
LAr2DWaveBase::timeOffset
float timeOffset() const
Return the time offset for this channel.
LArCompactSubsetChannelPointer
This acts as a pointer to a LArCompactSubsetChannelProxy.
Definition
LArCompactSubset.h:227
LArCompactSubsetChannelProxy
A more compact way of storing shape/ofc data — non-const portion.
Definition
LArCompactSubset.h:178
LArCompactSubsetChannelVectorPointer
This acts as a pointer to a LArCompactSubsetChannelVector.
Definition
LArCompactSubset.h:438
LArCompactSubsetChannelVector
This acts like a vector of channel objects.
Definition
LArCompactSubset.h:259
LArCompactSubsetConstChannelProxy
Definition
LArCompactSubset.h:100
LArCompactSubsetConstChannelVector
This acts like a vector of channel objects — const version.
Definition
LArCompactSubset.h:393
LArCompactSubsetFebPair
This acts like a FEB ID/channel vector pair.
Definition
LArCompactSubset.h:479
LArCompactSubsetVector
This acts like a vector of FEB ID / channel vector pairs.
Definition
LArCompactSubset.h:530
LArCompactSubsetVector::copySubset
static void copySubset(OTHERIT otherBeg, OTHERIT otherEnd, LArCompactSubsetVector &to, COPIER copier)
Helper used by LArConditionsSubset::assign.
LArConditionsSubsetTraits< LArShapeP2 >::ChannelVector
LArCompactSubsetChannelVector ChannelVector
Definition
LArShapeP2.h:67
LArConditionsSubsetTraits< LArShapeP2 >::ConstPointer
LArCompactSubsetChannelPointer ConstPointer
Definition
LArShapeP2.h:66
LArConditionsSubsetTraits< LArShapeP2 >::copySubset
static void copySubset(OTHERIT otherBeg, OTHERIT otherEnd, SubsetVector &to, COPIER copier)
Definition
LArShapeP2.h:81
LArConditionsSubsetTraits< LArShapeP2 >::ConstChannelVector
LArCompactSubsetConstChannelVector ConstChannelVector
Definition
LArShapeP2.h:68
LArConditionsSubsetTraits< LArShapeP2 >::SubsetVector
LArCompactSubsetVector SubsetVector
Definition
LArShapeP2.h:72
LArConditionsSubsetTraits< LArShapeP2 >::ChannelVectorPointer
LArCompactSubsetChannelVectorPointer ChannelVectorPointer
Definition
LArShapeP2.h:69
LArConditionsSubsetTraits< LArShapeP2 >::FebPair
LArCompactSubsetFebPair FebPair
Definition
LArShapeP2.h:70
LArConditionsSubsetTraits< LArShapeP2 >::empty
static ConstReference empty()
Definition
LArShapeP2.h:74
LArConditionsSubsetTraits< LArShapeP2 >::ConstReference
LArCompactSubsetConstChannelProxy ConstReference
Definition
LArShapeP2.h:64
LArConditionsSubsetTraits< LArShapeP2 >::Reference
LArCompactSubsetChannelProxy Reference
Definition
LArShapeP2.h:63
LArConditionsSubsetTraits< LArShapeP2 >::FebPairReference
FebPair FebPairReference
Definition
LArShapeP2.h:71
LArConditionsSubsetTraits< LArShapeP2 >::FebId
unsigned int FebId
Definition
LArShapeP2.h:62
LArConditionsSubsetTraits< LArShapeP2 >::Pointer
LArCompactSubsetChannelPointer Pointer
Definition
LArShapeP2.h:65
LArConditionsSubsetTraits
Traits class giving the types to use for the objects contained within the subset.
Definition
LArConditionsSubset.h:65
LArConditionsSubsetTraits::ConstReference
const T & ConstReference
Definition
LArConditionsSubset.h:70
LArShapeP2
c-struct reproducing the structure of the persistent data
Definition
LArShapeP2.h:21
LArShapeP2::shapeDer
ShapeRef_t shapeDer(size_t tbin) const
Definition
LArShapeP2.h:45
LArShapeP2::ShapeRef_t
ILArShape::ShapeRef_t ShapeRef_t
Definition
LArShapeP2.h:24
LArShapeP2::shapeSize
size_t shapeSize() const
Definition
LArShapeP2.h:41
LArShapeP2::shapeDerSize
size_t shapeDerSize() const
Definition
LArShapeP2.h:42
LArShapeP2::shape
ShapeRef_t shape(size_t tbin) const
Definition
LArShapeP2.h:44
LArShapeP2::LArShapeP2
LArShapeP2()
Definition
LArShapeP2.h:26
index
Definition
index.py:1
Generated on
for ATLAS Offline Software by
1.17.0