Example program to histogram KM3NETDAQ::JDAQTimeslice.
More...
#include <string>
#include <iostream>
#include <iomanip>
#include <limits>
#include "TROOT.h"
#include "TFile.h"
#include "TH1D.h"
#include "km3net-dataformat/online/JDAQPMTIdentifier.hh"
#include "JDAQ/JDAQTimesliceIO.hh"
#include "JSupport/JMultipleFileScanner.hh"
#include "JSupport/JSupport.hh"
#include "JROOT/JManager.hh"
#include "Jeep/JeepToolkit.hh"
#include "JLang/JObjectMultiplexer.hh"
#include "Jeep/JParser.hh"
#include "Jeep/JMessage.hh"
Go to the source code of this file.
Example program to histogram KM3NETDAQ::JDAQTimeslice.
- Author
- mdejong
Definition in file examples/JDAQ/JDAQTimeslice.cc.
◆ main()
Definition at line 31 of file examples/JDAQ/JDAQTimeslice.cc.
32{
36
38 JLimit_t& numberOfEvents = inputFile.getLimit();
42
43 try {
44
45 JParser<> zap(
"Example program to histogram timeslice data.");
46
52
54 }
55 catch(const exception& error) {
57 }
58
59
62
67
71
73
74 for (
counter_type counter = 0; in.hasNext(); ++counter) {
75
77
79
84
85 for (JDAQTimeslice::const_iterator frame = timeslice->begin(); frame != timeslice->end(); ++frame) {
86
87 h3->Fill(
log10((
double) frame->size()));
88
90
92 h0->Fill(
hit->getPMT());
93 h1->Fill(
hit->getToT());
94 h2->Fill(
hit->getT());
95 }
96 }
97 }
98 }
100
102
104
105 out.Write();
106 out.Close();
107}
JDAQPMTIdentifier PMT
Command line options.
#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.
int getModuleID() const
Get module identifier.
int getPMTAddress() const
Get PMT identifier.
static bool compare(const JDAQPMTIdentifier &first, const JDAQPMTIdentifier &second)
Compare PMT identifiers.
std::string getClassname(const std::string &type_name)
Get type name, i.e. part after JEEP::TYPENAME_SEPARATOR.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
KM3NeT DAQ data structures and auxiliaries.
Auxiliary class for defining the range of iterations of objects.
static counter_type max()
Get maximum counter value.