41{
44
46
47
50 string HondaTable;
51 string oscProbTable;
53 JAbstractHistogram_t log10Ebinning;
54 JAbstractHistogram_t coszBinning;
56
57 try {
58
60
69
70 zap(argc, argv);
71 }
72 catch(const exception& error) {
73 FATAL(error.what() << endl);
74 }
75
76
77
78
81
84
85 if (!oscProbTable.empty()) {
86
88
89 const JOscFlux oscFlux1(atmFlux, oscProb);
90 const JOscFlux oscFlux2(interpolator, oscProb);
91
94
95 } else {
96
99 }
100
108 };
109
111 log10Ebinning.getNumberOfBins(), log10Ebinning.getLowerLimit(), log10Ebinning.getUpperLimit(),
112 coszBinning .getNumberOfBins(), coszBinning .getLowerLimit(), coszBinning .getUpperLimit()));
113
115 log10Ebinning.getNumberOfBins(), log10Ebinning.getLowerLimit(), log10Ebinning.getUpperLimit(),
116 coszBinning .getNumberOfBins(), coszBinning .getLowerLimit(), coszBinning .getUpperLimit()));
117
119 log10Ebinning.getNumberOfBins(), log10Ebinning.getLowerLimit(), log10Ebinning.getUpperLimit(),
120 coszBinning .getNumberOfBins(), coszBinning .getLowerLimit(), coszBinning .getUpperLimit()));
121
123 <<
RIGHT(25) <<
"flux1 [GeV^-1 * m^-2 * sr^-1 * s^-1]"
124 <<
RIGHT(52) <<
"flux2 [GeV^-1 * m^-2 * sr^-1 * s^-1]"
125 <<
RIGHT(52) <<
"flux3 [GeV^2 * m^-2 * sr^-1 * s^-1]" << endl);
126
127 for (vector<int>::const_iterator type = nuTypes.cbegin(); type != nuTypes.cend(); ++type) {
128
129 for (int i = 1; i <= h0->GetXaxis()->GetNbins(); ++i) {
130
131 const double X = h0->GetXaxis()->GetBinCenter(i);
132 const double E =
pow(10.0,
X);
133
134 for (
int j = 1;
j <= h0->GetYaxis()->GetNbins(); ++
j) {
135
136 const double cosz = h0->GetYaxis()->GetBinCenter(
j);
137
138 const double F0 = flux1(*type,
X, cosz);
139 const double F1 = flux2(*type,
X, cosz);
140 const double F2 = F1 * E * E * E;
141
143 FIXED (10,3) << cosz <<
147
149
150 h0[*
type]->SetBinContent(i,
j, F0);
151 h1[*
type]->SetBinContent(i,
j, F1);
152 h2[*
type]->SetBinContent(i,
j, F2);
153 }
154 }
155 }
156
158
159 out << h0 << h1 << h2;
160
161 out.Write();
162 out.Close();
163
164 return 0;
165}
#define DEBUG(A)
Message macros.
#define ASSERT(A,...)
Assert macro.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Template specialisation for interpolator of azimuth-averaged Honda flux table.
Data structure for single set of oscillation parameters.
Template definition of a multi-dimensional oscillation probability interpolation table.
Utility class to parse command line options.
Auxiliary class to manage set of compatible ROOT objects (e.g. histograms) using unique keys.
T pow(const T &x, const double y)
Power .
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary data structure for floating point format specification.
Helper class for diffuse flux factor.
Specialisation of event-weight factor interface for atmospheric neutrino flux.
void configure(const pointer_type &p)
Configure event-weight factor.
Implementation of oscillated neutrino flux.
Empty structure for specification of parser element that is initialised (i.e. does not require input)...
Auxiliary base class for list of file names.
Auxiliary data structure for floating point format specification.