11#include "TGraphErrors.h"
44int main(
int argc,
char **argv)
50 JLimit_t& numberOfEvents = inputFile.getLimit();
58 JParser<> zap(
"Example program to monitor acoustic events.");
60 zap[
'f'] =
make_field(inputFile,
"output of JAcousticEventBuilder[.sh]");
65 zap[
'l'] =
make_field(lifetime_s,
"run lifetime in seconds");
68 catch(
const exception &error) {
69 FATAL(error.what() << endl);
83 for (JDetector::const_iterator i =
detector.begin(); i !=
detector.end(); ++i) {
85 receivers[i->getID()] = i->getLocation();
92 string.size(), -0.5,
string.size() - 0.5,
95 for (Int_t i = 1; i <= H2->GetXaxis()->GetNbins(); ++i) {
96 H2->GetXaxis()->SetBinLabel(i,
MAKE_CSTRING(
string.at(i-1)));
99 for (Int_t i = 1; i <= H2->GetYaxis()->GetNbins(); ++i) {
107 for (JTreeScanner_t::iterator event = in.begin(); event != in.end(); ++event) {
109 TH2D* h2 = H2[
event->getID()];
113 for (JEvent::const_iterator i = event->begin(); i != event->end(); ++i) {
114 buffer[i->getID()].insert(i->getQ());
117 for (
map<
int,
set<double> >::const_iterator i = buffer.begin(); i != buffer.end(); ++i) {
119 if (receivers.
has(i->first)) {
121 const JLocation& location = receivers[i->first];
int main(int argc, char **argv)
ROOT TTree parameter settings.
Data structure for detector geometry and calibration.
General purpose class for a hash collection of unique elements.
General purpose class for hash map of unique elements.
Dynamic ROOT object management.
General purpose messaging.
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
I/O formatting auxiliaries.
#define MAKE_CSTRING(A)
Make C-string.
Auxiliary class to define a range between two values.
Logical location of module.
int getFloor() const
Get floor number.
int getString() const
Get string number.
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.
Base class for JTreeScanner.
Template definition for direct access of elements in ROOT TChain.
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).
Auxiliary class for defining the range of iterations of objects.
static counter_type max()
Get maximum counter value.