Go to the documentation of this file. 1 #ifndef __JTIMESLICE__JEVENTTIMESLICE__
2 #define __JTIMESLICE__JEVENTTIMESLICE__
75 if (simbad.
hasPMT(hit->pmt_id)) {
79 if (!period.is_valid() || timeRange(
getTime(*hit))) {
94 for (JMap_t::const_iterator i = data.begin(); i != data.end(); ++i) {
98 time_range.
add(period);
103 for (JDetector::const_iterator module = simbad->begin(); module != simbad->end(); ++module) {
108 JMap_t::iterator i = data.find(
distance(simbad->begin(),module));
111 buffer.swap(i->second);
113 buffer.
reset(module->size());
122 simbad(*module, buffer, *(this->rbegin()));
127 for (JMap_t::iterator i = data.begin(); i != data.end(); ++i) {
133 simbad(module, i->second, *(this->rbegin()));
141 catch(
const std::exception& error) {};
void setDAQChronometer(const JDAQChronometer &chronometer)
Set DAQ chronometer.
int first
index of module in detector data structure
Timeslice with Monte Carlo event.
JEventTimeslice(const JDAQChronometer &chronometer, const JDetectorSimulator &simbad, const Evt &event, const JTimeRange &period=JTimeRange::DEFAULT_RANGE)
Constructor.
JTimeRange getTimeRange(const Evt &event)
Get time range (i.e.
Data structure for PMT data corresponding to a detector module.
double putTime() const
Get Monte Carlo minus DAQ/trigger hit time.
Structure to store the ToT mean and standard deviation of the hits produced by a nanobeacon in a sour...
double getNPE(const Hit &hit)
Get true charge of hit.
bool hasPMT(const JObjectID &id) const
Has PMT.
Auxiliary class to convert DAQ/trigger hit time to/from Monte Carlo hit time.
static const int NUMBER_OF_PMTS
Total number of PMTs in module.
std::vector< T >::difference_type distance(typename std::vector< T >::const_iterator first, typename PhysicsEvent::const_iterator< T > second)
Specialisation of STL distance.
Auxiliary class for time slice data.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
bool hasPMTSimulator() const
Check availability of PMT simulator.
int getID() const
Get identifier.
Address of module in detector data structure.
double getTime(const Hit &hit)
Get true time of hit.
Data structure for a composite optical module.
const JPMTAddress & getAddress(const JObjectID &id) const
Get address of PMT.
Address of PMT in detector data structure.
KM3NeT DAQ data structures and auxiliaries.
void applyHighRateVeto(const JPMTDefaultSimulatorInterface &pmtSimulator)
Apply high-rate veto.
Data frame of one optical module.
bool hasK40Simulator() const
Check availability of K40 simulator.
const JPMTSimulator & getPMTSimulator() const
Get PMT simulator.
Data structure for PMT analogue signal.
virtual void generateHits(const JModule &module, const JTimeRange &period, JModuleData &output) const
Generate hits.
void reset(size_t size)
Reset buffers.
bool hasCLBSimulator() const
Check availability of CLB simulator.
const JModule & getModule(const JModuleAddress &address) const
Get module.
int second
index of PMT in module data structure.