ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
LArCalorimeter
LArRawConditions
LArRawConditions
LArOFCP1.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_LAROFCP1
6
#define LARRAWCONDITIONS_LAROFCP1
7
8
#include "
LArElecCalib/ILArOFC.h
"
9
#include "
LArRawConditions/LAr2DWaveBase.h
"
10
#include <vector>
11
12
class
LArCompactSubsetChannelProxy
;
13
class
LArCompactSubsetConstChannelProxy
;
14
18
19
20
class
LArOFCP1
21
:
public
LAr2DWaveBase
22
{
23
public
:
24
25
typedef
ILArOFC::OFCRef_t
OFCRef_t
;
26
27
LArOFCP1
() {}
28
LArOFCP1
(
float
timeOffset
,
29
float
timeBinWidth
,
30
const
std::vector<std::vector<float> >& vOFC_a,
31
const
std::vector<std::vector<float> >& vOFC_b);
32
LArOFCP1
(
float
timeOffset
,
33
float
timeBinWidth
,
34
unsigned
int
nPhases,
35
unsigned
int
nSamples,
36
const
std::vector<float>& ofc_a,
37
const
std::vector<float>& ofc_b,
38
unsigned
int
index
);
39
LArOFCP1
(
const
LArCompactSubsetChannelProxy
& other);
40
LArOFCP1
(
const
LArCompactSubsetConstChannelProxy
& other);
41
42
size_t
OFC_aSize
()
const
{
return
waveSize
(0); }
43
size_t
OFC_bSize
()
const
{
return
waveSize
(1); }
44
45
OFCRef_t
OFC_a
(
size_t
tbin)
const
{
return
wave
(0, tbin); }
46
OFCRef_t
OFC_b
(
size_t
tbin)
const
{
return
wave
(1, tbin); }
47
};
48
49
53
54
#include "
LArRawConditions/LArConditionsSubset.h
"
55
#include "
LArRawConditions/LArCompactSubset.h
"
56
57
58
template
<>
59
class
LArConditionsSubsetTraits
<
LArOFCP1
>
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<LArOFCP1>
(otherBeg, otherEnd,
87
to, copier);
88
}
89
};
90
91
92
#endif
93
ILArOFC.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.
ILArOFC::OFCRef_t
LArVectorProxy OFCRef_t
This class defines the interface for accessing Optimal Filtering coefficients for each channel provid...
Definition
ILArOFC.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< LArOFCP1 >::empty
static ConstReference empty()
Definition
LArOFCP1.h:74
LArConditionsSubsetTraits< LArOFCP1 >::ConstChannelVector
LArCompactSubsetConstChannelVector ConstChannelVector
Definition
LArOFCP1.h:68
LArConditionsSubsetTraits< LArOFCP1 >::FebPairReference
FebPair FebPairReference
Definition
LArOFCP1.h:71
LArConditionsSubsetTraits< LArOFCP1 >::Reference
LArCompactSubsetChannelProxy Reference
Definition
LArOFCP1.h:63
LArConditionsSubsetTraits< LArOFCP1 >::copySubset
static void copySubset(OTHERIT otherBeg, OTHERIT otherEnd, SubsetVector &to, COPIER copier)
Definition
LArOFCP1.h:81
LArConditionsSubsetTraits< LArOFCP1 >::SubsetVector
LArCompactSubsetVector SubsetVector
Definition
LArOFCP1.h:72
LArConditionsSubsetTraits< LArOFCP1 >::FebPair
LArCompactSubsetFebPair FebPair
Definition
LArOFCP1.h:70
LArConditionsSubsetTraits< LArOFCP1 >::ChannelVector
LArCompactSubsetChannelVector ChannelVector
Definition
LArOFCP1.h:67
LArConditionsSubsetTraits< LArOFCP1 >::ChannelVectorPointer
LArCompactSubsetChannelVectorPointer ChannelVectorPointer
Definition
LArOFCP1.h:69
LArConditionsSubsetTraits< LArOFCP1 >::Pointer
LArCompactSubsetChannelPointer Pointer
Definition
LArOFCP1.h:65
LArConditionsSubsetTraits< LArOFCP1 >::ConstPointer
LArCompactSubsetChannelPointer ConstPointer
Definition
LArOFCP1.h:66
LArConditionsSubsetTraits< LArOFCP1 >::FebId
unsigned int FebId
Definition
LArOFCP1.h:62
LArConditionsSubsetTraits< LArOFCP1 >::ConstReference
LArCompactSubsetConstChannelProxy ConstReference
Definition
LArOFCP1.h:64
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
LArOFCP1
c-struct reproducing the structure of the persistent data
Definition
LArOFCP1.h:22
LArOFCP1::OFCRef_t
ILArOFC::OFCRef_t OFCRef_t
Definition
LArOFCP1.h:25
LArOFCP1::OFC_aSize
size_t OFC_aSize() const
Definition
LArOFCP1.h:42
LArOFCP1::OFC_a
OFCRef_t OFC_a(size_t tbin) const
Definition
LArOFCP1.h:45
LArOFCP1::OFC_bSize
size_t OFC_bSize() const
Definition
LArOFCP1.h:43
LArOFCP1::OFC_b
OFCRef_t OFC_b(size_t tbin) const
Definition
LArOFCP1.h:46
LArOFCP1::LArOFCP1
LArOFCP1()
Definition
LArOFCP1.h:27
index
Definition
index.py:1
Generated on
for ATLAS Offline Software by
1.17.0