40 int main(
int argc,
char **argv)
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);
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) {
Utility class to parse command line options.
int main(int argc, char *argv[])
ROOT TTree parameter settings of various packages.
int getFloor() const
Get floor number.
const JModule & getModule(const JObjectID &id) const
Get module parameters.
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
Dynamic ROOT object management.
Auxiliary class for multiplexing object iterators.
floor_range getRangeOfFloors(const JDetector &detector)
Get range of floors.
Data structure for detector geometry and calibration.
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
virtual const pointer_type & next() override
Get next element.
int getIndex()
Get index for user I/O manipulation.
virtual bool hasNext() override
Check availability of next element.
General purpose messaging.
static const JStringCounter getNumberOfStrings
Function object to count unique strings.
Direct access to string in detector data structure.
Scanning of objects from multiple files according a format that follows from the extension of each fi...
Direct access to module in detector data structure.
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.
Auxiliary class to define a range between two values.
Router for mapping of string identifier to index.
General purpose class for object reading from a list of file names.
Utility class to parse command line options.
const JLimit & getLimit() const
Get limit.
do set_variable DETECTOR_TXT $WORKDIR detector
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
#define DEBUG(A)
Message macros.
const result_type & get(const JDAQSuperFrame &frame) const
Check sum.