36 <<
"Instantiating the GENIE BGLRS atmospheric neutrino flux driver";
82 else costheta += dcostheta;
86 <<
"FLUKA 3d flux: CosTheta bin " << i+1
95 double logE = logEmin;
100 else logE += dlogEhigh;
104 <<
"FLUKA 3d flux: Energy bin " << i+1
122 <<
"Loading BGLRS flux for neutrino: " << nu_pdg
123 <<
" from file: " << filename;
128 histo = myMapEntry->second;
131 LOG(
"Flux",
pERROR) <<
"Null flux histogram!";
134 ifstream flux_stream(filename.c_str(), ios::in);
136 LOG(
"Flux",
pERROR) <<
"Could not open file: " << filename;
141 double energy, costheta,
flux;
147 flux_stream.ignore(99999,
'\n');
149 while ( !flux_stream.eof() ) {
151 flux_stream >> energy >> costheta >>
flux >> junkd >> junkd;
157 <<
"Flux[Ev = " << energy
158 <<
", cos8 = " << costheta <<
"] = " <<
flux;
159 ibin = histo->FindBin( (Axis_t)energy, (Axis_t)costheta, (Axis_t)
kPi );
160 histo->SetBinContent( ibin, (Stat_t)(scale*
flux) );
#define FLUXDRIVERREG4(_nsa, _nsb, _name, _fqname)
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE,...
map< int, TH3D * > fRawFluxHistoMap
flux = f(Ev,cos8,phi) for each neutrino species
unsigned int fNumEnergyBins
number of energy bins in input flux data files
double fMaxEv
maximum energy (in input flux files)
unsigned int fNumPhiBins
number of phi bins in input flux data files
double * fPhiBins
phi bins in input flux data files
double * fCosThetaBins
cos(theta) bins in input flux data files
unsigned int fNumCosThetaBins
number of cos(theta) bins in input flux data files
double * fEnergyBins
energy bins in input flux data files
A flux driver for the Bartol Atmospheric Neutrino Flux.
bool FillFluxHisto(int nu_pdg, string filename)
const double kBGLRS3DCosThetaMin
const unsigned int kBGLRS3DNumLogEvBinsPerDecadeHigh
const unsigned int kBGLRS3DNumCosThetaBins
const unsigned int kBGLRS3DNumLogEvBinsPerDecadeLow
const double kBGLRS3DEvMin
const unsigned int kBGLRS3DNumLogEvBinsHigh
const unsigned int kBGLRS3DNumLogEvBinsLow
const double kBGLRS3DCosThetaMax
THE MAIN GENIE PROJECT NAMESPACE