14 #include "cetlib_except/exception.h" 49 if (endbin == 0) endbin =
Samples();
52 if (endbin < startbin)
54 <<
" Trying to integrate between illegal limits : " << startbin <<
" " << endbin <<
"\n";
57 <<
" Trying to integrate between illegal limits : " << startbin <<
" " << endbin <<
"\n";
59 unsigned int TotalIntegral = 0;
61 for (
size_t i = startbin; i != endbin; ++i) {
unsigned short OpChannel() const
std::vector< short > fWaveform
const std::vector< short > & Waveform() const
unsigned int fFirstSample
first sample number within pmt frame
unsigned int FirstSample() const
unsigned short Samples() const
unsigned int fPMTFrame
frame number where pulse begins
int Integral(unsigned short startbin=0, unsigned short endbin=0)
unsigned short fOpChannel
channel in the readout
unsigned int PMTFrame() const
cet::coded_exception< error, detail::translate > exception