31{
35
42
43 try {
44
45 JParser<> zap(
"Auxiliary application to plot detector parameters.");
46
50 zap[
'r'] =
make_field(
regexp,
"regular expresion to extract bin labels for the x-axis") =
" ";
53
55 }
56 catch(const exception &error) {
58 }
59
60
62 FATAL(
"No detector file specified." <<
endl);
63 }
64
67 }
68
69
71
74 NUMBER_OF_PMTS, -0.5, NUMBER_OF_PMTS - 0.5));
75
77
79
81
83
85
86 if(i%n == 0)
88 else
89 manager->GetXaxis()->SetBinLabel(i+1 ,
" ");
90 }
91 }
92
93
95
97
98 try {
100 }
103 }
104
107 }
108
109
111
113
115
116 try {
118 }
121 }
122
124
126
128
129 for (size_t pmt = 0; pmt != module->size(); ++pmt) {
130 h2->SetBinContent(i+1, pmt+1, router.getModule(
module->getID()).getPMT(pmt).getT0() -
module->getPMT(pmt).getT0());
131 }
132 }
133 }
134
135 } else {
136
138
140
143
144 try {
147 }
150 }
151
153
155
157
158 for (size_t pmt = 0; pmt != module->size(); ++pmt) {
159 h2->SetBinContent(i+1, pmt+1, router.getModule(
module->getID()).getPMT(pmt).getT0() -
module->getPMT(pmt).getT0());
160 }
161 }
162 }
163 }
164
165
166 for (JManager<string, TH2D>::iterator i =
manager.begin(); i !=
manager.end(); ++i) {
168 }
169
171}
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
#define MAKE_CSTRING(A)
Make C-string.
Router for direct addressing of module data in detector data structure.
Template definition of a multi-dimensional oscillation probability interpolation table.
Utility class to parse command line options.
void load(const std::string &file_name, JDetector &detector)
Load detector from input file.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
KM3NeT DAQ data structures and auxiliaries.
boost::property_tree::ptree parse(std::string str)
Empty structure for specification of parser element that is initialised (i.e. does not require input)...