29int main(
int argc,
char **argv)
43 JParser<> zap(
"Auxiliary program to project single PMT data from 2D histogram.");
49 zap[
'e'] =
make_field(extension,
"histogram name extension") = _2R, _2S, _2F;
54 catch(
const exception &error) {
73 const JModule&
module = router.getModule(pmt.getModuleID());
81 if (
debug >= debug_t) {
83 for (
size_t i = 0; i !=
combinatorics.getNumberOfPairs(); ++i) {
91 TFile in(inputFile.c_str(),
"read");
100 h2->GetYaxis()->GetNbins(), h2->GetYaxis()->GetXmin(), h2->GetYaxis()->GetXmax());
104 h2->GetYaxis()->GetNbins(), h2->GetYaxis()->GetXmin(), h2->GetYaxis()->GetXmax());
106 for (
int i = 0; i != (
int)
module.size(); ++i) {
112 for (
Int_t iy = 1;
iy <= h2->GetYaxis()->GetNbins(); ++
iy) {
114 ha.SetBinContent(
iy,
ha.GetBinContent(
iy) + h2->GetBinContent(
ix,
iy));
117 hb.SetBinContent(i + 1,
iy, h2->GetBinContent(
ix,
iy));
118 hb.SetBinError (i + 1,
iy, h2->GetBinError (
ix,
iy));
int main(int argc, char **argv)
Data structure for detector geometry and calibration.
General purpose messaging.
Direct access to module in detector data structure.
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.
Router for direct addressing of module data in detector data structure.
Data structure for a composite optical module.
int getModuleID() const
Get module identifier.
int getTDC() const
Get TDC.
Template definition of a multi-dimensional oscillation probability interpolation table.
Utility class to parse command line options.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary data structure for sequence of same character.
Auxiliary class to sort pairs of PMT addresses within optical module.