2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
7 * @file LArRawConditions/LAr2DWaveBase.icc
8 * @author scott snyder <snyder@bnl.gov>
10 * @brief Per-channel class holding wave information in time bins.
18 * @brief Default constructor.
21 LAr2DWaveBase::LAr2DWaveBase()
23 m_timeBinWidth(25./24.)
29 * @brief Is there any data in this channel?
32 bool LAr2DWaveBase::isEmpty() const
34 return m_waves[0].empty();
39 * @brief Return the time offset for this channel.
42 float LAr2DWaveBase::timeOffset() const
49 * @brief Return the time bin width for this channel.
52 float LAr2DWaveBase::timeBinWidth() const
54 return m_timeBinWidth;
59 * @brief Return the number of time bins for a wave.
60 * @param which The type of wave to query.
63 size_t LAr2DWaveBase::waveSize(unsigned int which) const
65 assert (which < nWaves);
66 return m_waves[which].size();
71 * @brief Return wave data.
72 * @param which The type of wave to return.
73 * @param tbin The time bin to return.
76 LArVectorProxy LAr2DWaveBase::wave (unsigned int which, size_t tbin) const
78 assert (which < nWaves);
79 return m_waves[which].at (tbin);