bsim namespace for beam simulation classes and functions More...
Classes | |
class | Ancestor |
More... | |
class | Decay |
More... | |
class | Dk2Nu |
More... | |
class | DkMeta |
More... | |
class | Location |
More... | |
class | NuChoice |
More... | |
class | NuRay |
More... | |
class | TgtExit |
More... | |
class | Traj |
More... | |
Typedefs | |
typedef enum bsim::flgbitval | flgbitval_t |
typedef enum bsim::dkproc | dkproc_t |
Functions | |
int | calcEnuWgt (const bsim::Decay &decay, const TVector3 &xyz, double &enu, double &wgt_xy) |
workhorse routine More... | |
int | calcEnuWgt (const bsim::Dk2Nu *dk2nu, const TVector3 &xyz, double &enu, double &wgt_xy) |
alternate interface More... | |
void | calcLocationWeights (const bsim::DkMeta *dkmeta, bsim::Dk2Nu *dk2nu) |
user interface More... | |
Bool_t | IsDefault (Float_t intval) |
Bool_t | IsDefault (Int_t intval) |
Bool_t | IsDefault (UInt_t intval) |
Bool_t | IsDefault (Double_t intval) |
Bool_t | IsDefault (Bool_t intval) |
void | readWeightLocations (std::string locfilename, std::vector< bsim::Location > &locations) |
void | readWeightLocations (std::string locfilename, bsim::DkMeta *dkmeta) |
a variant that will fill the dkmeta object More... | |
void | printWeightLocations (std::vector< bsim::Location > &locations) |
print the locations More... | |
void | printWeightLocations (bsim::DkMeta *dkmeta) |
a variant that prints the locations in the dkmeta object More... | |
Variables | |
static const Float_t | kDfltFloat = -9999.99 |
static const Int_t | kDfltInt = -9999 |
static const UInt_t | kDfltUInt = 9999 |
static const Double_t | kDfltDouble = -9999.99 |
static const Bool_t | kDfltBool = false |
static const Float_t | kDfltFloat = -9999.99 |
static const Int_t | kDfltInt = -9999 |
static const UInt_t | kDfltUInt = 9999 |
static const Double_t | kDfltDouble = -9999.99 |
static const Bool_t | kDfltBool = false |
bsim namespace for beam simulation classes and functions
typedef enum bsim::dkproc bsim::dkproc_t |
Enumeration of decay processes, stored in "ndecay" stored as integer; these are for reference DK2NU: should there be an associated AsString() method that returns a text (optionally formatted for latex?)?
typedef enum bsim::flgbitval bsim::flgbitval_t |
All the data members are public as these classes are used as generalized structs. As they will be branches of a TTree no specialized naming indicators signifying that they are member data of a class will be used, nor will any fancy capitalization schemes.
All classes must implement a clear() method that resets their values to an identifiably invalid state or clears any vectors. Additionally classes should provide a AsString() method for formatting themselves
Specialized enumerations Proposed flag bits:
enum bsim::dkproc |
Enumeration of decay processes, stored in "ndecay" stored as integer; these are for reference DK2NU: should there be an associated AsString() method that returns a text (optionally formatted for latex?)?
enum bsim::dkproc |
Enumeration of decay processes, stored in "ndecay" stored as integer; these are for reference DK2NU: should there be an associated AsString() method that returns a text (optionally formatted for latex?)?
enum bsim::flgbitval |
All the data members are public as these classes are used as generalized structs. As they will be branches of a TTree no specialized naming indicators signifying that they are member data of a class will be used, nor will any fancy capitalization schemes.
All classes must implement a clear() method that resets their values to an identifiably invalid state or clears any vectors. Additionally classes should provide a AsString() method for formatting themselves
Specialized enumerations Proposed flag bits:
Enumerator | |
---|---|
kFlgOverflow | |
kMaskReserved | |
kMaskUser | |
kFlgOverflow | |
kMaskReserved | |
kMaskUser |
Definition at line 57 of file dk2nu.h.
enum bsim::flgbitval |
All the data members are public as these classes are used as generalized structs. As they will be branches of a TTree no specialized naming indicators signifying that they are member data of a class will be used, nor will any fancy capitalization schemes.
All classes must implement a clear() method that resets their values to an identifiably invalid state or clears any vectors. Additionally classes should provide a AsString() method for formatting themselves
Specialized enumerations Proposed flag bits:
Enumerator | |
---|---|
kFlgOverflow | |
kMaskReserved | |
kMaskUser | |
kFlgOverflow | |
kMaskReserved | |
kMaskUser |
Definition at line 57 of file dk2nu.h.
int bsim::calcEnuWgt | ( | const bsim::Decay & | decay, |
const TVector3 & | xyz, | ||
double & | enu, | ||
double & | wgt_xy | ||
) |
workhorse routine
Definition at line 48 of file calcLocationWeights.cxx.
References beta, om::cerr, dkp_mum_nusep, dkp_mup_nusep, allTimeWatchdog::endl, bsim::Decay::mupare, bsim::Decay::muparpx, bsim::Decay::muparpy, bsim::Decay::muparpz, bsim::Decay::ndecay, bsim::Decay::necm, bsim::Decay::norig, bsim::Decay::ntype, partial, bsim::Decay::pdpx, bsim::Decay::pdpy, bsim::Decay::pdpz, bsim::Decay::ppdxdz, bsim::Decay::ppdydz, bsim::Decay::ppenergy, bsim::Decay::pppz, bsim::Decay::ptype, Munits::rad, ana::Sqrt(), bsim::Decay::vx, bsim::Decay::vy, and bsim::Decay::vz.
Referenced by calcEnuWgt(), calcLocationWeights(), genie::flux::GDk2NuFlux::GenerateNext_weighted(), and genie::flux::GDk2NuFluxXMLHelper::~GDk2NuFluxXMLHelper().
int bsim::calcEnuWgt | ( | const bsim::Dk2Nu * | dk2nu, |
const TVector3 & | xyz, | ||
double & | enu, | ||
double & | wgt_xy | ||
) |
alternate interface
Definition at line 337 of file calcLocationWeights.cxx.
References calcEnuWgt(), and bsim::Dk2Nu::decay.
void bsim::calcLocationWeights | ( | const bsim::DkMeta * | dkmeta, |
bsim::Dk2Nu * | dk2nu | ||
) |
user interface
Definition at line 10 of file calcLocationWeights.cxx.
References calcEnuWgt(), om::cerr, bsim::Dk2Nu::decay, allTimeWatchdog::endl, bsim::DkMeta::location, bsim::Dk2Nu::nuray, make_associated_cosmic_defs::p3, fabricate::status, string, Unit(), bsim::Decay::vx, bsim::Decay::vy, and bsim::Decay::vz.
Referenced by convert_flugg(), convert_g4lbne(), convert_g4minerva(), and test_fill_dk2nu().
Bool_t bsim::IsDefault | ( | Float_t | intval | ) |
Bool_t bsim::IsDefault | ( | UInt_t | intval | ) |
Bool_t bsim::IsDefault | ( | Double_t | intval | ) |
Bool_t bsim::IsDefault | ( | Bool_t | intval | ) |
void bsim::printWeightLocations | ( | std::vector< bsim::Location > & | locations | ) |
print the locations
Definition at line 83 of file readWeightLocations.cxx.
References om::cout, submit_hadd::l, and fhicl::detail::nl().
Referenced by ConvertInit(), and printWeightLocations().
void bsim::printWeightLocations | ( | bsim::DkMeta * | dkmeta | ) |
a variant that prints the locations in the dkmeta object
Definition at line 92 of file readWeightLocations.cxx.
References bsim::DkMeta::location, and printWeightLocations().
void bsim::readWeightLocations | ( | std::string | locfilename, |
std::vector< bsim::Location > & | locations | ||
) |
Read a text file that contains a header line followed by quartets of "<xpos> <ypos> <zpos> <text string>" on separate lines. Fill the supplied vectors. Trim off leading/trailing blanks and quotes (single/double) from the string. Convention has it that positions are given in (cm).
Definition at line 17 of file readWeightLocations.cxx.
References plot_validation_datamc::c, MECModelEnuComparisons::i, path, string, tmp, submit_syst::x, submit_syst::y, and test::z.
Referenced by ConvertInit(), readWeightLocations(), test_fill_dk2nu(), and test_read_locations().
void bsim::readWeightLocations | ( | std::string | locfilename, |
bsim::DkMeta * | dkmeta | ||
) |
a variant that will fill the dkmeta object
read & print the locations where weights are to be calculated
make an entry for the random decay
read and parse the text file for additional positions use the vector version
Definition at line 69 of file readWeightLocations.cxx.
References bsim::DkMeta::location, and readWeightLocations().
|
static |
Definition at line 16 of file dflt.h.
Referenced by IsDefault().
|
static |
Definition at line 15 of file dflt.h.
Referenced by IsDefault().
|
static |
Definition at line 12 of file dflt.h.
Referenced by IsDefault().
|
static |
Definition at line 13 of file dflt.h.
Referenced by IsDefault().
|
static |
Definition at line 14 of file dflt.h.
Referenced by IsDefault().