Constructor.
The PDF file descriptor should contain the wild card character JPHYSICS::WILDCARD.
The TTS corresponds to the additional time smearing applied to the PDFs.
163 {
166
168 DIRECT_LIGHT_FROM_MUON,
169 SCATTERED_LIGHT_FROM_MUON,
170 DIRECT_LIGHT_FROM_EMSHOWERS,
171 SCATTERED_LIGHT_FROM_EMSHOWERS,
172 DIRECT_LIGHT_FROM_DELTARAYS,
173 SCATTERED_LIGHT_FROM_DELTARAYS
174 };
175
176 const int N = sizeof(pdf_t) / sizeof(pdf_t[0]);
177
179
180 const JPDF_t::JSupervisor supervisor(new JPDF_t::JDefaultResult(zero));
181
182 for (int i = 0; i != N; ++i) {
183
184 const string file_name = getFilename(fileDescriptor, pdf_t[i]);
185
186 cout << "loading input from file " << file_name << "... " << flush;
187
188 pdf[i].load(file_name.c_str());
189
190 pdf[i].setExceptionHandler(supervisor);
191
192 cout << "OK" << endl;
193 }
194
195
196
197 cout << "adding PDFs... " << flush;
198
202
203 cout << "OK" << endl;
204
205 if (TTS > 0.0) {
206
207 cout << "bluring PDFs... " << flush;
208
212
213 cout << "OK" << endl;
214
215 } else if (TTS < 0.0) {
216
218 }
219 }
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
Exception for accessing a value in a collection that is outside of its range.
void blur(const double TTS, const int numberOfPoints=25, const double epsilon=1.0e-10, const double quantile=0.99)
Blur PDF.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
JPP::JPDFTable< JFunction1D_t, JPDFMaplist_t > JPDF_t
JPDF_t pdfB
PDF for average energy losses.
JPDF_t pdfC
PDF for delta-rays.
JPDF_t pdfA
PDF for minimum ionising particle.