38 fPmtId(pmtId), fTimeOffset(offset)
46 const bool HasSignal()
const {
return fTimeList.size() == 0?
false :
true; }
48 const std::vector<signal>
GetSignal()
const {
return fTimeList; }
50 void SetSignal(std::vector<signal> list) { fTimeList = list; }
63 std::vector<signal> fTimeList;
void SetSignal(std::vector< signal > list)
set the signal of the pmt (to use only when reading the binary)
const bool HasSignal() const
test if one pmt has signal during the slice reading
const int GetPmtOffset() const
get the time offset of the pmt (due to the time transit???)
Identify and fill the pmts with data.
const std::vector< signal > GetSignal() const
get the signal measured by the pmt (see signal.h for the format)
void SetPmtId(const int id)
set the identity of the pmt (shoud be careful with this one)
void SetPmtOffset(const int offset)
set the offset of the pmt
const int GetPmtId() const
get the identity of the pmt (from 0 to 30)
pmt(const int pmtId, const int offset)
const int GetHitNumber() const
get the number of hit detected by the pmt (one hit can be several photons!!!)
void ClearSignalData()
clear the pmt signal before to fill it again