An implementation of the GENIE GFluxI interface ("flux driver") encapsulating reading/processing the "dk2nu" tree structure. More...
#include "/cvmfs/nova.opensciencegrid.org/externals/dk2nugenie/v01_08_00e/source/dk2nu/genie/GDk2NuFlux.h"
Public Member Functions | |
GDk2NuFlux () | |
~GDk2NuFlux () | |
const PDGCodeList & | FluxParticles (void) |
declare list of flux neutrinos that can be generated (for init. purposes) More... | |
double | MaxEnergy (void) |
declare the max flux neutrino energy that can be generated (for init. purposes) More... | |
bool | GenerateNext (void) |
generate the next flux neutrino (return false in err) More... | |
int | PdgCode (void) |
returns the flux neutrino pdg code More... | |
double | Weight (void) |
returns the flux neutrino weight (if any) More... | |
const TLorentzVector & | Momentum (void) |
returns the flux neutrino 4-momentum More... | |
const TLorentzVector & | Position (void) |
returns the flux neutrino 4-position (note: expect SI rather than physical units) More... | |
bool | End (void) |
true if no more flux nu's can be thrown (eg reaching end of beam sim ntuples) More... | |
long int | Index (void) |
returns corresponding index for current flux neutrino (e.g. for a flux ntuple returns the current entry number) More... | |
void | Clear (Option_t *opt) |
reset state variables based on opt More... | |
void | GenerateWeighted (bool gen_weighted) |
set whether to generate weighted or unweighted neutrinos More... | |
const bsim::NuChoice & | GetNuChoice (void) |
const bsim::Dk2Nu & | GetDk2Nu (void) |
const bsim::DkMeta & | GetDkMeta (void) |
Long64_t | GetEntryNumber () |
index in chain More... | |
double | GetDecayDist () const |
dist (user units) from dk to current pos More... | |
void | MoveToZ0 (double z0) |
move ray origin to user coord Z0 More... | |
virtual double | GetTotalExposure () const |
double | POT_curr (void) |
current average POT (RWH?) More... | |
double | UsedPOTs (void) const |
of protons-on-target usedMore... | |
long int | NFluxNeutrinos (void) const |
number of flux neutrinos looped so far More... | |
double | SumWeight (void) const |
integrated weight for flux neutrinos looped so far More... | |
void | PrintCurrent (void) |
print current entry from leaves More... | |
void | PrintConfig () |
print the current configuration More... | |
std::vector< std::string > | GetFileList () |
list of files currently part of chain More... | |
virtual void | LoadBeamSimData (const std::vector< std::string > &filenames, const std::string &det_loc) |
virtual void | GetBranchInfo (std::vector< std::string > &branchNames, std::vector< std::string > &branchClassNames, std::vector< void ** > &branchObjPointers) |
virtual TTree * | GetMetaDataTree () |
void | SetTreeNames (std::string fname="dk2nuTree", std::string mname="dkmetaTree") |
bool | LoadConfig (std::string cfg) |
load a named configuration More... | |
void | SetMaxEnergy (double Ev) |
specify max flx nu energy More... | |
void | SetGenWeighted (bool genwgt=false) |
toggle whether GenerateNext() returns weight=1 flux (initial default false) More... | |
void | SetEntryReuse (long int nuse=1) |
of times to use entry before moving to nextMore... | |
void | ScanForMaxWeight (void) |
scan for max flux weight (before generating unweighted flux neutrinos) More... | |
void | SetMaxWgtScan (double fudge=1.05, long int nentries=2500000) |
void | SetMaxEFudge (double fudge=1.05) |
void | SetMinMaxWeight (double minwgt) |
void | SetMaxWeightFailModel (int i=0) |
void | SetApplyWindowTiltWeight (bool apply=true) |
void | SetLengthUnits (double user_units) |
Set units assumed by user. More... | |
double | LengthUnits (void) const |
Return user units. More... | |
void | SetBeamRotation (TRotation beamrot) |
< beam (0,0,0) relative to user frame, beam direction in user frame More... | |
void | SetBeamCenter (TVector3 beam0) |
TRotation | GetBeamRotation () const |
rotation to apply from beam->user More... | |
TVector3 | GetBeamCenter () const |
beam origin in user frame More... | |
bool | IsFluxSphere () const |
flat window or sphere More... | |
void | SetFluxWindow (TVector3 p1, TVector3 p2, TVector3 p3) |
3 points define a plane (by default in user coordinates) More... | |
void | GetFluxWindow (TVector3 &p1, TVector3 &p2, TVector3 &p3) const |
3 points define a plane in beam coordinate More... | |
void | SetFluxSphere (TVector3 center, double radius, bool inDetCoord=true) |
specification of a sphere More... | |
void | GetFluxSphere (TVector3 ¢er, double &radius, bool inDetCoord=true) const |
specification of a sphere More... | |
void | Beam2UserPos (const TLorentzVector &beamxyz, TLorentzVector &usrxyz) const |
void | Beam2UserDir (const TLorentzVector &beamdir, TLorentzVector &usrdir) const |
void | Beam2UserP4 (const TLorentzVector &beamp4, TLorentzVector &usrp4) const |
void | User2BeamPos (const TLorentzVector &usrxyz, TLorentzVector &beamxyz) const |
void | User2BeamDir (const TLorentzVector &usrdir, TLorentzVector &beamdir) const |
void | User2BeamP4 (const TLorentzVector &usrp4, TLorentzVector &beamp4) const |
TVector3 | FluxWindowNormal () const |
TVector3 | SphereNormal () const |
GDk2NuFlux () | |
~GDk2NuFlux () | |
const PDGCodeList & | FluxParticles (void) |
declare list of flux neutrinos that can be generated (for init. purposes) More... | |
double | MaxEnergy (void) |
declare the max flux neutrino energy that can be generated (for init. purposes) More... | |
bool | GenerateNext (void) |
generate the next flux neutrino (return false in err) More... | |
int | PdgCode (void) |
returns the flux neutrino pdg code More... | |
double | Weight (void) |
returns the flux neutrino weight (if any) More... | |
const TLorentzVector & | Momentum (void) |
returns the flux neutrino 4-momentum More... | |
const TLorentzVector & | Position (void) |
returns the flux neutrino 4-position (note: expect SI rather than physical units) More... | |
bool | End (void) |
true if no more flux nu's can be thrown (eg reaching end of beam sim ntuples) More... | |
long int | Index (void) |
returns corresponding index for current flux neutrino (e.g. for a flux ntuple returns the current entry number) More... | |
void | Clear (Option_t *opt) |
reset state variables based on opt More... | |
void | GenerateWeighted (bool gen_weighted) |
set whether to generate weighted or unweighted neutrinos More... | |
const bsim::NuChoice & | GetNuChoice (void) |
const bsim::Dk2Nu & | GetDk2Nu (void) |
const bsim::DkMeta & | GetDkMeta (void) |
Long64_t | GetEntryNumber () |
index in chain More... | |
double | GetDecayDist () const |
dist (user units) from dk to current pos More... | |
void | MoveToZ0 (double z0) |
move ray origin to user coord Z0 More... | |
virtual double | GetTotalExposure () const |
double | POT_curr (void) |
current average POT (RWH?) More... | |
double | UsedPOTs (void) const |
of protons-on-target usedMore... | |
long int | NFluxNeutrinos (void) const |
number of flux neutrinos looped so far More... | |
double | SumWeight (void) const |
integrated weight for flux neutrinos looped so far More... | |
void | PrintCurrent (void) |
print current entry from leaves More... | |
void | PrintConfig () |
print the current configuration More... | |
std::vector< std::string > | GetFileList () |
list of files currently part of chain More... | |
virtual void | LoadBeamSimData (const std::vector< std::string > &filenames, const std::string &det_loc) |
virtual void | GetBranchInfo (std::vector< std::string > &branchNames, std::vector< std::string > &branchClassNames, std::vector< void ** > &branchObjPointers) |
virtual TTree * | GetMetaDataTree () |
void | SetTreeNames (std::string fname="dk2nuTree", std::string mname="dkmetaTree") |
bool | LoadConfig (std::string cfg) |
load a named configuration More... | |
void | SetMaxEnergy (double Ev) |
specify max flx nu energy More... | |
void | SetGenWeighted (bool genwgt=false) |
toggle whether GenerateNext() returns weight=1 flux (initial default false) More... | |
void | SetEntryReuse (long int nuse=1) |
of times to use entry before moving to nextMore... | |
void | ScanForMaxWeight (void) |
scan for max flux weight (before generating unweighted flux neutrinos) More... | |
void | SetMaxWgtScan (double fudge=1.05, long int nentries=2500000) |
void | SetMaxEFudge (double fudge=1.05) |
void | SetMinMaxWeight (double minwgt) |
void | SetMaxWeightFailModel (int i=0) |
void | SetApplyWindowTiltWeight (bool apply=true) |
void | SetLengthUnits (double user_units) |
Set units assumed by user. More... | |
double | LengthUnits (void) const |
Return user units. More... | |
void | SetBeamRotation (TRotation beamrot) |
< beam (0,0,0) relative to user frame, beam direction in user frame More... | |
void | SetBeamCenter (TVector3 beam0) |
TRotation | GetBeamRotation () const |
rotation to apply from beam->user More... | |
TVector3 | GetBeamCenter () const |
beam origin in user frame More... | |
bool | IsFluxSphere () const |
flat window or sphere More... | |
void | SetFluxWindow (TVector3 p1, TVector3 p2, TVector3 p3) |
3 points define a plane (by default in user coordinates) More... | |
void | GetFluxWindow (TVector3 &p1, TVector3 &p2, TVector3 &p3) const |
3 points define a plane in beam coordinate More... | |
void | SetFluxSphere (TVector3 center, double radius, bool inDetCoord=true) |
specification of a sphere More... | |
void | GetFluxSphere (TVector3 ¢er, double &radius, bool inDetCoord=true) const |
specification of a sphere More... | |
void | Beam2UserPos (const TLorentzVector &beamxyz, TLorentzVector &usrxyz) const |
void | Beam2UserDir (const TLorentzVector &beamdir, TLorentzVector &usrdir) const |
void | Beam2UserP4 (const TLorentzVector &beamp4, TLorentzVector &usrp4) const |
void | User2BeamPos (const TLorentzVector &usrxyz, TLorentzVector &beamxyz) const |
void | User2BeamDir (const TLorentzVector &usrdir, TLorentzVector &beamdir) const |
void | User2BeamP4 (const TLorentzVector &usrp4, TLorentzVector &beamp4) const |
TVector3 | FluxWindowNormal () const |
TVector3 | SphereNormal () const |
const char * | GetExposureUnits () const |
what units are returned by GetTotalExposure? More... | |
genie::flux::Exposure_t | GetExposureType () const |
virtual void | LoadBeamSimData (const std::set< std::string > &filenames, const std::string &det_loc) |
virtual void | LoadBeamSimData (const std::string &filename, const std::string &det_loc) |
virtual void | SetXMLFileBase (std::string xmlbasename="") |
virtual std::string | GetXMLFileBase () const |
virtual void | SetFluxParticles (const PDGCodeList &particles) |
specify list of flux neutrino species More... | |
virtual void | SetUpstreamZ (double z0) |
virtual void | SetNumOfCycles (long int ncycle) |
limit cycling through input files More... | |
Static Public Member Functions | |
static const char * | AsString (genie::flux::Exposure_t etype) |
static genie::flux::Exposure_t | StringToEnum (const char *chars, int maxChar=0) |
Protected Attributes | |
PDGCodeList * | fPdgCList |
list of neutrino pdg-codes to generate More... | |
PDGCodeList * | fPdgCListRej |
list of nu pdg-codes seen but rejected More... | |
std::string | fXMLbasename |
XML file that might hold config param_sets. More... | |
long int | fNCycles |
times to cycle through the ntuple(s)More... | |
long int | fICycle |
double | fZ0 |
Private Member Functions | |
bool | GenerateNext_weighted (void) |
void | Initialize (void) |
void | SetDefaults (void) |
void | CleanUp (void) |
void | ResetCurrent (void) |
void | AddFile (TTree *fluxtree, TTree *metatree, std::string fname) |
void | CalcEffPOTsPerNu (void) |
void | LoadDkMeta (void) |
bool | GenerateNext_weighted (void) |
void | Initialize (void) |
void | SetDefaults (void) |
void | CleanUp (void) |
void | ResetCurrent (void) |
void | AddFile (TTree *fluxtree, TTree *metatree, std::string fname) |
void | CalcEffPOTsPerNu (void) |
void | LoadDkMeta (void) |
Private Attributes | |
double | fMaxEv |
maximum energy More... | |
bool | fEnd |
end condition reached More... | |
std::vector< std::string > | fNuFluxFilePatterns |
(potentially wildcarded) path(s) More... | |
std::string | fTreeNames [2] |
pair of names "dk2nuTree", "dkmetaTree" More... | |
TChain * | fNuFluxTree |
TTree // REF ONLY! More... | |
TChain * | fNuMetaTree |
TTree // REF ONLY! More... | |
bsim::Dk2Nu * | fCurDk2Nu |
bsim::DkMeta * | fCurDkMeta |
bsim::NuChoice * | fCurNuChoice |
int | fNFiles |
number of files in chain More... | |
Long64_t | fNEntries |
number of flux ntuple entries More... | |
Long64_t | fIEntry |
current flux ntuple entry More... | |
Long64_t | fNuTot |
cummulative # of entries (=fNEntries) More... | |
Long64_t | fFilePOTs |
of protons-on-target represented by all filesMore... | |
std::map< int, int > | fJobToMetaIndex |
quick lookup from job# to meta chain More... | |
double | fWeight |
current neutrino weight, =1 if generating unweighted entries More... | |
double | fMaxWeight |
max flux neutrino weight in input file More... | |
double | fMinMaxWeight |
user set lower limit on estimate More... | |
double | fMaxWeightScan |
initial estimate from scan More... | |
double | fMaxWeightInit |
max of scan & minmaxweight More... | |
double | fMaxWeightMax |
if "frozen" this is what bump would given More... | |
double | fMaxWgtFudge |
fudge factor for estimating max wgt More... | |
long int | fMaxWgtEntries |
of entries in estimating max wgtMore... | |
double | fMaxEFudge |
fudge factor for estmating max enu (0=> use fixed 120GeV) More... | |
long int | fMaxWgtExceeded |
track failures of estimate More... | |
int | fMaxWgtFailModel |
what to do ... 0=bump, 1=frozen, 2=abort More... | |
long int | fNUse |
how often to use same entry in a row More... | |
long int | fIUse |
current # of times an entry has been used More... | |
double | fSumWeight |
sum of weights for nus thrown so far More... | |
long int | fNNeutrinos |
number of flux neutrinos thrown so far More... | |
double | fEffPOTsPerNu |
what a entry is worth ... More... | |
double | fAccumPOTs |
POTs used so far. More... | |
bool | fGenWeighted |
does GenerateNext() give weights? More... | |
bool | fApplyTiltWeight |
wgt due to window normal not || beam More... | |
bool | fDetLocIsSet |
is a flux location (near/far) set? More... | |
double | fLengthUnits |
units for coord in user exchanges More... | |
double | fLengthScaleB2U |
scale factor beam (cm) –> user More... | |
double | fLengthScaleU2B |
scale factor beam user –> (cm) More... | |
TLorentzVector | fBeamZero |
beam origin in user coords More... | |
TLorentzRotation | fBeamRot |
rotation applied beam –> user coord More... | |
TLorentzRotation | fBeamRotInv |
bool | fIsSphere |
doing this on a sphere rather than a flat window? More... | |
TVector3 | fFluxWindowPtUser [3] |
user points of flux window More... | |
TLorentzVector | fFluxWindowBase |
base point for flux window - beam coord More... | |
TLorentzVector | fFluxWindowDir1 |
extent for flux window (direction 1) More... | |
TLorentzVector | fFluxWindowDir2 |
extent for flux window (direction 2) More... | |
double | fFluxWindowLen1 |
double | fFluxWindowLen2 |
TVector3 | fFluxWindowNormal |
normal direction for flux window – beam coord More... | |
TVector3 | fFluxSphereCenterUser |
center for flux sphere - user coords More... | |
TVector3 | fFluxSphereCenterBeam |
center for flux sphere - beam coords More... | |
double | fFluxSphereRadius |
radius for flux sphere More... | |
TLorentzVector | fgX4dkvtx |
decay 4-position beam coord More... | |
An implementation of the GENIE GFluxI interface ("flux driver") encapsulating reading/processing the "dk2nu" tree structure.
Nov 6, 2012
Copyright (c) 2012, GENIE Neutrino MC Generator Collaboration For the full text of the license visit http://copyright.genie-mc.org or see $GENIE/LICENSE
Definition at line 69 of file GDk2NuFlux.h.
GDk2NuFlux::GDk2NuFlux | ( | ) |
Definition at line 130 of file GDk2NuFlux.cxx.
References Initialize().
Referenced by genie::flux::GDk2NuFluxXMLHelper::~GDk2NuFluxXMLHelper().
GDk2NuFlux::~GDk2NuFlux | ( | ) |
Definition at line 138 of file GDk2NuFlux.cxx.
References CleanUp().
Referenced by genie::flux::GDk2NuFluxXMLHelper::~GDk2NuFluxXMLHelper().
genie::flux::GDk2NuFlux::GDk2NuFlux | ( | ) |
genie::flux::GDk2NuFlux::~GDk2NuFlux | ( | ) |
|
private |
Definition at line 1192 of file GDk2NuFlux.cxx.
References dkmeta, fCurDk2Nu, fCurDkMeta, fCurNuChoice, fFilePOTs, plot_validation_datamc::fname, fNFiles, fNuFluxTree, fNuMetaTree, fNuTot, fTreeNames, LOG, nentries, pFATAL, pINFO, bsim::DkMeta::pots, and SLOG.
Referenced by LoadBeamSimData(), and genie::flux::GDk2NuFluxXMLHelper::~GDk2NuFluxXMLHelper().
|
private |
|
staticinherited |
Definition at line 20 of file GFluxExposureI.cxx.
References genie::flux::kPOTs, genie::flux::kSeconds, and genie::flux::kUnknown.
Referenced by genie::flux::GFluxExposureI::GetExposureUnits().
void GDk2NuFlux::Beam2UserDir | ( | const TLorentzVector & | beamdir, |
TLorentzVector & | usrdir | ||
) | const |
Definition at line 1014 of file GDk2NuFlux.cxx.
References fBeamRot, and fLengthScaleB2U.
Referenced by genie::flux::GDk2NuFluxXMLHelper::~GDk2NuFluxXMLHelper().
void genie::flux::GDk2NuFlux::Beam2UserDir | ( | const TLorentzVector & | beamdir, |
TLorentzVector & | usrdir | ||
) | const |
void GDk2NuFlux::Beam2UserP4 | ( | const TLorentzVector & | beamp4, |
TLorentzVector & | usrp4 | ||
) | const |
Definition at line 1019 of file GDk2NuFlux.cxx.
References fBeamRot.
Referenced by GenerateNext_weighted(), and genie::flux::GDk2NuFluxXMLHelper::~GDk2NuFluxXMLHelper().
void genie::flux::GDk2NuFlux::Beam2UserP4 | ( | const TLorentzVector & | beamp4, |
TLorentzVector & | usrp4 | ||
) | const |
void GDk2NuFlux::Beam2UserPos | ( | const TLorentzVector & | beamxyz, |
TLorentzVector & | usrxyz | ||
) | const |
Definition at line 1009 of file GDk2NuFlux.cxx.
References fBeamRot, fBeamZero, and fLengthScaleB2U.
Referenced by GenerateNext_weighted(), SetFluxSphere(), and genie::flux::GDk2NuFluxXMLHelper::~GDk2NuFluxXMLHelper().
void genie::flux::GDk2NuFlux::Beam2UserPos | ( | const TLorentzVector & | beamxyz, |
TLorentzVector & | usrxyz | ||
) | const |
Definition at line 481 of file GDk2NuFlux.cxx.
References e, fEffPOTsPerNu, fFilePOTs, fFluxWindowDir1, fFluxWindowDir2, fNEntries, fNuFluxTree, LOG, Mag(), pNOTICE, and pWARN.
Referenced by LoadBeamSimData(), SetFluxWindow(), and genie::flux::GDk2NuFluxXMLHelper::~GDk2NuFluxXMLHelper().
Definition at line 1178 of file GDk2NuFlux.cxx.
References fCurNuChoice, genie::flux::GFluxFileConfigI::fICycle, fIEntry, fIUse, genie::flux::GFluxFileConfigI::fNCycles, fNUse, genie::flux::GFluxFileConfigI::fPdgCList, genie::flux::GFluxFileConfigI::fPdgCListRej, LOG, and pNOTICE.
Referenced by ~GDk2NuFlux(), and genie::flux::GDk2NuFluxXMLHelper::~GDk2NuFluxXMLHelper().
|
virtual |
reset state variables based on opt
Implements genie::GFluxI.
|
virtual |
reset state variables based on opt
Implements genie::GFluxI.
Definition at line 1049 of file GDk2NuFlux.cxx.
References fAccumPOTs, genie::flux::GFluxFileConfigI::fICycle, fNNeutrinos, fSumWeight, LOG, and pWARN.
Referenced by genie::flux::GDk2NuFluxXMLHelper::~GDk2NuFluxXMLHelper().
|
inlinevirtual |
true if no more flux nu's can be thrown (eg reaching end of beam sim ntuples)
Implements genie::GFluxI.
Definition at line 89 of file GDk2NuFlux.h.
Referenced by GenerateNext().
|
inlinevirtual |
true if no more flux nu's can be thrown (eg reaching end of beam sim ntuples)
Implements genie::GFluxI.
Definition at line 89 of file GDk2NuFlux.h.
|
inlinevirtual |
declare list of flux neutrinos that can be generated (for init. purposes)
Implements genie::GFluxI.
Definition at line 82 of file GDk2NuFlux.h.
|
inlinevirtual |
declare list of flux neutrinos that can be generated (for init. purposes)
Implements genie::GFluxI.
Definition at line 82 of file GDk2NuFlux.h.
|
inline |
Definition at line 237 of file GDk2NuFlux.h.
References make_static_page::AddFile(), plot_validation_datamc::fname, TMVAGlob::Initialize(), and string.
Referenced by GenerateNext_weighted().
|
inline |
Definition at line 237 of file GDk2NuFlux.h.
References make_static_page::AddFile(), plot_validation_datamc::fname, TMVAGlob::Initialize(), and string.
|
virtual |
generate the next flux neutrino (return false in err)
Implements genie::GFluxI.
|
virtual |
generate the next flux neutrino (return false in err)
Implements genie::GFluxI.
Definition at line 166 of file GDk2NuFlux.cxx.
References bsim::NuChoice::AsString(), bsim::Dk2Nu::AsString(), om::cout, febshutoff_auto::end, End(), MakeMiniprodValidationCuts::f, fCurDk2Nu, fCurNuChoice, fGenWeighted, fMaxWeight, fMaxWeightMax, fMaxWgtExceeded, fMaxWgtFailModel, fMaxWgtFudge, fWeight, GenerateNext_weighted(), genie::RandomGen::Instance(), LOG, genie::utils::print::P4AsShortString(), bsim::NuChoice::p4NuBeam, bsim::NuChoice::p4NuUser, bsim::NuChoice::pdgNu, pERROR, pFATAL, pNOTICE, PrintConfig(), r(), generate_hists::rnd, genie::RandomGen::RndFlux(), Weight(), genie::utils::print::X4AsString(), bsim::NuChoice::x4NuBeam, and bsim::NuChoice::x4NuUser.
Referenced by genie::flux::GDk2NuFluxXMLHelper::~GDk2NuFluxXMLHelper().
|
private |
user might modify list via SetFluxParticles() in order to reject certain flavors, even if they're found in the file. So don't make a big fuss. Spit out a single message and then stop reporting that flavor as problematic.
Definition at line 255 of file GDk2NuFlux.cxx.
References bsim::Dk2Nu::ancestor, ana::assert(), Beam2UserP4(), Beam2UserPos(), bsim::calcEnuWgt(), bsim::Dk2Nu::decay, genie::PDGCodeList::ExistsInPDGCodeList(), fAccumPOTs, fApplyTiltWeight, fCurDk2Nu, fCurNuChoice, fEffPOTsPerNu, fEnd, fFluxWindowBase, fFluxWindowDir1, fFluxWindowDir2, fgX4dkvtx, genie::flux::GFluxFileConfigI::fICycle, fIEntry, fIUse, FluxWindowNormal(), fMaxEv, fMaxWeight, genie::flux::GFluxFileConfigI::fNCycles, fNEntries, fNNeutrinos, fNuFluxTree, genie::flux::GFluxFileConfigI::fPdgCList, genie::flux::GFluxFileConfigI::fPdgCListRej, fSumWeight, fWeight, genie::flux::GFluxFileConfigI::fZ0, GetDecayDist(), bsim::NuChoice::impWgt, bsim::Dk2Nu::indxnu(), genie::RandomGen::Instance(), LOG, MoveToZ0(), bsim::Decay::nimpwt, bsim::Decay::ntype, bsim::Dk2Nu::overflow(), genie::utils::print::P4AsShortString(), bsim::NuChoice::p4NuBeam, bsim::NuChoice::p4NuUser, pDEBUG, bsim::NuChoice::pdgNu, pERROR, pFATAL, pINFO, pNOTICE, bsim::Dk2Nu::potnum, genie::PDGCodeList::push_back(), pWARN, ResetCurrent(), generate_hists::rnd, genie::RandomGen::RndFlux(), Unit(), bsim::Decay::vx, bsim::Decay::vy, bsim::Decay::vz, Weight(), genie::utils::print::X4AsString(), bsim::NuChoice::x4NuBeam, bsim::NuChoice::x4NuUser, and bsim::NuChoice::xyWgt.
Referenced by GenerateNext(), ScanForMaxWeight(), and genie::flux::GDk2NuFluxXMLHelper::~GDk2NuFluxXMLHelper().
|
private |
|
virtual |
set whether to generate weighted or unweighted neutrinos
Implements genie::GFluxI.
|
virtual |
set whether to generate weighted or unweighted neutrinos
Implements genie::GFluxI.
Definition at line 1063 of file GDk2NuFlux.cxx.
References fGenWeighted.
Referenced by genie::flux::GDk2NuFluxXMLHelper::~GDk2NuFluxXMLHelper().
TVector3 GDk2NuFlux::GetBeamCenter | ( | ) | const |
beam origin in user frame
Definition at line 971 of file GDk2NuFlux.cxx.
References fBeamZero.
Referenced by genie::flux::GDk2NuFluxXMLHelper::~GDk2NuFluxXMLHelper().
TVector3 genie::flux::GDk2NuFlux::GetBeamCenter | ( | ) | const |
beam origin in user frame
TRotation GDk2NuFlux::GetBeamRotation | ( | ) | const |
rotation to apply from beam->user
Definition at line 958 of file GDk2NuFlux.cxx.
References fBeamRot.
Referenced by genie::flux::GDk2NuFluxXMLHelper::~GDk2NuFluxXMLHelper().
TRotation genie::flux::GDk2NuFlux::GetBeamRotation | ( | ) | const |
rotation to apply from beam->user
|
virtual |
allow caller to copy current status / ntuple entry info in the output file by providing copies of internal info
Assumes that branch object pointers will not change which may require either a copy be made or, if using the class directly for reading the branch, one must force ROOT to not autodelete: myns::MyClassType* fCurrMyClass = new myns::MyClassType; myTree->SetBranchAddress("bname",&fCurMyClass); //? TBranch* b = myTree->GetBranch("bname"); //? b->SetAutoDelete(false);
ensure vectors are sized sufficiently (or use .push_back()) branchNames[i] = "bname" branchClassNames[i] = "myns::MyClassType" branchObjPointers[i] = (void**)
Reimplemented from genie::flux::GFluxFileConfigI.
|
virtual |
allow caller to copy current status / ntuple entry info in the output file by providing copies of internal info
Assumes that branch object pointers will not change which may require either a copy be made or, if using the class directly for reading the branch, one must force ROOT to not autodelete: myns::MyClassType* fCurrMyClass = new myns::MyClassType; myTree->SetBranchAddress("bname",&fCurMyClass); //? TBranch* b = myTree->GetBranch("bname"); //? b->SetAutoDelete(false);
ensure vectors are sized sufficiently (or use .push_back()) branchNames[i] = "bname" branchClassNames[i] = "myns::MyClassType" branchObjPointers[i] = (void**)
Reimplemented from genie::flux::GFluxFileConfigI.
Definition at line 740 of file GDk2NuFlux.cxx.
References fCurDk2Nu, and fCurNuChoice.
Referenced by genie::flux::GDk2NuFluxXMLHelper::~GDk2NuFluxXMLHelper().
double GDk2NuFlux::GetDecayDist | ( | ) | const |
dist (user units) from dk to current pos
Definition at line 437 of file GDk2NuFlux.cxx.
References fCurNuChoice, fgX4dkvtx, fLengthScaleB2U, and bsim::NuChoice::x4NuBeam.
Referenced by GenerateNext_weighted(), and genie::flux::GDk2NuFluxXMLHelper::~GDk2NuFluxXMLHelper().
double genie::flux::GDk2NuFlux::GetDecayDist | ( | ) | const |
dist (user units) from dk to current pos
|
inline |
Definition at line 104 of file GDk2NuFlux.h.
|
inline |
|
inline |
Definition at line 105 of file GDk2NuFlux.h.
|
inline |
|
inline |
index in chain
Definition at line 107 of file GDk2NuFlux.h.
|
inline |
index in chain
Definition at line 107 of file GDk2NuFlux.h.
|
inherited |
|
inherited |
what units are returned by GetTotalExposure?
Definition at line 59 of file GFluxExposureI.cxx.
References genie::flux::GFluxExposureI::AsString(), and genie::flux::GFluxExposureI::fEType.
Referenced by main().
std::vector<std::string> genie::flux::GDk2NuFlux::GetFileList | ( | ) |
list of files currently part of chain
std::vector< std::string > GDk2NuFlux::GetFileList | ( | ) |
list of files currently part of chain
Definition at line 1410 of file GDk2NuFlux.cxx.
References modify_metadata_with_upmu_sample_type::flist, fNuFluxTree, and next().
Referenced by PrintConfig(), and genie::flux::GDk2NuFluxXMLHelper::~GDk2NuFluxXMLHelper().
void GDk2NuFlux::GetFluxSphere | ( | TVector3 & | center, |
double & | radius, | ||
bool | inDetCoord = true |
||
) | const |
specification of a sphere
Definition at line 926 of file GDk2NuFlux.cxx.
References fFluxSphereCenterBeam, fFluxSphereCenterUser, and fFluxSphereRadius.
Referenced by genie::flux::GDk2NuFluxXMLHelper::~GDk2NuFluxXMLHelper().
void genie::flux::GDk2NuFlux::GetFluxSphere | ( | TVector3 & | center, |
double & | radius, | ||
bool | inDetCoord = true |
||
) | const |
specification of a sphere
void GDk2NuFlux::GetFluxWindow | ( | TVector3 & | p1, |
TVector3 & | p2, | ||
TVector3 & | p3 | ||
) | const |
3 points define a plane in beam coordinate
Definition at line 934 of file GDk2NuFlux.cxx.
References fFluxWindowPtUser.
Referenced by genie::flux::GDk2NuFluxXMLHelper::~GDk2NuFluxXMLHelper().
void genie::flux::GDk2NuFlux::GetFluxWindow | ( | TVector3 & | p1, |
TVector3 & | p2, | ||
TVector3 & | p3 | ||
) | const |
3 points define a plane in beam coordinate
|
virtual |
Reimplemented from genie::flux::GFluxFileConfigI.
|
virtual |
Reimplemented from genie::flux::GFluxFileConfigI.
Definition at line 758 of file GDk2NuFlux.cxx.
References fNuMetaTree.
Referenced by genie::flux::GDk2NuFluxXMLHelper::~GDk2NuFluxXMLHelper().
|
inline |
Definition at line 103 of file GDk2NuFlux.h.
|
inline |
|
virtual |
Implements genie::flux::GFluxExposureI.
Definition at line 144 of file GDk2NuFlux.cxx.
References UsedPOTs().
Referenced by genie::flux::GDk2NuFluxXMLHelper::~GDk2NuFluxXMLHelper().
|
virtual |
Implements genie::flux::GFluxExposureI.
|
inlinevirtualinherited |
Definition at line 54 of file GFluxFileConfigI.h.
References genie::flux::GFluxFileConfigI::fXMLbasename, genie::flux::GFluxFileConfigI::GetBranchInfo(), genie::flux::GFluxFileConfigI::GetMetaDataTree(), genie::flux::GFluxFileConfigI::PrintConfig(), genie::flux::GFluxFileConfigI::SetFluxParticles(), genie::flux::GFluxFileConfigI::SetNumOfCycles(), and genie::flux::GFluxFileConfigI::SetUpstreamZ().
returns corresponding index for current flux neutrino (e.g. for a flux ntuple returns the current entry number)
Implements genie::GFluxI.
Definition at line 90 of file GDk2NuFlux.h.
References MECModelEnuComparisons::opt.
returns corresponding index for current flux neutrino (e.g. for a flux ntuple returns the current entry number)
Implements genie::GFluxI.
Definition at line 90 of file GDk2NuFlux.h.
References MECModelEnuComparisons::opt.
Definition at line 1070 of file GDk2NuFlux.cxx.
References fAccumPOTs, fApplyTiltWeight, fCurDk2Nu, fCurDkMeta, fCurNuChoice, fDetLocIsSet, fEffPOTsPerNu, fEnd, fFilePOTs, fGenWeighted, genie::flux::GFluxFileConfigI::fICycle, fIEntry, fIsSphere, fIUse, fMaxEFudge, fMaxEv, fMaxWeight, fMaxWgtEntries, fMaxWgtExceeded, fMaxWgtFailModel, fMaxWgtFudge, fMinMaxWeight, fNEntries, fNFiles, fNNeutrinos, fNuFluxTree, fNuMetaTree, fNUse, fNuTot, fSumWeight, fTreeNames, LOG, pNOTICE, ResetCurrent(), SetDefaults(), SetLengthUnits(), and genie::utils::units::UnitFromString().
Referenced by GDk2NuFlux(), and genie::flux::GDk2NuFluxXMLHelper::~GDk2NuFluxXMLHelper().
|
inline |
flat window or sphere
Definition at line 208 of file GDk2NuFlux.h.
References plot_validation_datamc::p1, plot_validation_datamc::p2, make_associated_cosmic_defs::p3, and radius.
Referenced by PrintConfig().
|
inline |
flat window or sphere
Definition at line 208 of file GDk2NuFlux.h.
References plot_validation_datamc::p1, plot_validation_datamc::p2, make_associated_cosmic_defs::p3, and radius.
double GDk2NuFlux::LengthUnits | ( | void | ) | const |
Return user units.
Definition at line 1282 of file GDk2NuFlux.cxx.
References Munits::cm, fLengthScaleB2U, and genie::utils::units::UnitFromString().
Referenced by genie::flux::GDk2NuFluxXMLHelper::~GDk2NuFluxXMLHelper().
double genie::flux::GDk2NuFlux::LengthUnits | ( | void | ) | const |
Return user units.
|
virtualinherited |
Definition at line 34 of file GFluxFileConfigI.cxx.
References genie::flux::GFluxFileConfigI::LoadBeamSimData().
|
virtualinherited |
Definition at line 45 of file GFluxFileConfigI.cxx.
References genie::flux::GFluxFileConfigI::LoadBeamSimData().
|
virtual |
first is primary method for loading root flux ntuple files and config others are alternatives that can be overloaded but have sensible defaults to fall back to calling the vector version
Implements genie::flux::GFluxFileConfigI.
|
virtual |
first is primary method for loading root flux ntuple files and config others are alternatives that can be overloaded but have sensible defaults to fall back to calling the vector version
Implements genie::flux::GFluxFileConfigI.
Definition at line 572 of file GDk2NuFlux.cxx.
References AddFile(), CalcEffPOTsPerNu(), exit(), fAccumPOTs, fDetLocIsSet, genie::flux::GFluxFileConfigI::fICycle, fIEntry, shutoffs::filename, fIUse, fMaxWeight, fNEntries, fNNeutrinos, fNuFluxFilePatterns, fNuFluxTree, fNuMetaTree, fSumWeight, fTreeNames, genie::RandomGen::Instance(), LoadConfig(), LOG, submit_syst::pattern, pERROR, pFATAL, pINFO, pNOTICE, generate_hists::rnd, genie::RandomGen::RndFlux(), ScanForMaxWeight(), and string.
Referenced by genie::flux::GDk2NuFluxXMLHelper::~GDk2NuFluxXMLHelper().
bool genie::flux::GDk2NuFlux::LoadConfig | ( | std::string | cfg | ) |
load a named configuration
bool GDk2NuFlux::LoadConfig | ( | std::string | cfg | ) |
load a named configuration
Definition at line 1291 of file GDk2NuFlux.cxx.
References genie::flux::GDk2NuFluxXMLHelper::LoadConfig().
Referenced by LoadBeamSimData(), and genie::flux::GDk2NuFluxXMLHelper::~GDk2NuFluxXMLHelper().
Definition at line 506 of file GDk2NuFlux.cxx.
References ana::assert(), fCurDk2Nu, fCurDkMeta, fJobToMetaIndex, fNuMetaTree, bsim::DkMeta::job, site_stats_from_log::job, bsim::Dk2Nu::job, LOG, pERROR, and pFATAL.
Referenced by genie::flux::GDk2NuFluxXMLHelper::~GDk2NuFluxXMLHelper().
|
inlinevirtual |
declare the max flux neutrino energy that can be generated (for init. purposes)
Implements genie::GFluxI.
Definition at line 83 of file GDk2NuFlux.h.
References genie::utils::res::PdgCode().
|
inlinevirtual |
declare the max flux neutrino energy that can be generated (for init. purposes)
Implements genie::GFluxI.
Definition at line 83 of file GDk2NuFlux.h.
References genie::utils::res::PdgCode().
|
virtual |
returns the flux neutrino 4-momentum
Implements genie::GFluxI.
|
virtual |
returns the flux neutrino 4-momentum
Implements genie::GFluxI.
Definition at line 156 of file GDk2NuFlux.cxx.
References fCurNuChoice, and bsim::NuChoice::p4NuUser.
Referenced by genie::flux::GDk2NuFluxXMLHelper::~GDk2NuFluxXMLHelper().
void genie::flux::GDk2NuFlux::MoveToZ0 | ( | double | z0 | ) |
move ray origin to user coord Z0
void GDk2NuFlux::MoveToZ0 | ( | double | z0 | ) |
move ray origin to user coord Z0
Definition at line 445 of file GDk2NuFlux.cxx.
References e, fCurNuChoice, fLengthScaleU2B, LOG, genie::utils::print::P4AsShortString(), bsim::NuChoice::p4NuBeam, bsim::NuChoice::p4NuUser, pDEBUG, pWARN, scale, genie::utils::print::X4AsString(), bsim::NuChoice::x4NuBeam, and bsim::NuChoice::x4NuUser.
Referenced by GenerateNext_weighted(), and genie::flux::GDk2NuFluxXMLHelper::~GDk2NuFluxXMLHelper().
number of flux neutrinos looped so far
Implements genie::flux::GFluxExposureI.
Definition at line 126 of file GDk2NuFlux.h.
number of flux neutrinos looped so far
Implements genie::flux::GFluxExposureI.
Definition at line 126 of file GDk2NuFlux.h.
returns the flux neutrino pdg code
Implements genie::GFluxI.
Definition at line 151 of file GDk2NuFlux.cxx.
References fCurNuChoice, and bsim::NuChoice::pdgNu.
Referenced by genie::flux::GDk2NuFluxXMLHelper::~GDk2NuFluxXMLHelper().
returns the flux neutrino pdg code
Implements genie::GFluxI.
|
virtual |
returns the flux neutrino 4-position (note: expect SI rather than physical units)
Implements genie::GFluxI.
|
virtual |
returns the flux neutrino 4-position (note: expect SI rather than physical units)
Implements genie::GFluxI.
Definition at line 161 of file GDk2NuFlux.cxx.
References fCurNuChoice, and bsim::NuChoice::x4NuUser.
Referenced by genie::flux::GDk2NuFluxXMLHelper::~GDk2NuFluxXMLHelper().
double GDk2NuFlux::POT_curr | ( | void | ) |
current average POT (RWH?)
Definition at line 565 of file GDk2NuFlux.cxx.
References UsedPOTs().
Referenced by genie::flux::GDk2NuFluxXMLHelper::~GDk2NuFluxXMLHelper().
double genie::flux::GDk2NuFlux::POT_curr | ( | void | ) |
current average POT (RWH?)
|
virtual |
print the current configuration
Implements genie::flux::GFluxFileConfigI.
print the current configuration
Implements genie::flux::GFluxFileConfigI.
Definition at line 1299 of file GDk2NuFlux.cxx.
References fAccumPOTs, fApplyTiltWeight, fBeamRot, fBeamRotInv, fBeamZero, fDetLocIsSet, fEffPOTsPerNu, fFilePOTs, fFluxSphereCenterBeam, fFluxSphereCenterUser, fFluxSphereRadius, fFluxWindowBase, fFluxWindowDir1, fFluxWindowDir2, fFluxWindowLen1, fFluxWindowLen2, fFluxWindowPtUser, fGenWeighted, genie::flux::GFluxFileConfigI::fICycle, fIEntry, fIUse, fLengthScaleB2U, fLengthScaleU2B, fLengthUnits, modify_metadata_with_upmu_sample_type::flist, fMaxEv, fMaxWeight, fMaxWeightInit, fMaxWeightMax, fMaxWeightScan, fMaxWgtEntries, fMaxWgtExceeded, fMaxWgtFailModel, fMaxWgtFudge, fMinMaxWeight, genie::flux::GFluxFileConfigI::fNCycles, fNEntries, fNFiles, fNNeutrinos, fNuFluxFilePatterns, fNUse, genie::flux::GFluxFileConfigI::fPdgCList, genie::flux::GFluxFileConfigI::fPdgCListRej, fSumWeight, genie::flux::GFluxFileConfigI::fZ0, GetFileList(), MECModelEnuComparisons::i, IsFluxSphere(), LOG, pNOTICE, User2BeamPos(), genie::utils::print::Vec3AsString(), w, and genie::utils::print::X4AsString().
Referenced by GenerateNext(), and genie::flux::GDk2NuFluxXMLHelper::~GDk2NuFluxXMLHelper().
print current entry from leaves
Definition at line 1042 of file GDk2NuFlux.cxx.
References bsim::NuChoice::AsString(), bsim::Dk2Nu::AsString(), fCurDk2Nu, fCurNuChoice, LOG, and pNOTICE.
Referenced by genie::flux::GDk2NuFluxXMLHelper::~GDk2NuFluxXMLHelper().
Definition at line 1169 of file GDk2NuFlux.cxx.
References bsim::NuChoice::clear(), bsim::Dk2Nu::clear(), fCurDk2Nu, and fCurNuChoice.
Referenced by GenerateNext_weighted(), Initialize(), and genie::flux::GDk2NuFluxXMLHelper::~GDk2NuFluxXMLHelper().
scan for max flux weight (before generating unweighted flux neutrinos)
scan for max flux weight (before generating unweighted flux neutrinos)
Definition at line 792 of file GDk2NuFlux.cxx.
References enu, fCurNuChoice, fDetLocIsSet, fMaxEFudge, fMaxEv, fMaxWeight, fMaxWeightInit, fMaxWeightMax, fMaxWeightScan, fMaxWgtEntries, fMaxWgtExceeded, fMaxWgtFudge, fMinMaxWeight, GenerateNext_weighted(), LOG, bsim::NuChoice::p4NuBeam, pERROR, pNOTICE, confusionMatrixTree::t, Weight(), and wgt.
Referenced by LoadBeamSimData(), and genie::flux::GDk2NuFluxXMLHelper::~GDk2NuFluxXMLHelper().
|
inline |
apply | apply wgt due to tilt of flux window relative to beam |
Definition at line 179 of file GDk2NuFlux.h.
References g4zmq::apply().
|
inline |
apply | apply wgt due to tilt of flux window relative to beam |
Definition at line 179 of file GDk2NuFlux.h.
References g4zmq::apply().
void genie::flux::GDk2NuFlux::SetBeamCenter | ( | TVector3 | beam0 | ) |
void GDk2NuFlux::SetBeamCenter | ( | TVector3 | beam0 | ) |
Definition at line 950 of file GDk2NuFlux.cxx.
References fBeamZero.
Referenced by genie::flux::GDk2NuFluxXMLHelper::~GDk2NuFluxXMLHelper().
void GDk2NuFlux::SetBeamRotation | ( | TRotation | beamrot | ) |
< beam (0,0,0) relative to user frame, beam direction in user frame
Definition at line 943 of file GDk2NuFlux.cxx.
References fBeamRot, and fBeamRotInv.
Referenced by genie::flux::GDk2NuFluxXMLHelper::~GDk2NuFluxXMLHelper().
void genie::flux::GDk2NuFlux::SetBeamRotation | ( | TRotation | beamrot | ) |
< beam (0,0,0) relative to user frame, beam direction in user frame
Definition at line 1132 of file GDk2NuFlux.cxx.
References genie::kPdgAntiNuE, genie::kPdgAntiNuMu, genie::kPdgNuE, genie::kPdgNuMu, LOG, pNOTICE, genie::PDGCodeList::push_back(), SetEntryReuse(), genie::flux::GFluxFileConfigI::SetFluxParticles(), SetMaxEnergy(), genie::flux::GFluxFileConfigI::SetNumOfCycles(), genie::flux::GFluxFileConfigI::SetUpstreamZ(), genie::flux::GFluxFileConfigI::SetXMLFileBase(), and string.
Referenced by Initialize(), and genie::flux::GDk2NuFluxXMLHelper::~GDk2NuFluxXMLHelper().
Definition at line 856 of file GDk2NuFlux.cxx.
References fNUse, and CLHEP::L.
Referenced by SetDefaults(), and genie::flux::GDk2NuFluxXMLHelper::~GDk2NuFluxXMLHelper().
|
virtualinherited |
specify list of flux neutrino species
Definition at line 100 of file GFluxFileConfigI.cxx.
References genie::PDGCodeList::Copy(), genie::flux::GFluxFileConfigI::fPdgCList, LOG, and pINFO.
Referenced by genie::flux::GFluxFileConfigI::GetXMLFileBase(), main(), and SetDefaults().
void genie::flux::GDk2NuFlux::SetFluxSphere | ( | TVector3 | center, |
double | radius, | ||
bool | inDetCoord = true |
||
) |
specification of a sphere
void GDk2NuFlux::SetFluxSphere | ( | TVector3 | center, |
double | radius, | ||
bool | inDetCoord = true |
||
) |
specification of a sphere
Definition at line 902 of file GDk2NuFlux.cxx.
References ana::assert(), Beam2UserPos(), fFluxSphereCenterBeam, fFluxSphereCenterUser, fFluxSphereRadius, fIsSphere, LOG, pFATAL, radius, and User2BeamPos().
Referenced by genie::flux::GDk2NuFluxXMLHelper::~GDk2NuFluxXMLHelper().
void genie::flux::GDk2NuFlux::SetFluxWindow | ( | TVector3 | p1, |
TVector3 | p2, | ||
TVector3 | p3 | ||
) |
3 points define a plane (by default in user coordinates)
void GDk2NuFlux::SetFluxWindow | ( | TVector3 | p1, |
TVector3 | p2, | ||
TVector3 | p3 | ||
) |
3 points define a plane (by default in user coordinates)
Definition at line 865 of file GDk2NuFlux.cxx.
References CalcEffPOTsPerNu(), stan::math::dot(), e, fDetLocIsSet, fFluxWindowBase, fFluxWindowDir1, fFluxWindowDir2, fFluxWindowLen1, fFluxWindowLen2, fFluxWindowNormal, fFluxWindowPtUser, fIsSphere, LOG, PandAna.Demos.pi0_spectra::p0, plot_validation_datamc::p1, plot_validation_datamc::p2, pNOTICE, pWARN, Unit(), and User2BeamPos().
Referenced by genie::flux::GDk2NuFluxXMLHelper::~GDk2NuFluxXMLHelper().
|
inline |
toggle whether GenerateNext() returns weight=1 flux (initial default false)
Definition at line 163 of file GDk2NuFlux.h.
|
inline |
toggle whether GenerateNext() returns weight=1 flux (initial default false)
Definition at line 163 of file GDk2NuFlux.h.
void GDk2NuFlux::SetLengthUnits | ( | double | user_units | ) |
Set units assumed by user.
Definition at line 1248 of file GDk2NuFlux.cxx.
References Munits::cm, fBeamZero, fCurNuChoice, fFluxWindowPtUser, fLengthScaleB2U, fLengthScaleU2B, fLengthUnits, genie::utils::units::UnitFromString(), and bsim::NuChoice::x4NuUser.
Referenced by Initialize(), and genie::flux::GDk2NuFluxXMLHelper::~GDk2NuFluxXMLHelper().
void genie::flux::GDk2NuFlux::SetLengthUnits | ( | double | user_units | ) |
Set units assumed by user.
|
inline |
fudge | extra fudge factor in estimating maximum energy |
Definition at line 170 of file GDk2NuFlux.h.
|
inline |
fudge | extra fudge factor in estimating maximum energy |
Definition at line 170 of file GDk2NuFlux.h.
void genie::flux::GDk2NuFlux::SetMaxEnergy | ( | double | Ev | ) |
specify max flx nu energy
void GDk2NuFlux::SetMaxEnergy | ( | double | Ev | ) |
specify max flx nu energy
Definition at line 848 of file GDk2NuFlux.cxx.
References fMaxEv, LOG, and pINFO.
Referenced by SetDefaults(), and genie::flux::GDk2NuFluxXMLHelper::~GDk2NuFluxXMLHelper().
i | 0=bump, 1=leave frozen, 2=abort |
Definition at line 175 of file GDk2NuFlux.h.
References MECModelEnuComparisons::i.
i | 0=bump, 1=leave frozen, 2=abort |
Definition at line 175 of file GDk2NuFlux.h.
References MECModelEnuComparisons::i.
|
inline |
nentries | configuration when estimating max weight |
Definition at line 168 of file GDk2NuFlux.h.
References nentries.
|
inline |
nentries | configuration when estimating max weight |
Definition at line 168 of file GDk2NuFlux.h.
References nentries.
|
inline |
minwgt | user floor on estimating maxweight (to avoid bumping) |
Definition at line 173 of file GDk2NuFlux.h.
|
inline |
minwgt | user floor on estimating maxweight (to avoid bumping) |
Definition at line 173 of file GDk2NuFlux.h.
limit cycling through input files
Definition at line 86 of file GFluxFileConfigI.cxx.
References genie::flux::GFluxFileConfigI::fNCycles, and CLHEP::L.
Referenced by genie::flux::GFluxFileConfigI::GetXMLFileBase(), main(), SetDefaults(), and genie::flux::GSimpleNtpFlux::SetDefaults().
|
inline |
Definition at line 154 of file GDk2NuFlux.h.
References plot_validation_datamc::fname, and string.
|
inline |
Definition at line 154 of file GDk2NuFlux.h.
References plot_validation_datamc::fname, and string.
|
virtualinherited |
set flux neutrino initial z position (upstream of the detector) pushed back from the normal flux window
Definition at line 74 of file GFluxFileConfigI.cxx.
References genie::flux::GFluxFileConfigI::fZ0.
Referenced by fill_simple(), genie::flux::GFluxFileConfigI::GetXMLFileBase(), main(), SetDefaults(), and genie::flux::GSimpleNtpFlux::SetDefaults().
|
virtualinherited |
Definition at line 30 of file GFluxFileConfigI.cxx.
References genie::flux::GFluxFileConfigI::fXMLbasename.
Referenced by SetDefaults().
TVector3 GDk2NuFlux::SphereNormal | ( | ) | const |
Definition at line 978 of file GDk2NuFlux.cxx.
References dir, fCurNuChoice, fFluxSphereCenterBeam, and bsim::NuChoice::x4NuBeam.
Referenced by genie::flux::GDk2NuFluxXMLHelper::~GDk2NuFluxXMLHelper().
TVector3 genie::flux::GDk2NuFlux::SphereNormal | ( | ) | const |
|
staticinherited |
Definition at line 31 of file GFluxExposureI.cxx.
References MECModelEnuComparisons::i, genie::flux::kPOTs, genie::flux::kSeconds, and genie::flux::kUnknown.
|
inline |
integrated weight for flux neutrinos looped so far
Definition at line 127 of file GDk2NuFlux.h.
References site_stats_from_log::filenames, and string.
|
inline |
integrated weight for flux neutrinos looped so far
Definition at line 127 of file GDk2NuFlux.h.
References site_stats_from_log::filenames, and string.
double genie::flux::GDk2NuFlux::UsedPOTs | ( | void | ) | const |
double GDk2NuFlux::UsedPOTs | ( | void | ) | const |
Definition at line 552 of file GDk2NuFlux.cxx.
References fAccumPOTs, fNuFluxTree, LOG, and pWARN.
Referenced by GetTotalExposure(), POT_curr(), and genie::flux::GDk2NuFluxXMLHelper::~GDk2NuFluxXMLHelper().
void genie::flux::GDk2NuFlux::User2BeamDir | ( | const TLorentzVector & | usrdir, |
TLorentzVector & | beamdir | ||
) | const |
void GDk2NuFlux::User2BeamDir | ( | const TLorentzVector & | usrdir, |
TLorentzVector & | beamdir | ||
) | const |
Definition at line 1030 of file GDk2NuFlux.cxx.
References fBeamRotInv, and fLengthScaleU2B.
Referenced by genie::flux::GDk2NuFluxXMLHelper::~GDk2NuFluxXMLHelper().
void genie::flux::GDk2NuFlux::User2BeamP4 | ( | const TLorentzVector & | usrp4, |
TLorentzVector & | beamp4 | ||
) | const |
void GDk2NuFlux::User2BeamP4 | ( | const TLorentzVector & | usrp4, |
TLorentzVector & | beamp4 | ||
) | const |
Definition at line 1035 of file GDk2NuFlux.cxx.
References fBeamRotInv.
Referenced by genie::flux::GDk2NuFluxXMLHelper::~GDk2NuFluxXMLHelper().
void GDk2NuFlux::User2BeamPos | ( | const TLorentzVector & | usrxyz, |
TLorentzVector & | beamxyz | ||
) | const |
Definition at line 1025 of file GDk2NuFlux.cxx.
References fBeamRotInv, fBeamZero, and fLengthScaleU2B.
Referenced by PrintConfig(), SetFluxSphere(), SetFluxWindow(), and genie::flux::GDk2NuFluxXMLHelper::~GDk2NuFluxXMLHelper().
void genie::flux::GDk2NuFlux::User2BeamPos | ( | const TLorentzVector & | usrxyz, |
TLorentzVector & | beamxyz | ||
) | const |
|
inlinevirtual |
returns the flux neutrino weight (if any)
Implements genie::GFluxI.
Definition at line 86 of file GDk2NuFlux.h.
|
inlinevirtual |
returns the flux neutrino weight (if any)
Implements genie::GFluxI.
Definition at line 86 of file GDk2NuFlux.h.
Referenced by GenerateNext(), GenerateNext_weighted(), and ScanForMaxWeight().
|
private |
POTs used so far.
Definition at line 304 of file GDk2NuFlux.h.
Referenced by Clear(), GenerateNext_weighted(), Initialize(), LoadBeamSimData(), PrintConfig(), and UsedPOTs().
|
private |
wgt due to window normal not || beam
Definition at line 307 of file GDk2NuFlux.h.
Referenced by GenerateNext_weighted(), Initialize(), and PrintConfig().
|
private |
rotation applied beam –> user coord
Definition at line 315 of file GDk2NuFlux.h.
Referenced by Beam2UserDir(), Beam2UserP4(), Beam2UserPos(), GetBeamRotation(), PrintConfig(), and SetBeamRotation().
|
private |
Definition at line 316 of file GDk2NuFlux.h.
Referenced by PrintConfig(), SetBeamRotation(), User2BeamDir(), User2BeamP4(), and User2BeamPos().
|
private |
beam origin in user coords
Definition at line 314 of file GDk2NuFlux.h.
Referenced by Beam2UserPos(), GetBeamCenter(), PrintConfig(), SetBeamCenter(), SetLengthUnits(), and User2BeamPos().
|
private |
Definition at line 275 of file GDk2NuFlux.h.
Referenced by AddFile(), GenerateNext(), GenerateNext_weighted(), GetBranchInfo(), Initialize(), LoadDkMeta(), PrintCurrent(), and ResetCurrent().
|
private |
Definition at line 276 of file GDk2NuFlux.h.
Referenced by AddFile(), Initialize(), and LoadDkMeta().
|
private |
Definition at line 277 of file GDk2NuFlux.h.
Referenced by AddFile(), CleanUp(), GenerateNext(), GenerateNext_weighted(), GetBranchInfo(), GetDecayDist(), Initialize(), Momentum(), MoveToZ0(), PdgCode(), Position(), PrintCurrent(), ResetCurrent(), ScanForMaxWeight(), SetLengthUnits(), and SphereNormal().
|
private |
is a flux location (near/far) set?
Definition at line 308 of file GDk2NuFlux.h.
Referenced by Initialize(), LoadBeamSimData(), PrintConfig(), ScanForMaxWeight(), and SetFluxWindow().
|
private |
what a entry is worth ...
Definition at line 303 of file GDk2NuFlux.h.
Referenced by CalcEffPOTsPerNu(), GenerateNext_weighted(), Initialize(), and PrintConfig().
|
private |
end condition reached
Definition at line 257 of file GDk2NuFlux.h.
Referenced by GenerateNext_weighted(), and Initialize().
|
private |
Definition at line 283 of file GDk2NuFlux.h.
Referenced by AddFile(), CalcEffPOTsPerNu(), Initialize(), and PrintConfig().
|
private |
center for flux sphere - beam coords
Definition at line 327 of file GDk2NuFlux.h.
Referenced by GetFluxSphere(), PrintConfig(), SetFluxSphere(), and SphereNormal().
|
private |
center for flux sphere - user coords
Definition at line 326 of file GDk2NuFlux.h.
Referenced by GetFluxSphere(), PrintConfig(), and SetFluxSphere().
|
private |
radius for flux sphere
Definition at line 328 of file GDk2NuFlux.h.
Referenced by GetFluxSphere(), PrintConfig(), and SetFluxSphere().
|
private |
base point for flux window - beam coord
Definition at line 320 of file GDk2NuFlux.h.
Referenced by GenerateNext_weighted(), PrintConfig(), and SetFluxWindow().
|
private |
extent for flux window (direction 1)
Definition at line 321 of file GDk2NuFlux.h.
Referenced by CalcEffPOTsPerNu(), GenerateNext_weighted(), PrintConfig(), and SetFluxWindow().
|
private |
extent for flux window (direction 2)
Definition at line 322 of file GDk2NuFlux.h.
Referenced by CalcEffPOTsPerNu(), GenerateNext_weighted(), PrintConfig(), and SetFluxWindow().
|
private |
Definition at line 323 of file GDk2NuFlux.h.
Referenced by PrintConfig(), and SetFluxWindow().
|
private |
Definition at line 324 of file GDk2NuFlux.h.
Referenced by PrintConfig(), and SetFluxWindow().
|
private |
normal direction for flux window – beam coord
Definition at line 325 of file GDk2NuFlux.h.
Referenced by SetFluxWindow().
|
private |
user points of flux window
Definition at line 319 of file GDk2NuFlux.h.
Referenced by GetFluxWindow(), PrintConfig(), SetFluxWindow(), and SetLengthUnits().
|
private |
does GenerateNext() give weights?
Definition at line 306 of file GDk2NuFlux.h.
Referenced by GenerateNext(), GenerateWeighted(), Initialize(), and PrintConfig().
|
private |
decay 4-position beam coord
Definition at line 330 of file GDk2NuFlux.h.
Referenced by GenerateNext_weighted(), and GetDecayDist().
|
protectedinherited |
current file cycle default 0 = infinitely
Definition at line 98 of file GFluxFileConfigI.h.
Referenced by CleanUp(), genie::flux::GSimpleNtpFlux::CleanUp(), Clear(), genie::flux::GSimpleNtpFlux::Clear(), GenerateNext_weighted(), genie::flux::GSimpleNtpFlux::GenerateNext_weighted(), Initialize(), genie::flux::GSimpleNtpFlux::Initialize(), LoadBeamSimData(), genie::flux::GSimpleNtpFlux::LoadBeamSimData(), and PrintConfig().
|
private |
current flux ntuple entry
Definition at line 281 of file GDk2NuFlux.h.
Referenced by CleanUp(), GenerateNext_weighted(), Initialize(), LoadBeamSimData(), and PrintConfig().
|
private |
doing this on a sphere rather than a flat window?
Definition at line 318 of file GDk2NuFlux.h.
Referenced by Initialize(), SetFluxSphere(), and SetFluxWindow().
|
private |
current # of times an entry has been used
Definition at line 300 of file GDk2NuFlux.h.
Referenced by CleanUp(), GenerateNext_weighted(), Initialize(), LoadBeamSimData(), and PrintConfig().
quick lookup from job# to meta chain
Definition at line 285 of file GDk2NuFlux.h.
Referenced by LoadDkMeta().
|
private |
scale factor beam (cm) –> user
Definition at line 311 of file GDk2NuFlux.h.
Referenced by Beam2UserDir(), Beam2UserPos(), GetDecayDist(), LengthUnits(), PrintConfig(), and SetLengthUnits().
|
private |
scale factor beam user –> (cm)
Definition at line 312 of file GDk2NuFlux.h.
Referenced by MoveToZ0(), PrintConfig(), SetLengthUnits(), User2BeamDir(), and User2BeamPos().
|
private |
units for coord in user exchanges
Definition at line 310 of file GDk2NuFlux.h.
Referenced by PrintConfig(), and SetLengthUnits().
|
private |
fudge factor for estmating max enu (0=> use fixed 120GeV)
Definition at line 295 of file GDk2NuFlux.h.
Referenced by Initialize(), and ScanForMaxWeight().
|
private |
maximum energy
Definition at line 255 of file GDk2NuFlux.h.
Referenced by GenerateNext_weighted(), Initialize(), PrintConfig(), ScanForMaxWeight(), and SetMaxEnergy().
|
private |
max flux neutrino weight in input file
Definition at line 288 of file GDk2NuFlux.h.
Referenced by GenerateNext(), GenerateNext_weighted(), Initialize(), LoadBeamSimData(), PrintConfig(), and ScanForMaxWeight().
|
private |
max of scan & minmaxweight
Definition at line 291 of file GDk2NuFlux.h.
Referenced by PrintConfig(), and ScanForMaxWeight().
|
private |
if "frozen" this is what bump would given
Definition at line 292 of file GDk2NuFlux.h.
Referenced by GenerateNext(), PrintConfig(), and ScanForMaxWeight().
|
private |
initial estimate from scan
Definition at line 290 of file GDk2NuFlux.h.
Referenced by PrintConfig(), and ScanForMaxWeight().
|
private |
Definition at line 294 of file GDk2NuFlux.h.
Referenced by Initialize(), PrintConfig(), and ScanForMaxWeight().
|
private |
track failures of estimate
Definition at line 296 of file GDk2NuFlux.h.
Referenced by GenerateNext(), Initialize(), PrintConfig(), and ScanForMaxWeight().
|
private |
what to do ... 0=bump, 1=frozen, 2=abort
Definition at line 297 of file GDk2NuFlux.h.
Referenced by GenerateNext(), Initialize(), and PrintConfig().
|
private |
fudge factor for estimating max wgt
Definition at line 293 of file GDk2NuFlux.h.
Referenced by GenerateNext(), Initialize(), PrintConfig(), and ScanForMaxWeight().
|
private |
user set lower limit on estimate
Definition at line 289 of file GDk2NuFlux.h.
Referenced by Initialize(), PrintConfig(), and ScanForMaxWeight().
|
protectedinherited |
Definition at line 97 of file GFluxFileConfigI.h.
Referenced by CleanUp(), genie::flux::GSimpleNtpFlux::CleanUp(), GenerateNext_weighted(), genie::flux::GSimpleNtpFlux::GenerateNext_weighted(), PrintConfig(), and genie::flux::GFluxFileConfigI::SetNumOfCycles().
|
private |
number of flux ntuple entries
Definition at line 280 of file GDk2NuFlux.h.
Referenced by CalcEffPOTsPerNu(), GenerateNext_weighted(), Initialize(), LoadBeamSimData(), and PrintConfig().
|
private |
number of files in chain
Definition at line 279 of file GDk2NuFlux.h.
Referenced by AddFile(), Initialize(), and PrintConfig().
|
private |
number of flux neutrinos thrown so far
Definition at line 302 of file GDk2NuFlux.h.
Referenced by Clear(), GenerateNext_weighted(), Initialize(), LoadBeamSimData(), and PrintConfig().
|
private |
(potentially wildcarded) path(s)
Definition at line 269 of file GDk2NuFlux.h.
Referenced by LoadBeamSimData(), and PrintConfig().
|
private |
TTree // REF ONLY!
Definition at line 272 of file GDk2NuFlux.h.
Referenced by AddFile(), CalcEffPOTsPerNu(), GenerateNext_weighted(), GetFileList(), Initialize(), LoadBeamSimData(), and UsedPOTs().
|
private |
TTree // REF ONLY!
Definition at line 273 of file GDk2NuFlux.h.
Referenced by AddFile(), GetMetaDataTree(), Initialize(), LoadBeamSimData(), and LoadDkMeta().
|
private |
how often to use same entry in a row
Definition at line 299 of file GDk2NuFlux.h.
Referenced by CleanUp(), Initialize(), PrintConfig(), and SetEntryReuse().
|
private |
cummulative # of entries (=fNEntries)
Definition at line 282 of file GDk2NuFlux.h.
Referenced by AddFile(), and Initialize().
|
protectedinherited |
list of neutrino pdg-codes to generate
Definition at line 94 of file GFluxFileConfigI.h.
Referenced by CleanUp(), genie::flux::GSimpleNtpFlux::CleanUp(), GenerateNext_weighted(), genie::flux::GSimpleNtpFlux::GenerateNext_weighted(), PrintConfig(), genie::flux::GSimpleNtpFlux::ProcessMeta(), and genie::flux::GFluxFileConfigI::SetFluxParticles().
|
protectedinherited |
list of nu pdg-codes seen but rejected
Definition at line 95 of file GFluxFileConfigI.h.
Referenced by CleanUp(), genie::flux::GSimpleNtpFlux::CleanUp(), GenerateNext_weighted(), genie::flux::GSimpleNtpFlux::GenerateNext_weighted(), and PrintConfig().
|
private |
sum of weights for nus thrown so far
Definition at line 301 of file GDk2NuFlux.h.
Referenced by Clear(), GenerateNext_weighted(), Initialize(), LoadBeamSimData(), and PrintConfig().
|
private |
pair of names "dk2nuTree", "dkmetaTree"
Definition at line 271 of file GDk2NuFlux.h.
Referenced by AddFile(), Initialize(), and LoadBeamSimData().
|
private |
current neutrino weight, =1 if generating unweighted entries
Definition at line 287 of file GDk2NuFlux.h.
Referenced by GenerateNext(), and GenerateNext_weighted().
|
protectedinherited |
XML file that might hold config param_sets.
Definition at line 96 of file GFluxFileConfigI.h.
Referenced by genie::flux::GFluxFileConfigI::GetXMLFileBase(), and genie::flux::GFluxFileConfigI::SetXMLFileBase().
|
protectedinherited |
configurable starting z position for each flux neutrino (in detector coord system)
Definition at line 100 of file GFluxFileConfigI.h.
Referenced by GenerateNext_weighted(), genie::flux::GSimpleNtpFlux::GenerateNext_weighted(), PrintConfig(), and genie::flux::GFluxFileConfigI::SetUpstreamZ().