39 JLimit_t& numberOfEvents = inputFile.getLimit();
46 JParser<> zap(
"Example program to histogram string and floor rates.");
51 zap[
'n'] =
make_field(numberOfEvents) = JLimit::max();
56 catch(
const exception& error) {
57 FATAL(error.what() << endl);
80 TProfile2D h2(
"h2", NULL,
81 string.size(), -0.5,
string.size() - 0.5,
82 floor .size(), -0.5, floor .size() - 0.5);
84 for (Int_t i = 1; i <= h2.GetXaxis()->GetNbins(); ++i) {
85 h2.GetXaxis()->SetBinLabel(i,
MAKE_CSTRING(
string.at(i-1)));
87 for (Int_t i = 1; i <= h2.GetYaxis()->GetNbins(); ++i) {
88 h2.GetYaxis()->SetBinLabel(i,
MAKE_CSTRING(floor .at(i-1)));
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)) {
106 (
double) floor .getIndex(module.
getFloor()),
107 frame->getRate(pmt) * 1.0e-3);
111 FATAL(
"JModuleRouter trying to access non existing identifier: " << 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.
Utility class to parse command line options.
General purpose class for object reading from a list of file names.
virtual bool hasNext() override
Check availability of next element.
counter_type getCounter() const
Get counter.
virtual const pointer_type & next() override
Get next element.
JMODEL::JString getString(const JFit &fit)
Get model parameters of string.
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.