28 int main(
int argc,
char **argv)
54 catch(
const exception &error) {
55 FATAL(error.what() << endl);
70 FATAL(
"Empty detector." << endl);
76 const int ny = number_of_strings * number_of_floors;
79 TFile* in = TFile::Open(inputFile.c_str(),
"read");
82 FATAL(
"No data in inputfile " << inputFile << endl);
87 for (map_type::const_iterator i = parameters.begin(); i != parameters.end(); ++i) {
89 const string key = i->first;
103 for (
size_t dom = 0; dom !=
detector.size(); ++dom) {
117 const double value =
p1->GetBinContent(pmt+1);
121 h2.SetBinContent(pmt+1, iy, value);
127 h1.GetXaxis()->SetTitle(key.c_str());
128 h1.GetYaxis()->SetTitle(
"PMTs");
130 h2.GetXaxis()->SetTitle(
"PMT DAQ index");
132 for (
size_t dom = 0; dom !=
detector.size(); ++dom) {
137 << setw(3) << setfill(
'0') << module.
getString() <<
' '
138 << setw(2) << setfill(
'0') << module.
getFloor()));
141 h2.GetZaxis()->SetTitle(key.c_str());
KM3NeT DAQ constants, bit handling, etc.
Data structure for detector geometry and calibration.
General purpose messaging.
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
int main(int argc, char **argv)
I/O formatting auxiliaries.
#define MAKE_CSTRING(A)
Make C-string.
Auxiliary class to define a range between two values.
int getFloor() const
Get floor number.
int getString() const
Get string number.
Data structure for a composite optical module.
int getID() const
Get identifier.
Utility class to parse command line options.
int getNumberOfFloors(const JDetector &detector)
Get number of floors.
void load(const std::string &file_name, JDetector &detector)
Load detector from input file.
static const JStringCounter getNumberOfStrings
Function object to count unique strings.
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.
std::map< int, range_type > map_type
Type definition of range.