10#include "TProfile2D.h"
39 JLimit_t& numberOfEvents = inputFile.getLimit();
46 JParser<> zap(
"Example program to histogram string and floor rates.");
56 catch(
const exception& error) {
81 string.size(), -0.5,
string.size() - 0.5,
82 floor .size(), -0.5, floor .size() - 0.5);
85 h2.GetXaxis()->SetBinLabel(i,
MAKE_CSTRING(
string.at(i-1)));
88 h2.GetYaxis()->SetBinLabel(i,
MAKE_CSTRING(floor .at(i-1)));
91 while (inputFile.hasNext()) {
97 for (JDAQSummaryslice::const_iterator frame = summary->begin(); frame != summary->end(); ++frame) {
99 if (router.
hasModule(frame->getModuleID())) {
101 const JModule&
module = router.getModule(frame->getModuleID());
104 if (!frame->testHighRateVeto(pmt) && !frame->testFIFOStatus(pmt)) {
105 h2.Fill((
double)
string.getIndex(
module.getString()),
107 frame->getRate(pmt) * 1.0e-3);
111 FATAL(
"JModuleRouter trying to access non existing identifier: " << frame->getModuleID());
int main(int argc, char **argv)
Data structure for detector geometry and calibration.
General purpose class for a hash collection of unique elements.
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.
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.
bool hasModule(const JObjectID &id) const
Has module.
Data structure for a composite optical module.
Template definition of a multi-dimensional oscillation probability interpolation table.
void load(const std::string &file_name, JDetector &detector)
Load detector from input file.
const array_type< JValue_t > & make_array(const JValue_t(&array)[N])
Method to create array of values.
int getIndex()
Get index for user I/O manipulation.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
KM3NeT DAQ data structures and auxiliaries.
static const int NUMBER_OF_PMTS
Total number of PMTs in module.
Auxiliary class for defining the range of iterations of objects.
static counter_type max()
Get maximum counter value.