47 JLimit_t& numberOfEvents = inputFile.getLimit();
55 JParser<> zap(
"Example program to histogram string and floor hits.");
60 zap[
'n'] =
make_field(numberOfEvents) = JLimit::max();
61 zap[
'C'] =
make_field(selector) = getROOTClassSelection<JDAQTimesliceTypes_t>();
66 catch(
const exception& error) {
67 FATAL(error.what() << endl);
87 string.size(), -0.5,
string.size() - 0.5,
90 for (Int_t i = 1; i <= H2->GetXaxis()->GetNbins(); ++i) {
91 H2->GetXaxis()->SetBinLabel(i,
MAKE_CSTRING(
string.at(i-1)));
93 for (Int_t i = 1; i <= H2->GetYaxis()->GetNbins(); ++i) {
100 for (
counter_type counter = 0; in.hasNext() && counter != inputFile.getLimit(); ++counter) {
102 STATUS(
"event: " << setw(10) << counter <<
'\r');
DEBUG(endl);
106 for (JDAQTimeslice::const_iterator frame = timeslice->begin(); frame != timeslice->end(); ++frame) {
108 const JModule module = router.getModule(frame->getModuleID());
#define DEBUG(A)
Message macros.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
#define MAKE_CSTRING(A)
Make C-string.
int getFloor() const
Get floor number.
int getString() const
Get string number.
Router for direct addressing of module data in detector data structure.
Data structure for a composite optical module.
Auxiliary class for multiplexing object iterators.
Utility class to parse command line options.
Auxiliary class to manage set of compatible ROOT objects (e.g. histograms) using unique keys.
General purpose class for object reading from a list of file names.
floor_range getRangeOfFloors(const JDetector &detector)
Get range of floors.
void load(const std::string &file_name, JDetector &detector)
Load detector from input file.
int getIndex()
Get index for user I/O manipulation.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Long64_t counter_type
Type definition for counter.
static const JChecksum checksum
Function object to perform check-sum of raw data.
KM3NeT DAQ data structures and auxiliaries.
Router for mapping of string identifier to index.
Auxiliary class to select ROOT class based on class name.
Auxiliary class for defining the range of iterations of objects.
Auxiliary data structure for result of checksum.
result_type::const_iterator const_iterator