ATLAS Offline Software
Loading...
Searching...
No Matches
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
40#include <vector>
43
44
49{
50public:
52 static const unsigned int nWaves = 2;
53
54
59
60
69 float timeBinWidth,
70 const std::vector<std::vector<float> >& wave0,
71 const std::vector<std::vector<float> >& wave1);
72
73
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
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
145private:
148
151
153 std::vector<std::vector<float> > m_waves[nWaves];
154};
155
156
158
159
160#endif // not LARRAWCONDITIONS_LAR2DWAVEBASE_H
Proxy for accessing a range of float values like a vector.
static const unsigned int nWaves
The number of different types of waves we store.
float timeBinWidth() const
Return the time bin width for this channel.
LAr2DWaveBase()
Default constructor.
size_t waveSize(unsigned int which) const
Return the number of time bins for a wave.
float m_timeOffset
The time offset for this channel.
void setFrom(LAr2DWaveBase &other)
Assign from another wave object.
bool isEmpty() const
Is there any data in this channel?
std::vector< std::vector< float > > m_waves[nWaves]
The wave data.
LArVectorProxy wave(unsigned int which, size_t tbin) const
Return wave data.
float timeOffset() const
Return the time offset for this channel.
float m_timeBinWidth
The time bin width for this channel.
A more compact way of storing shape/ofc data — non-const portion.
A more compact way of storing shape/ofc data — const portion.
Proxy for accessing a range of float values like a vector.
Definition index.py:1