44 using namespace KM3NETDAQ;
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,
88 range.getUpperLimit(), 1 - 0.5,
range.getUpperLimit() + 0.5));
90 for (Int_t
i = 1;
i <= H2->GetXaxis()->GetNbins(); ++
i) {
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());
Utility class to parse command line options.
int getFloor() const
Get floor number.
Data structure for a composite optical module.
Auxiliary class to select ROOT class based on class name.
Router for direct addressing of module data in detector data structure.
#define MAKE_CSTRING(A)
Make C-string.
Long64_t counter_type
Type definition for counter.
result_type::const_iterator const_iterator
Auxiliary class for multiplexing object iterators.
floor_range getRangeOfFloors(const JDetector &detector)
Get range of floors.
static const JChecksum checksum
Function object to perform check-sum of raw data.
Auxiliary class for defining the range of iterations of objects.
Auxiliary class to manage set of compatible ROOT objects (e.g. histograms) using unique keys...
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
int getIndex()
Get index for user I/O manipulation.
z range($ZMAX-$ZMIN)< $MINIMAL_DZ." fi fi typeset -Z 4 STRING typeset -Z 2 FLOOR JPlot1D -f $
int getString() const
Get string number.
void load(const std::string &file_name, JDetector &detector)
Load detector from input file.
Router for mapping of string identifier to index.
General purpose class for object reading from a list of file names.
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in
const JLimit & getLimit() const
Get limit.
do set_variable DETECTOR_TXT $WORKDIR detector
Auxiliary data structure for result of checksum.
#define DEBUG(A)
Message macros.