Example program to analyse KM3NETDAQ::JDAQEvent.
More...
#include <string>
#include <iostream>
#include <iomanip>
#include <limits>
#include <set>
#include "TROOT.h"
#include "TFile.h"
#include "TH1D.h"
#include "JDAQ/JDAQEventIO.hh"
#include "JSupport/JMultipleFileScanner.hh"
#include "JSupport/JSupport.hh"
#include "Jeep/JParser.hh"
#include "Jeep/JMessage.hh"
Go to the source code of this file.
Example program to analyse KM3NETDAQ::JDAQEvent.
- Author
- mdejong
Definition in file examples/JDAQ/JDAQEvent.cc.
◆ main()
Definition at line 27 of file examples/JDAQ/JDAQEvent.cc.
28{
32
34 JLimit_t& numberOfEvents = inputFile.getLimit();
38
39 try {
40
41 JParser<> zap(
"Example program to histogram event data.");
42
48
50 }
51 catch(const exception& error) {
53 }
54
55
57
58
62
66
69
70
71 while (inputFile.hasNext()) {
72
74
76
77 if (event->hasTriggerMask(trigger_mask)) {
78
79 {
81
83 h0.Fill(
hit->getPMT());
84 h1.Fill(
hit->getToT());
86 }
87 }
88
91 ho.Fill((
double)
event->getOverlays());
92
93 {
95
97 if (
hit->hasTriggerMask(trigger_mask)) {
99 }
100 }
101
102 ha.Fill((
double) buffer.size());
103 }
104
105 {
107
110 }
111
112 hb.Fill((
double) buffer.size());
113 }
114 }
115 }
117
118 out.Write();
119 out.Close();
120}
#define DEBUG(A)
Message macros.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Template definition of a multi-dimensional oscillation probability interpolation table.
Auxiliary class for trigger mask.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
KM3NeT DAQ data structures and auxiliaries.
static const JDAQTriggerMask TRIGGER_MASK_ON
Trigger mask on;.
double getFrameTime()
Get frame time duration.
Auxiliary class to set-up Hit.
Auxiliary class for defining the range of iterations of objects.
static counter_type max()
Get maximum counter value.