Jpp
JDAQHit.cc
Go to the documentation of this file.
1 #include "online/JDAQHit.hh"
2 
3 
4 /**
5  * \author mdejong
6  */
7 
8 /**
9  * Custom ROOT streamer.
10  *
11  * \param R__b I/O buffer
12  */
13 void KM3NETDAQ::JDAQHit::Streamer(TBuffer& R__b)
14 {
15  if (R__b.IsReading()) {
16  R__b >> pmt;
17  R__b >> tdc;
18  R__b >> tot;
19  } else {
20  R__b << pmt;
21  R__b << tdc;
22  R__b << tot;
23  }
24 }
KM3NETDAQ::JDAQHit::pmt
JPMT_t pmt
PMT readout channel in FPGA.
Definition: JDAQHit.hh:158
KM3NETDAQ::JDAQHit::tot
JTOT_t tot
time over threshold [ns]
Definition: JDAQHit.hh:160
TBuffer
Definition: JRoot.hh:21
TBuffer::IsReading
bool IsReading()
Definition: JRoot.hh:23
JDAQHit.hh
KM3NETDAQ::JDAQHit::tdc
JTDC_t tdc
leading edge [ns]
Definition: JDAQHit.hh:159