56 JLimit_t& numberOfEvents = inputFile.getLimit();
65 JParser<> zap(
"Example program to test hit coincidence building with Monte Carlo events.");
77 catch(
const exception &error) {
116 JSuperFrame2D_t buffer;
123 Evt*
event = in.next();
125 const int frame_index = 1;
139 const JModule&
module = detector.getModule(moduleRouter.getAddress(super_frame->getModuleID()));
147 if (!dataL1.empty()) {
154 for (
int i = 1; i <=
hn.GetNbinsX(); ++i) {
156 buildL2.numberOfHits = (
int)
hn.GetBinCenter(i);
162 hn.Fill((
double) buildL2.numberOfHits, (
double) d2.size() / (
double) dataL1.size());
169 if (!dataL1.empty()) {
176 for (
int i = 1; i <=
hc.GetNbinsX(); ++i) {
178 buildL2.ctMin =
hc.GetBinCenter(i);
184 hc.Fill(buildL2.ctMin, (
double) d2.size() / (
double) dataL1.size());
191 if (!dataL1.empty()) {
198 for (
int i =
ht.GetNbinsX(); i != 0; --i) {
200 buildL2.TMaxLocal_ns =
ht.GetBinCenter(i);
206 ht.Fill(buildL2.TMaxLocal_ns, (
double) d2.size() / (
double) dataL1.size());
Data structure for detector geometry and calibration.
Basic data structure for L0 hit.
Basic data structure for L1 hit.
General purpose messaging.
#define DEBUG(A)
Message macros.
Direct access to module in detector data structure.
Scanning of objects from multiple files according a format that follows from the extension of each fi...
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
int main(int argc, char **argv)
ROOT TTree parameter settings of various packages.
Basic data structure for time and time over threshold information of hit.
Router for direct addressing of module data in detector data structure.
bool hasModule(const JObjectID &id) const
Has module.
Data structure for a composite optical module.
Auxiliary class for map of PMT parameters.
Template definition of a multi-dimensional oscillation probability interpolation table.
Data structure for UTC time.
void load(const std::string &file_name, JDetector &detector)
Load detector from input file.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
KM3NeT DAQ data structures and auxiliaries.
double getFrameTime()
Get frame time duration.
double getTimeOfFrame(const int frame_index)
Get start time of frame in ns since start of run for a given frame index.
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.
double mc_t
MC: time where the mc-event was put in the timeslice, since start of run (offset+frameidx*timeslice_d...
Transmission with position.
Empty structure for specification of parser element that is initialised (i.e. does not require input)...
Auxiliary class for defining the range of iterations of objects.
static counter_type max()
Get maximum counter value.
Auxiliary data structure for L1 build parameters.
Data structure for L2 parameters.
Timeslice with Monte Carlo event.