5 #include "GENIE/Framework/Messenger/Messenger.h" 6 #include "GENIE/Framework/Conventions/Units.h" 18 fLimsT.
Set(hist->GetXaxis()->GetXmin(),hist->GetXaxis()->GetXmax());
19 fLimsE.
Set(hist->GetYaxis()->GetXmin(),hist->GetYaxis()->GetXmax());
25 TH1D* histT = hist->ProjectionX(Form(
"HistT_%d", pdg));
27 int NBins = hist->GetNbinsX();
31 for (
int nbin = 0; nbin < NBins; ++nbin) {
32 TH1D*
h = hist->ProjectionY(Form(
"HistE_%d_%d", pdg, nbin), nbin, nbin);
45 if (this->
End())
return;
51 <<
" (bin=" << bin <<
")";
57 <<
" vs Emin=" <<
fEmin;
64 <<
"]: generated T=" <<
fT const OrderedSampler & GetSamplerT() const
const RandomSampler & GetSamplerE(size_t i) const
void Set(double val1, double val2)
void SetProbScale(double scale)
GFluxGenerator(int pdg, TH2 *hist)
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
Limits< double > fLimsE
Total flux integral.
void SetEmin(double Emin)
void SetProbScale(double scale)
Limits< double > fLimsT
Energy range.
std::vector< RandomSampler > fESamplers
void FillParticle(GenParticle &particle)
void Init(TH1 *hist, bool integral=false)