40 int main(
int argc,
char **argv)
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) {
Data structure for detector geometry and calibration.
Dynamic ROOT object management.
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
#define MAKE_CSTRING(A)
Make C-string.
Auxiliary class to define a range between two values.
Direct access to string in detector data structure.
ROOT TTree parameter settings of various packages.
int getFloor() const
Get floor number.
int getString() const
Get string number.
Router for direct addressing of module data in detector data structure.
const JModule & getModule(const JObjectID &id) const
Get module parameters.
Data structure for a composite optical module.
Auxiliary class for multiplexing object iterators.
virtual bool hasNext() override
Check availability of next element.
virtual const pointer_type & next() override
Get next element.
Utility class to parse command line options.
Auxiliary class to manage set of compatible ROOT objects (e.g. histograms) using unique keys.
void Write(TDirectory &out, const bool wm=false)
Write objects to file.
General purpose class for object reading from a list of file names.
int main(int argc, char **argv)
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