14 #include "messagefacility/MessageLogger/MessageLogger.h"
15 #include "cetlib_except/exception.h"
30 unsigned int PMTFrame,
31 unsigned int FirstSample)
55 throw cet::exception(
"OpDetPulse")
56 <<
" Trying to integrate between illegal limits : " <<startbin<<
" " <<endbin <<
"\n";
58 throw cet::exception(
"OpDetPulse")
59 <<
" Trying to integrate between illegal limits : "<< startbin<<
" " <<endbin <<
"\n";
61 unsigned int TotalIntegral = 0;
63 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