1#ifndef __JTIMESLICE__JEVENTTIMESLICE__
2#define __JTIMESLICE__JEVENTTIMESLICE__
66 if (
simbad.hasPMTSimulator() &&
67 simbad.hasCLBSimulator()) {
83 if (!period.is_valid() || timeRange(
getTime(*
hit))) {
88 data[address.
first].resize(NUMBER_OF_PMTS);
97 if (
simbad.hasK40Simulator() && period.is_valid()) {
102 for (JMap_t::const_iterator i = data.begin(); i != data.end(); ++i) {
111 for (JDetector::const_iterator
module =
simbad->begin();
module != simbad->end(); ++
module) {
120 buffer.swap(i->second);
136 for (JMap_t::iterator i = data.begin(); i != data.end(); ++i) {
138 const JModule&
module = simbad.getModule(JModuleAddress(i->first));
KM3NeT DAQ constants, bit handling, etc.
Auxiliaries for creation of time slice data.
int first
index of module in detector data structure
Data structure for PMT data corresponding to a detector module.
void reset(size_t size)
Reset buffers.
Data structure for a composite optical module.
Address of PMT in detector data structure.
int second
index of PMT in module data structure.
Template definition of a multi-dimensional oscillation probability interpolation table.
void setDAQChronometer(const JDAQChronometer &chronometer)
Set DAQ chronometer.
Data frame of one optical module.
Auxiliary class to convert DAQ hit time to/from Monte Carlo hit time.
static const int MODULE_OUT_OF_SYNC
Enable (disable) synchronous signal from this module if this status bit is 0 (1);.
JTimeRange getTimeRange(const Evt &event)
Get time range (i.e. time between earliest and latest hit) of Monte Carlo event.
double getNPE(const Hit &hit)
Get true charge of hit.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
const char * getTime()
Get current local time conform ISO-8601 standard.
KM3NeT DAQ data structures and auxiliaries.
static const int OUT_OF_SYNC
Enable (disable) synchronous signal from this PMT if this status bit is 0 (1);.
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.
std::vector< Hit > mc_hits
MC: list of MC truth hits.
Data structure for PMT analogue signal.
Timeslice with Monte Carlo event.
JEventTimeslice(const JDAQChronometer &chronometer, const JDetectorSimulator &simbad, const Evt &event, const JTimeRange &period=JTimeRange::DEFAULT_RANGE())
Constructor.
Base class class for generation of time slice data.
Auxiliary include file for time conversion between DAQ/trigger hit and Monte Carlo hit.