1 #ifndef IOONLINEINCLUDED 
    2 #define IOONLINEINCLUDED 
   14 #include "TStreamerInfo.h" 
   23 using namespace KM3NETDAQ;
 
   82   evt.
hits.reserve(snapshotHits.size());
 
   84   for (
auto& daqhit : snapshotHits ) 
 
   88     evt.
hits.push_back( h );
 
   92   for (
auto& daqtrighit : triggeredHits)
 
   94     Hit* g = M[daqtrighit.getModuleID()][daqtrighit.getPMT()][daqtrighit.getT()];
 
   97       g->
trig = daqtrighit.getTriggerMask ();
 
   99       THROW(
Exception, 
"Failed to flag snaphot hit " << (
int) daqtrighit.getModuleID() << 
"." << (int) daqtrighit.getPMT() << 
" " << daqtrighit.getT());
 
  126     for (
auto& daqhit : sf )
 
  129       h.
dom_id = sf.getModuleID();
 
  130       evt.
hits.push_back(h);
 
  145   static TFile* _f = 0;
 
  147   static TBranch* BS = 0;
 
  158     const char* 
name = JDAQSummaryslice::Class()->GetName();
 
  176     std::cout << 
"building index to lookup timeslices..." << std::endl;
 
  177     int n = S->BuildIndex(
"frame_index");
 
  179     BS->SetAddress( &r );
 
  182   int nbytes = S->GetEntryWithIndex( frame_index );
 
  185     THROW(
Exception, 
"Failed to find entry with frame_index " << frame_index);
 
JDAQUTCExtended getTimesliceStart() const 
Get start of timeslice. 
 
int getModuleID() const 
Get module identifier. 
 
JDAQSummaryslice * get_summary_slice(TFile *f, int frame_index)
Get summary slice from given file with given frame index. 
 
static const char *const TBRANCH_ONLINE_TIMESLICE
ROOT TBranch name. 
 
int getDetectorID() const 
Get detector identifier. 
 
bool read(Vec &v, std::istream &is)
Read a Vec(tor) from a stream. 
 
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message. 
 
int pmt_id
global PMT identifier as found in evt files 
 
ULong64_t trigger_counter
trigger counter 
 
static int ROOT_IO_VERSION
Streamer version of JDAQSummaryslice as obtained from ROOT file. 
 
unsigned int tdc
hit tdc (=time in ns) 
 
JTDC_t getT() const 
Get time. 
 
JPMT_t getPMT() const 
Get PMT. 
 
int getRunNumber() const 
Get run number. 
 
int getFrameIndex() const 
Get frame index. 
 
static JTriggerMask_t getTriggerMask(const JDAQTriggeredHit &hit)
Get trigger mask of given hit. 
 
JTOT_t getToT() const 
Get time-over-threshold. 
 
int frame_index
from the raw data 
 
unsigned int overlays
number of overlaying triggered events 
 
const std::vector< T > & getHits() const 
Get container with hits. 
 
static const char *const TTREE_ONLINE_TIMESLICE
KM3NeT Data Definitions v2.0.0-15-g59d2e2b https://git.km3net.de/common/km3net-dataformat. 
 
JUINT32_t getUTC16nanosecondcycles() const 
Get time. 
 
int run_id
DAQ run identifier. 
 
JUINT32_t getUTCseconds() const 
Get time. 
 
int det_id
detector identifier from DAQ 
 
do set_variable SIGMA_NS set_variable OUTLIERS set_variable OUTPUT_FILE matrix[${ALPHA_DEG}\deg\] root $JPP JMatrixNZ a $DETECTOR f $INPUT_FILE o $OUTPUT_FILE S
 
TTimeStamp t
UTC time of the timeslice, or the event_time for MC. (default: 01 Jan 1970 00:00:00) ...
 
ULong64_t trig
non-zero if the hit is a trigger hit. 
 
int dom_id
module identifier from the data (unique in the detector). 
 
alias put_queue eval echo n
 
unsigned int tot
tot value as stored in raw data (int for pyroot) 
 
unsigned int channel_id
PMT channel id {0,1, .., 31} local to moduke. 
 
std::vector< Hit > hits
list of hits 
 
JTriggerCounter_t getCounter() const 
Get trigger counter. 
 
ULong64_t trigger_mask
trigger mask from raw data (i.e. the trigger bits) 
 
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.