27 using namespace genie;
28 using namespace genie::flux;
29 using namespace genie::constants;
36 <<
"Instantiating the GENIE BGLRS atmospheric neutrino flux driver";
42 GBGLRSAtmoFlux::~GBGLRSAtmoFlux()
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) );
double * fPhiBins
phi bins in input flux data files
unsigned int fNumEnergyBins
number of energy bins in input flux data files
bool FillFluxHisto(int nu_pdg, string filename)
const double kBGLRS3DCosThetaMin
unsigned int fNumCosThetaBins
number of cos(theta) bins in input flux data files
const unsigned int kBGLRS3DNumLogEvBinsHigh
const unsigned int kBGLRS3DNumLogEvBinsLow
const unsigned int kBGLRS3DNumLogEvBinsPerDecadeLow
const double kBGLRS3DEvMin
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
const double kBGLRS3DCosThetaMax
double * fCosThetaBins
cos(theta) bins in input flux data files
unsigned int fNumPhiBins
number of phi bins in input flux data files
double * fEnergyBins
energy bins in input flux data files
map< int, TH3D * > fRawFluxHistoMap
flux = f(Ev,cos8,phi) for each neutrino species
const unsigned int kBGLRS3DNumLogEvBinsPerDecadeHigh
A base class for the FLUKA, BGLRS and ATMNC atmo. nu. flux drivers. The driver depends on data files ...
double fMaxEv
maximum energy (in input flux files)
const unsigned int kBGLRS3DNumCosThetaBins
A flux driver for the Bartol Atmospheric Neutrino Flux.
#define FLUXDRIVERREG4(_nsa, _nsb, _name, _fqname)