GENIEGenerator
|
A GENIE flux driver encapsulating the NuMI neutrino flux. It reads-in the official GNUMI neutrino flux ntuples. Supports both geant3 and geant4 formats. More...
#include <GNuMIFlux.h>
Public Types | |
enum | EStdFluxWindow { kMinosNearDet, kMinosFarDet, kMinosNearRock, kMinosFarRock, kMinosNearCenter, kMinosFarCenter } |
typedef enum genie::flux::GNuMIFlux::EStdFluxWindow | StdFluxWindow_t |
Public Member Functions | |
GNuMIFlux () | |
~GNuMIFlux () | |
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 GNuMIFluxPassThroughInfo & | PassThroughInfo (void) |
GNuMIFluxPassThroughInfo. More... | |
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 |
virtual long int | NFluxNeutrinos () const |
of rays generatedMore... | |
double | POT_curr (void) |
current average POT (RWH?) More... | |
double | UsedPOTs (void) const |
of protons-on-target usedMore... | |
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 () |
bool | LoadConfig (string cfg) |
load a named configuration More... | |
void | SetMaxEnergy (double Ev) |
specify maximum flx neutrino 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 | SetTreeName (string name) |
set input tree name (default: "h10") More... | |
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 | 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 | SetFluxWindow (StdFluxWindow_t stdwindow, double padding=0) |
return false if unhandled 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 | UseFluxAtNearDetCenter (void) |
force weights at MINOS detector "center" as found in ntuple More... | |
void | UseFluxAtFarDetCenter (void) |
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 () |
Public Member Functions inherited from genie::GFluxI | |
virtual | ~GFluxI () |
Public Member Functions inherited from genie::flux::GFluxExposureI | |
GFluxExposureI (genie::flux::Exposure_t etype) | |
virtual | ~GFluxExposureI () |
const char * | GetExposureUnits () const |
what units are returned by GetTotalExposure? More... | |
genie::flux::Exposure_t | GetExposureType () const |
Public Member Functions inherited from genie::flux::GFluxFileConfigI | |
GFluxFileConfigI () | |
virtual | ~GFluxFileConfigI () |
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... | |
Private Member Functions | |
bool | GenerateNext_weighted (void) |
void | Initialize (void) |
void | SetDefaults (void) |
void | CleanUp (void) |
void | ResetCurrent (void) |
void | AddFile (TTree *tree, string fname) |
void | CalcEffPOTsPerNu (void) |
Private Attributes | |
double | fMaxEv |
maximum energy More... | |
bool | fEnd |
end condition reached More... | |
std::vector< string > | fNuFluxFilePatterns |
(potentially wildcarded) path(s) More... | |
string | fNuFluxTreeName |
Tree name "h10" (g3) or "nudata" (g4) More... | |
TChain * | fNuFluxTree |
TTree in g3numi or g4numi // REF ONLY! More... | |
string | fNuFluxGen |
"g3numi" "g4numi" or "flugg" More... | |
g3numi * | fG3NuMI |
g3numi ntuple More... | |
g4numi * | fG4NuMI |
g4numi ntuple More... | |
flugg * | fFlugg |
flugg ntuple More... | |
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... | |
double | fWeight |
current neutrino weight, =1 if generating unweighted entries More... | |
double | fMaxWeight |
max flux neutrino weight in input file 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 | 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... | |
int | fUseFluxAtDetCenter |
use flux at near (-1) or far (+1) det center from ntuple? 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 |
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 | fWindowNormal |
normal direction for flux window More... | |
TLorentzVector | fgX4dkvtx |
decay 4-position beam coord More... | |
GNuMIFluxPassThroughInfo * | fCurEntry |
copy of current ntuple entry info (owned structure) More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from genie::flux::GFluxExposureI | |
static const char * | AsString (genie::flux::Exposure_t etype) |
static genie::flux::Exposure_t | StringToEnum (const char *chars, int maxChar=0) |
Protected Member Functions inherited from genie::GFluxI | |
GFluxI () | |
Protected Attributes inherited from genie::flux::GFluxFileConfigI | |
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 |
A GENIE flux driver encapsulating the NuMI neutrino flux. It reads-in the official GNUMI neutrino flux ntuples. Supports both geant3 and geant4 formats.
An implementation of the GFluxI interface that provides NuMI flux
Definition at line 217 of file GNuMIFlux.h.
Enumerator | |
---|---|
kMinosNearDet | |
kMinosFarDet | |
kMinosNearRock | |
kMinosFarRock | |
kMinosNearCenter | |
kMinosFarCenter |
Definition at line 330 of file GNuMIFlux.h.
GNuMIFlux::GNuMIFlux | ( | ) |
Definition at line 113 of file GNuMIFlux.cxx.
References Initialize().
GNuMIFlux::~GNuMIFlux | ( | ) |
Definition at line 119 of file GNuMIFlux.cxx.
|
private |
Definition at line 1133 of file GNuMIFlux.cxx.
void GNuMIFlux::Beam2UserDir | ( | const TLorentzVector & | beamdir, |
TLorentzVector & | usrdir | ||
) | const |
Definition at line 976 of file GNuMIFlux.cxx.
void GNuMIFlux::Beam2UserP4 | ( | const TLorentzVector & | beamp4, |
TLorentzVector & | usrp4 | ||
) | const |
Definition at line 981 of file GNuMIFlux.cxx.
void GNuMIFlux::Beam2UserPos | ( | const TLorentzVector & | beamxyz, |
TLorentzVector & | usrxyz | ||
) | const |
Definition at line 971 of file GNuMIFlux.cxx.
|
private |
Definition at line 439 of file GNuMIFlux.cxx.
References e, kRDET, LOG, pNOTICE, and pWARN.
|
private |
Definition at line 1115 of file GNuMIFlux.cxx.
|
virtual |
reset state variables based on opt
Implements genie::GFluxI.
Definition at line 1009 of file GNuMIFlux.cxx.
|
inlinevirtual |
true if no more flux nu's can be thrown (eg reaching end of beam sim ntuples)
Implements genie::GFluxI.
Definition at line 237 of file GNuMIFlux.h.
References fEnd.
|
inlinevirtual |
declare list of flux neutrinos that can be generated (for init. purposes)
Implements genie::GFluxI.
Definition at line 230 of file GNuMIFlux.h.
References genie::flux::GFluxFileConfigI::fPdgCList.
|
inline |
Definition at line 368 of file GNuMIFlux.h.
References fWindowNormal.
|
virtual |
generate the next flux neutrino (return false in err)
Implements genie::GFluxI.
Definition at line 139 of file GNuMIFlux.cxx.
References End(), genie::RandomGen::Instance(), LOG, genie::utils::print::P4AsShortString(), pERROR, pNOTICE, genie::RandomGen::RndFlux(), and genie::utils::print::X4AsString().
|
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 204 of file GNuMIFlux.cxx.
References genie::RandomGen::Instance(), LOG, genie::utils::print::P4AsShortString(), pDEBUG, pERROR, pFATAL, pINFO, pWARN, genie::RandomGen::RndFlux(), and genie::utils::print::X4AsString().
|
virtual |
set whether to generate weighted or unweighted neutrinos
Implements genie::GFluxI.
Definition at line 1023 of file GNuMIFlux.cxx.
TVector3 GNuMIFlux::GetBeamCenter | ( | ) | const |
beam origin in user frame
Definition at line 941 of file GNuMIFlux.cxx.
TRotation GNuMIFlux::GetBeamRotation | ( | ) | const |
rotation to apply from beam->user
Definition at line 928 of file GNuMIFlux.cxx.
|
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 663 of file GNuMIFlux.cxx.
double GNuMIFlux::GetDecayDist | ( | ) | const |
dist (user units) from dk to current pos
Definition at line 395 of file GNuMIFlux.cxx.
Referenced by genie::flux::GFluxBlender::GenerateNext().
|
inline |
std::vector< std::string > GNuMIFlux::GetFileList | ( | ) |
list of files currently part of chain
Definition at line 2436 of file GNuMIFlux.cxx.
References fNuFluxTree.
Referenced by PrintConfig().
void GNuMIFlux::GetFluxWindow | ( | TVector3 & | p1, |
TVector3 & | p2, | ||
TVector3 & | p3 | ||
) | const |
3 points define a plane in beam coordinate
Definition at line 904 of file GNuMIFlux.cxx.
|
virtual |
Reimplemented from genie::flux::GFluxFileConfigI.
Definition at line 677 of file GNuMIFlux.cxx.
|
virtual |
Implements genie::flux::GFluxExposureI.
Definition at line 125 of file GNuMIFlux.cxx.
|
inlinevirtual |
returns corresponding index for current flux neutrino (e.g. for a flux ntuple returns the current entry number)
Implements genie::GFluxI.
Definition at line 238 of file GNuMIFlux.h.
References fIEntry.
|
private |
Definition at line 1030 of file GNuMIFlux.cxx.
References LOG, pNOTICE, and genie::utils::units::UnitFromString().
double GNuMIFlux::LengthUnits | ( | void | ) | const |
Return user units.
Definition at line 1240 of file GNuMIFlux.cxx.
References genie::units::cm, and genie::utils::units::UnitFromString().
|
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 484 of file GNuMIFlux.cxx.
References genie::RandomGen::Instance(), LOG, pERROR, pFATAL, pINFO, pNOTICE, and genie::RandomGen::RndFlux().
bool GNuMIFlux::LoadConfig | ( | string | cfg | ) |
load a named configuration
Definition at line 2324 of file GNuMIFlux.cxx.
References genie::flux::GNuMIFluxXMLHelper::LoadConfig(), and genie::flux::GFluxFileConfigI::SetXMLFileBase().
|
inlinevirtual |
declare the max flux neutrino energy that can be generated (for init. purposes)
Implements genie::GFluxI.
Definition at line 231 of file GNuMIFlux.h.
References fMaxEv.
|
inlinevirtual |
returns the flux neutrino 4-momentum
Implements genie::GFluxI.
Definition at line 235 of file GNuMIFlux.h.
References fCurEntry, and genie::flux::GNuMIFluxPassThroughInfo::fgP4User.
void GNuMIFlux::MoveToZ0 | ( | double | z0 | ) |
move ray origin to user coord Z0
Definition at line 403 of file GNuMIFlux.cxx.
References e, LOG, genie::utils::print::P4AsShortString(), pNOTICE, pWARN, and genie::utils::print::X4AsString().
|
virtual |
number of flux neutrinos ray generated so far
Implements genie::flux::GFluxExposureI.
Definition at line 132 of file GNuMIFlux.cxx.
|
inline |
|
inlinevirtual |
returns the flux neutrino pdg code
Implements genie::GFluxI.
Definition at line 233 of file GNuMIFlux.h.
References fCurEntry, and genie::flux::GNuMIFluxPassThroughInfo::fgPdgC.
|
inlinevirtual |
returns the flux neutrino 4-position (note: expect SI rather than physical units)
Implements genie::GFluxI.
Definition at line 236 of file GNuMIFlux.h.
References fCurEntry, and genie::flux::GNuMIFluxPassThroughInfo::fgX4User.
double GNuMIFlux::POT_curr | ( | void | ) |
current average POT (RWH?)
Definition at line 477 of file GNuMIFlux.cxx.
|
virtual |
print the current configuration
Implements genie::flux::GFluxFileConfigI.
Definition at line 2336 of file GNuMIFlux.cxx.
References fAccumPOTs, fBeamRot, fBeamRotInv, fBeamZero, fDetLocIsSet, fEffPOTsPerNu, fFilePOTs, fFlugg, fFluxWindowBase, fFluxWindowDir1, fFluxWindowDir2, fFluxWindowLen1, fFluxWindowLen2, fFluxWindowPtUser, fG3NuMI, fG4NuMI, fGenWeighted, genie::flux::GFluxFileConfigI::fICycle, fIEntry, fIUse, fLengthScaleB2U, fLengthScaleU2B, fLengthUnits, fMaxEv, fMaxWeight, fMaxWgtEntries, fMaxWgtFudge, genie::flux::GFluxFileConfigI::fNCycles, fNEntries, fNFiles, fNNeutrinos, fNuFluxFilePatterns, fNuFluxGen, fNuFluxTreeName, fNUse, genie::flux::GFluxFileConfigI::fPdgCList, genie::flux::GFluxFileConfigI::fPdgCListRej, fSumWeight, fUseFluxAtDetCenter, fWindowNormal, genie::flux::GFluxFileConfigI::fZ0, GetFileList(), LOG, pNOTICE, genie::units::s, User2BeamPos(), genie::utils::print::Vec3AsString(), and genie::utils::print::X4AsString().
void GNuMIFlux::PrintCurrent | ( | void | ) |
print current entry from leaves
Definition at line 1004 of file GNuMIFlux.cxx.
|
private |
Definition at line 1106 of file GNuMIFlux.cxx.
void GNuMIFlux::ScanForMaxWeight | ( | void | ) |
scan for max flux weight (before generating unweighted flux neutrinos)
Definition at line 680 of file GNuMIFlux.cxx.
References LOG, pERROR, pFATAL, and pNOTICE.
|
inline |
apply | apply wgt due to tilt of flux window relative to beam |
Definition at line 302 of file GNuMIFlux.h.
References fApplyTiltWeight.
void GNuMIFlux::SetBeamCenter | ( | TVector3 | beam0 | ) |
Definition at line 920 of file GNuMIFlux.cxx.
Referenced by genie::flux::GNuMIFluxXMLHelper::ParseParamSet().
void GNuMIFlux::SetBeamRotation | ( | TRotation | beamrot | ) |
< beam (0,0,0) relative to user frame, beam direction in user frame
Definition at line 913 of file GNuMIFlux.cxx.
Referenced by genie::flux::GNuMIFluxXMLHelper::ParseParamSet().
|
private |
Definition at line 1077 of file GNuMIFlux.cxx.
References genie::kPdgAntiNuE, genie::kPdgAntiNuMu, genie::kPdgNuE, genie::kPdgNuMu, LOG, pNOTICE, and genie::PDGCodeList::push_back().
void GNuMIFlux::SetEntryReuse | ( | long int | nuse = 1 | ) |
Definition at line 768 of file GNuMIFlux.cxx.
Referenced by genie::flux::GNuMIFluxXMLHelper::ParseParamSet().
bool GNuMIFlux::SetFluxWindow | ( | GNuMIFlux::StdFluxWindow_t | stdwindow, |
double | padding = 0 |
||
) |
return false if unhandled
Definition at line 801 of file GNuMIFlux.cxx.
References kPosCenterFarBeam(), kPosCenterNearBeam(), LOG, pERROR, pNOTICE, and genie::utils::units::UnitFromString().
Referenced by genie::flux::GNuMIFluxXMLHelper::ParseParamSet().
void GNuMIFlux::SetFluxWindow | ( | TVector3 | p1, |
TVector3 | p2, | ||
TVector3 | p3 | ||
) |
3 points define a plane (by default in user coordinates)
Definition at line 867 of file GNuMIFlux.cxx.
References e, LOG, pNOTICE, and pWARN.
|
inline |
toggle whether GenerateNext() returns weight=1 flux (initial default false)
Definition at line 292 of file GNuMIFlux.h.
References fGenWeighted.
void GNuMIFlux::SetLengthUnits | ( | double | user_units | ) |
Set units assumed by user.
Definition at line 1206 of file GNuMIFlux.cxx.
References genie::units::cm, and genie::utils::units::UnitFromString().
Referenced by genie::flux::GNuMIFluxXMLHelper::ParseParamSet().
|
inline |
fudge | extra fudge factor in estimating maximum energy |
Definition at line 300 of file GNuMIFlux.h.
References fMaxEFudge.
Referenced by genie::flux::GNuMIFluxXMLHelper::ParseEnuMax().
void GNuMIFlux::SetMaxEnergy | ( | double | Ev | ) |
specify maximum flx neutrino energy
Definition at line 760 of file GNuMIFlux.cxx.
Referenced by genie::flux::GNuMIFluxXMLHelper::ParseEnuMax().
|
inline |
nentries | configuration when estimating max weight |
Definition at line 298 of file GNuMIFlux.h.
References fMaxWgtEntries, and fMaxWgtFudge.
Referenced by genie::flux::GNuMIFluxXMLHelper::ParseEnuMax().
void GNuMIFlux::SetTreeName | ( | string | name | ) |
set input tree name (default: "h10")
Definition at line 776 of file GNuMIFlux.cxx.
|
inline |
integrated weight for flux neutrinos looped so far
Definition at line 267 of file GNuMIFlux.h.
References fSumWeight.
double GNuMIFlux::UsedPOTs | ( | void | ) | const |
Definition at line 464 of file GNuMIFlux.cxx.
void GNuMIFlux::UseFluxAtFarDetCenter | ( | void | ) |
Definition at line 791 of file GNuMIFlux.cxx.
References kPosCenterFarBeam(), and genie::utils::units::UnitFromString().
void GNuMIFlux::UseFluxAtNearDetCenter | ( | void | ) |
force weights at MINOS detector "center" as found in ntuple
Definition at line 781 of file GNuMIFlux.cxx.
References kPosCenterNearBeam(), and genie::utils::units::UnitFromString().
void GNuMIFlux::User2BeamDir | ( | const TLorentzVector & | usrdir, |
TLorentzVector & | beamdir | ||
) | const |
Definition at line 992 of file GNuMIFlux.cxx.
void GNuMIFlux::User2BeamP4 | ( | const TLorentzVector & | usrp4, |
TLorentzVector & | beamp4 | ||
) | const |
Definition at line 997 of file GNuMIFlux.cxx.
void GNuMIFlux::User2BeamPos | ( | const TLorentzVector & | usrxyz, |
TLorentzVector & | beamxyz | ||
) | const |
Definition at line 987 of file GNuMIFlux.cxx.
Referenced by PrintConfig().
|
inlinevirtual |
returns the flux neutrino weight (if any)
Implements genie::GFluxI.
Definition at line 234 of file GNuMIFlux.h.
References fWeight.
|
private |
|
private |
wgt due to window normal not || beam
Definition at line 414 of file GNuMIFlux.h.
Referenced by SetApplyWindowTiltWeight().
|
private |
rotation applied beam –> user coord
Definition at line 423 of file GNuMIFlux.h.
Referenced by PrintConfig().
|
private |
Definition at line 424 of file GNuMIFlux.h.
Referenced by PrintConfig().
|
private |
|
private |
copy of current ntuple entry info (owned structure)
Definition at line 436 of file GNuMIFlux.h.
Referenced by Momentum(), PassThroughInfo(), PdgCode(), and Position().
|
private |
is a flux location (near/far) set?
Definition at line 415 of file GNuMIFlux.h.
Referenced by PrintConfig().
|
private |
|
private |
|
private |
Definition at line 398 of file GNuMIFlux.h.
Referenced by PrintConfig().
|
private |
|
private |
base point for flux window - beam coord
Definition at line 427 of file GNuMIFlux.h.
Referenced by PrintConfig().
|
private |
extent for flux window (direction 1)
Definition at line 428 of file GNuMIFlux.h.
Referenced by PrintConfig().
|
private |
extent for flux window (direction 2)
Definition at line 429 of file GNuMIFlux.h.
Referenced by PrintConfig().
|
private |
Definition at line 430 of file GNuMIFlux.h.
Referenced by PrintConfig().
|
private |
Definition at line 431 of file GNuMIFlux.h.
Referenced by PrintConfig().
|
private |
|
private |
|
private |
|
private |
does GenerateNext() give weights?
Definition at line 413 of file GNuMIFlux.h.
Referenced by PrintConfig(), and SetGenWeighted().
|
private |
decay 4-position beam coord
Definition at line 434 of file GNuMIFlux.h.
|
private |
current flux ntuple entry
Definition at line 396 of file GNuMIFlux.h.
Referenced by GetEntryNumber(), Index(), and PrintConfig().
|
private |
current # of times an entry has been used
Definition at line 407 of file GNuMIFlux.h.
Referenced by PrintConfig().
|
private |
scale factor beam (cm) –> user
Definition at line 419 of file GNuMIFlux.h.
Referenced by PrintConfig().
|
private |
scale factor beam user –> (cm)
Definition at line 420 of file GNuMIFlux.h.
Referenced by PrintConfig().
|
private |
units for coord in user exchanges
Definition at line 418 of file GNuMIFlux.h.
Referenced by PrintConfig().
|
private |
fudge factor for estmating max enu (0=> use fixed 120GeV)
Definition at line 404 of file GNuMIFlux.h.
Referenced by SetMaxEFudge().
|
private |
maximum energy
Definition at line 384 of file GNuMIFlux.h.
Referenced by MaxEnergy(), and PrintConfig().
|
private |
max flux neutrino weight in input file
Definition at line 401 of file GNuMIFlux.h.
Referenced by PrintConfig().
|
private |
Definition at line 403 of file GNuMIFlux.h.
Referenced by PrintConfig(), and SetMaxWgtScan().
|
private |
fudge factor for estimating max wgt
Definition at line 402 of file GNuMIFlux.h.
Referenced by PrintConfig(), and SetMaxWgtScan().
|
private |
number of flux ntuple entries
Definition at line 395 of file GNuMIFlux.h.
Referenced by PrintConfig().
|
private |
|
private |
number of flux neutrinos thrown so far
Definition at line 409 of file GNuMIFlux.h.
Referenced by PrintConfig().
|
private |
(potentially wildcarded) path(s)
Definition at line 387 of file GNuMIFlux.h.
Referenced by PrintConfig().
|
private |
"g3numi" "g4numi" or "flugg"
Definition at line 390 of file GNuMIFlux.h.
Referenced by PrintConfig().
|
private |
TTree in g3numi or g4numi // REF ONLY!
Definition at line 389 of file GNuMIFlux.h.
Referenced by GetFileList().
|
private |
Tree name "h10" (g3) or "nudata" (g4)
Definition at line 388 of file GNuMIFlux.h.
Referenced by PrintConfig().
|
private |
how often to use same entry in a row
Definition at line 406 of file GNuMIFlux.h.
Referenced by PrintConfig().
|
private |
cummulative # of entries (=fNEntries)
Definition at line 397 of file GNuMIFlux.h.
|
private |
sum of weights for nus thrown so far
Definition at line 408 of file GNuMIFlux.h.
Referenced by PrintConfig(), and SumWeight().
|
private |
use flux at near (-1) or far (+1) det center from ntuple?
Definition at line 416 of file GNuMIFlux.h.
Referenced by PrintConfig().
|
private |
current neutrino weight, =1 if generating unweighted entries
Definition at line 400 of file GNuMIFlux.h.
Referenced by Weight().
|
private |
normal direction for flux window
Definition at line 432 of file GNuMIFlux.h.
Referenced by FluxWindowNormal(), and PrintConfig().