28 {
29
35
36 try {
44 }
45 catch(const exception &error) {
47 }
48
52
56
60
64
67 output.cd();
68
71 out_csv <<
"String,Ref_floor,Tgt_floor,T0,Error" <<
endl;
72
73
77
81 }
82
86
89
92
94
96
97 if( in.GetListOfKeys()->Contains(
hist_str.c_str()) ){
100
101
103
106 if(
h1D->GetEntries() < 1 ){
continue; }
107
111
112
114
117 }
118 }
119 }
120
121
125 for(
size_t i = 0, max =
T0s.size(); i != max; ++i ){
129 }
132 }
133
134
137 }
139
140
143
146
147 for(
int j = 0;
j<
n;
j++ ){
149 }
150 }
151
155
156
160
163
166 module->getPMT(pmt).addT0(weighted_T0);
167 }
168 }
170 }
172
174 cout <<
" Overwriting the detectorfile" <<
endl;
177 }
178}
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Router for direct addressing of module data in detector data structure.
Template definition of a multi-dimensional oscillation probability interpolation table.
JMODEL::JString getString(const JFit &fit)
Get model parameters of string.
int getNumberOfFloors(const JDetector &detector)
Get number of floors.
void load(const std::string &file_name, JDetector &detector)
Load detector from input file.
void store(const std::string &file_name, const JDetector &detector)
Store detector to output file.
static const JStringCounter getNumberOfStrings
Function object to count unique strings.
std::string to_string(const T &value)
Convert value to string.
TFitResultPtr Fit(TH1D *h)
bool comparepair(const pair_type &A, const pair_type &B)
static const int NUMBER_OF_PMTS
Total number of PMTs in module.
std::map< int, range_type > map_type