ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
LArCalorimeter
LArRawConditions
LArRawConditions
LAr2DWaveBase.h
Go to the documentation of this file.
1
// This file's extension implies that it's C, but it's really -*- C++ -*-.
2
3
/*
4
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
5
*/
6
7
// $Id$
33
34
35
#ifndef LARRAWCONDITIONS_LAR2DWAVEBASE_H
36
#define LARRAWCONDITIONS_LAR2DWAVEBASE_H
37
38
39
#include "
LArElecCalib/LArVectorProxy.h
"
40
#include <vector>
41
class
LArCompactSubsetChannelProxy
;
42
class
LArCompactSubsetConstChannelProxy
;
43
44
48
class
LAr2DWaveBase
49
{
50
public
:
52
static
const
unsigned
int
nWaves
= 2;
53
54
58
LAr2DWaveBase
();
59
60
68
LAr2DWaveBase
(
float
timeOffset
,
69
float
timeBinWidth
,
70
const
std::vector<std::vector<float> >& wave0,
71
const
std::vector<std::vector<float> >& wave1);
72
73
87
LAr2DWaveBase
(
float
timeOffset
,
88
float
timeBinWidth
,
89
unsigned
int
nPhases,
90
unsigned
int
nSamples,
91
const
std::vector<float>& wave0,
92
const
std::vector<float>& wave1,
93
unsigned
int
index
);
94
95
100
LAr2DWaveBase
(
const
LArCompactSubsetConstChannelProxy
& other);
101
102
110
void
setFrom
(
LAr2DWaveBase
& other);
111
112
116
bool
isEmpty
()
const
;
117
118
122
float
timeOffset
()
const
;
123
124
128
float
timeBinWidth
()
const
;
129
130
135
size_t
waveSize
(
unsigned
int
which)
const
;
136
137
143
LArVectorProxy
wave
(
unsigned
int
which,
size_t
tbin)
const
;
144
145
private
:
147
float
m_timeOffset
;
148
150
float
m_timeBinWidth
;
151
153
std::vector<std::vector<float> >
m_waves
[
nWaves
];
154
};
155
156
157
#include "
LArRawConditions/LAr2DWaveBase.icc
"
158
159
160
#endif
// not LARRAWCONDITIONS_LAR2DWAVEBASE_H
LAr2DWaveBase.icc
LArVectorProxy.h
Proxy for accessing a range of float values like a vector.
LAr2DWaveBase::nWaves
static const unsigned int nWaves
The number of different types of waves we store.
Definition
LAr2DWaveBase.h:52
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::m_timeOffset
float m_timeOffset
The time offset for this channel.
Definition
LAr2DWaveBase.h:147
LAr2DWaveBase::setFrom
void setFrom(LAr2DWaveBase &other)
Assign from another wave object.
Definition
LAr2DWaveBase.cxx:109
LAr2DWaveBase::isEmpty
bool isEmpty() const
Is there any data in this channel?
LAr2DWaveBase::m_waves
std::vector< std::vector< float > > m_waves[nWaves]
The wave data.
Definition
LAr2DWaveBase.h:153
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.
LAr2DWaveBase::m_timeBinWidth
float m_timeBinWidth
The time bin width for this channel.
Definition
LAr2DWaveBase.h:150
LArCompactSubsetChannelProxy
A more compact way of storing shape/ofc data — non-const portion.
Definition
LArCompactSubset.h:178
LArCompactSubsetConstChannelProxy
Definition
LArCompactSubset.h:100
LArVectorProxy
Proxy for accessing a range of float values like a vector.
Definition
LArVectorProxy.h:38
index
Definition
index.py:1
Generated on
for ATLAS Offline Software by
1.17.0