ATLAS Offline Software
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$
35 #ifndef LARRAWCONDITIONS_LAR2DWAVEBASE_H
36 #define LARRAWCONDITIONS_LAR2DWAVEBASE_H
37 
38 
40 #include <vector>
43 
44 
49 {
50 public:
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 
145 private:
148 
151 
153  std::vector<std::vector<float> > m_waves[nWaves];
154 };
155 
156 
158 
159 
160 #endif // not LARRAWCONDITIONS_LAR2DWAVEBASE_H
LAr2DWaveBase::timeBinWidth
float timeBinWidth() const
Return the time bin width for this channel.
LAr2DWaveBase::nWaves
static const unsigned int nWaves
The number of different types of waves we store.
Definition: LAr2DWaveBase.h:52
LAr2DWaveBase::wave
LArVectorProxy wave(unsigned int which, size_t tbin) const
Return wave data.
index
Definition: index.py:1
LAr2DWaveBase::LAr2DWaveBase
LAr2DWaveBase()
Default constructor.
LArVectorProxy.h
Proxy for accessing a range of float values like a vector.
LAr2DWaveBase::setFrom
void setFrom(LAr2DWaveBase &other)
Assign from another wave object.
Definition: LAr2DWaveBase.cxx:109
LAr2DWaveBase::m_timeBinWidth
float m_timeBinWidth
The time bin width for this channel.
Definition: LAr2DWaveBase.h:150
LAr2DWaveBase::waveSize
size_t waveSize(unsigned int which) const
Return the number of time bins for a wave.
LAr2DWaveBase::isEmpty
bool isEmpty() const
Is there any data in this channel?
LArCompactSubsetConstChannelProxy
A more compact way of storing shape/ofc data — const portion.
Definition: LArCompactSubset.h:100
LAr2DWaveBase::m_waves
std::vector< std::vector< float > > m_waves[nWaves]
The wave data.
Definition: LAr2DWaveBase.h:153
LAr2DWaveBase.icc
LAr2DWaveBase::timeOffset
float timeOffset() const
Return the time offset for this channel.
python.Utils.unixtools.which
def which(filename, env=os.environ)
UNIX-style which ---------------------------------------------------------—.
Definition: unixtools.py:39
LAr2DWaveBase::m_timeOffset
float m_timeOffset
The time offset for this channel.
Definition: LAr2DWaveBase.h:147
LArCompactSubsetChannelProxy
A more compact way of storing shape/ofc data — non-const portion.
Definition: LArCompactSubset.h:178
InDetDD::other
@ other
Definition: InDetDD_Defs.h:16
LAr2DWaveBase
Per-channel class holding wave information in time bins.
Definition: LAr2DWaveBase.h:49
LArDigits2NtupleDumper.nSamples
nSamples
Definition: LArDigits2NtupleDumper.py:70
LArVectorProxy
Proxy for accessing a range of float values like a vector.
Definition: LArVectorProxy.h:38