30 int main(
int argc,
char **argv)
49 zap[
'P'] =
make_field(oscProbTable,
"oscillation probability table file")
51 zap[
'@'] =
make_field(oscParameters,
"oscillation parameters")
60 catch(
const exception& error) {
61 FATAL(error.what() << endl);
67 if (!oscProbTable.empty()) {
71 interpolator.set (oscParameters);
72 interpolator.
load(oscProbTable.c_str());
80 if (scanners.
setFlux(fluxMap) == 0) {
81 WARNING(
"No flux functions set." << endl);
89 if (scanner->simul.size() > 0) {
90 STATUS(
"Scanning " << scanner->simul[0].program <<
" files..." << endl);
95 while (scanner->hasNext()) {
97 const Evt*
event = scanner->next();
98 const double weight = scanner->getWeight(*event);
int main(int argc, char **argv)
General purpose messaging.
#define DEBUG(A)
Message macros.
Scanning of objects from multiple files according a format that follows from the extension of each fi...
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
I/O formatting auxiliaries.
ROOT TTree parameter settings of various packages.
Template specialisation for a map between event categories and flux factors.
Data structure for single set of oscillation parameters.
Template definition of a multi-dimensional oscillation probability interpolation table.
void load(const char *const fileName)
Load oscillation probability table from file.
Utility class to parse command line options.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.
Empty structure for specification of parser element that is initialised (i.e. does not require input)...
Auxiliary class for organising Monte Carlo file scanners associated with event weighters.
size_t setFlux(const JEvtCategoryHelper &category, const JFluxHelper &flux)
Set flux function for all MC-files corresponding to a given event category.
std::vector< filescanner_type >::iterator iterator
Auxiliary base class for list of file names.
Auxiliary data structure for floating point format specification.