GENIEGenerator
|
Heavy Neutral Lepton decay vertex generator given production vertex and momentum ***. More...
#include <HNLVertexGenerator.h>
Public Member Functions | |
VertexGenerator () | |
VertexGenerator (string name) | |
VertexGenerator (string name, string config) | |
~VertexGenerator () | |
void | ProcessEventRecord (GHepRecord *event_rec) const |
void | Configure (const Registry &config) |
void | Configure (string config) |
void | SetGeomFile (std::string geomfile) const |
Public Member Functions inherited from genie::hnl::GeomRecordVisitorI | |
virtual | ~GeomRecordVisitorI () |
Public Member Functions inherited from genie::EventRecordVisitorI | |
virtual | ~EventRecordVisitorI () |
Public Member Functions inherited from genie::Algorithm | |
virtual | ~Algorithm () |
virtual void | FindConfig (void) |
virtual const Registry & | GetConfig (void) const |
Registry * | GetOwnedConfig (void) |
virtual const AlgId & | Id (void) const |
Get algorithm ID. More... | |
virtual AlgStatus_t | GetStatus (void) const |
Get algorithm status. More... | |
virtual bool | AllowReconfig (void) const |
virtual AlgCmp_t | Compare (const Algorithm *alg) const |
Compare with input algorithm. More... | |
virtual void | SetId (const AlgId &id) |
Set algorithm ID. More... | |
virtual void | SetId (string name, string config) |
const Algorithm * | SubAlg (const RgKey ®istry_key) const |
void | AdoptConfig (void) |
void | AdoptSubstructure (void) |
virtual void | Print (ostream &stream) const |
Print algorithm info. More... | |
Private Member Functions | |
void | LoadConfig () |
void | SetStartingParameters (GHepRecord *event_rec) const |
void | GetInterestingPoints (TVector3 &entryPoint, TVector3 &exitPoint, TVector3 &decayPoint) const |
void | MakeSDV () const |
void | EnforceUnits (std::string length_units, std::string angle_units, std::string time_units) const |
double | CalcTravelLength (double betaMag, double CoMLifetime, double maxLength) const |
TVector3 | GetDecayPoint (double travelLength, TVector3 &entryPoint, TVector3 &momentum) const |
double | GetMaxLength (TVector3 &entryPoint, TVector3 &exitPoint) const |
bool | SDVEntryAndExitPoints (TVector3 &startPoint, TVector3 momentum, TVector3 &entryPoint, TVector3 &exitPoint) const |
TVector3 | ApplyUserRotation (TVector3 vec, bool doBackwards) const |
TVector3 | ApplyUserRotation (TVector3 vec, TVector3 oriVec, std::vector< double > rotVec, bool doBackwards) const |
std::string | CheckGeomPoint (Double_t x, Double_t y, Double_t z) const |
Private Attributes | |
bool | fIsConfigLoaded = false |
double | lunits = genie::units::mm |
std::string | lunitString = "mm" |
double | aunits = genie::units::rad |
double | tunits = genie::units::ns |
std::string | tunitString = "ns" |
double | fSx = 0.0 |
double | fSy = 0.0 |
double | fSz = 0.0 |
double | fPx = 0.0 |
double | fPy = 0.0 |
double | fPz = 0.0 |
double | fEx = 0.0 |
double | fEy = 0.0 |
double | fEz = 0.0 |
double | fXx = 0.0 |
double | fXy = 0.0 |
double | fXz = 0.0 |
double | fSxROOT = 0.0 |
double | fSyROOT = 0.0 |
double | fSzROOT = 0.0 |
double | fExROOT = 0.0 |
double | fEyROOT = 0.0 |
double | fEzROOT = 0.0 |
double | fXxROOT = 0.0 |
double | fXyROOT = 0.0 |
double | fXzROOT = 0.0 |
double | fDx = 0.0 |
double | fDy = 0.0 |
double | fDz = 0.0 |
double | fOx = 0.0 |
double | fOy = 0.0 |
double | fOz = 0.0 |
double | fLx = 0.0 |
double | fLy = 0.0 |
double | fLz = 0.0 |
double | fDxROOT = 0.0 |
double | fDyROOT = 0.0 |
double | fDzROOT = 0.0 |
double | fOxROOT = 0.0 |
double | fOyROOT = 0.0 |
double | fOzROOT = 0.0 |
double | fLxROOT = 0.0 |
double | fLyROOT = 0.0 |
double | fLzROOT = 0.0 |
double | fCoMLifetime = 0.0 |
double | kNewSpeedOfLight = genie::units::kSpeedOfLight * ( genie::units::m / lunits ) / ( genie::units::s / tunits ) |
string | fGeomFile = "" |
TGeoManager * | fGeoManager = 0 |
TGeoVolume * | fGeoVolume = 0 |
bool | isUsingDk2nu = false |
bool | isUsingRootGeom = false |
double | uMult = 1.0 |
double | xMult = 1.0 |
double | fCx |
double | fCy |
double | fCz |
double | fUx |
double | fUy |
double | fUz |
double | fAx1 |
double | fAz |
double | fAx2 |
double | fBx1 |
double | fBz |
double | fBx2 |
std::vector< double > | fB2UTranslation |
std::vector< double > | fB2URotation |
std::vector< double > | fDetTranslation |
std::vector< double > | fDetRotation |
Additional Inherited Members | |
Static Public Member Functions inherited from genie::Algorithm | |
static string | BuildParamVectKey (const std::string &comm_name, unsigned int i) |
static string | BuildParamVectSizeKey (const std::string &comm_name) |
static string | BuildParamMatKey (const std::string &comm_name, unsigned int i, unsigned int j) |
static string | BuildParamMatRowSizeKey (const std::string &comm_name) |
static string | BuildParamMatColSizeKey (const std::string &comm_name) |
Protected Member Functions inherited from genie::hnl::GeomRecordVisitorI | |
GeomRecordVisitorI () | |
GeomRecordVisitorI (string name) | |
GeomRecordVisitorI (string name, string config) | |
Protected Member Functions inherited from genie::EventRecordVisitorI | |
EventRecordVisitorI () | |
EventRecordVisitorI (string name) | |
EventRecordVisitorI (string name, string config) | |
Protected Member Functions inherited from genie::Algorithm | |
Algorithm () | |
Algorithm (string name) | |
Algorithm (string name, string config) | |
void | Initialize (void) |
void | DeleteConfig (void) |
void | DeleteSubstructure (void) |
Registry * | ExtractLocalConfig (const Registry &in) const |
Registry * | ExtractLowerConfig (const Registry &in, const string &alg_key) const |
Split an incoming configuration Registry into a block valid for the sub-algo identified by alg_key. More... | |
template<class T > | |
bool | GetParam (const RgKey &name, T &p, bool is_top_call=true) const |
template<class T > | |
bool | GetParamDef (const RgKey &name, T &p, const T &def) const |
template<class T > | |
int | GetParamVect (const std::string &comm_name, std::vector< T > &v, bool is_top_call=true) const |
Handle to load vectors of parameters. More... | |
int | GetParamVectKeys (const std::string &comm_name, std::vector< RgKey > &k, bool is_top_call=true) const |
template<class T > | |
int | GetParamMat (const std::string &comm_name, TMatrixT< T > &mat, bool is_top_call=true) const |
Handle to load matrix of parameters. More... | |
template<class T > | |
int | GetParamMatSym (const std::string &comm_name, TMatrixTSym< T > &mat, bool is_top_call=true) const |
int | GetParamMatKeys (const std::string &comm_name, std::vector< RgKey > &k, bool is_top_call=true) const |
int | AddTopRegistry (Registry *rp, bool owns=true) |
add registry with top priority, also update ownership More... | |
int | AddLowRegistry (Registry *rp, bool owns=true) |
add registry with lowest priority, also update ownership More... | |
int | MergeTopRegistry (const Registry &r) |
int | AddTopRegisties (const vector< Registry * > &rs, bool owns=false) |
Add registries with top priority, also udated Ownerships. More... | |
Protected Attributes inherited from genie::Algorithm | |
bool | fAllowReconfig |
bool | fOwnsSubstruc |
true if it owns its substructure (sub-algs,...) More... | |
AlgId | fID |
algorithm name and configuration set More... | |
vector< Registry * > | fConfVect |
vector< bool > | fOwnerships |
ownership for every registry in fConfVect More... | |
AlgStatus_t | fStatus |
algorithm execution status More... | |
AlgMap * | fOwnedSubAlgMp |
local pool for owned sub-algs (taken out of the factory pool) More... | |
Heavy Neutral Lepton decay vertex generator given production vertex and momentum ***.
Definition at line 50 of file HNLVertexGenerator.h.
VertexGenerator::VertexGenerator | ( | ) |
Definition at line 18 of file HNLVertexGenerator.cxx.
VertexGenerator::VertexGenerator | ( | string | name | ) |
Definition at line 24 of file HNLVertexGenerator.cxx.
VertexGenerator::VertexGenerator | ( | string | name, |
string | config | ||
) |
Definition at line 30 of file HNLVertexGenerator.cxx.
VertexGenerator::~VertexGenerator | ( | ) |
Definition at line 36 of file HNLVertexGenerator.cxx.
|
private |
|
private |
Definition at line 690 of file HNLVertexGenerator.cxx.
|
private |
Definition at line 209 of file HNLVertexGenerator.cxx.
References genie::RandomGen::Instance(), kNewSpeedOfLight, and genie::RandomGen::RndGen().
Referenced by ProcessEventRecord().
|
private |
Definition at line 726 of file HNLVertexGenerator.cxx.
|
virtual |
Configure the algorithm with an external registry The registry is merged with the top level registry if it is owned, Otherwise a copy of it is added with the highest priority
Reimplemented from genie::Algorithm.
Definition at line 627 of file HNLVertexGenerator.cxx.
References genie::Algorithm::Configure(), and LoadConfig().
|
virtual |
Configure the algorithm from the AlgoConfigPool based on param_set string given in input An algorithm contains a vector of registries coming from different xml configuration files, which are loaded according a very precise prioriy This methods will load a number registries in order of priority: 1) "Tunable" parameter set from CommonParametes. This is loaded with the highest prioriry and it is designed to be used for tuning procedure Usage not expected from the user. 2) For every string defined in "CommonParame" the corresponding parameter set will be loaded from CommonParameter.xml 3) parameter set specified by the config string and defined in the xml file of the algorithm 4) if config is not "Default" also the Default parameter set from the same xml file will be loaded Effectively this avoids the repetion of a parameter when it is not changed in the requested configuration
Reimplemented from genie::Algorithm.
Definition at line 633 of file HNLVertexGenerator.cxx.
References genie::Algorithm::Configure(), and LoadConfig().
|
private |
Definition at line 179 of file HNLVertexGenerator.cxx.
References genie::hnl::selector::__attribute__(), aunits, fDx, fDy, fDz, fEx, fEy, fEz, fLx, fLy, fLz, fOx, fOy, fOz, fPx, fPy, fPz, fSx, fSy, fSz, fXx, fXy, fXz, kNewSpeedOfLight, LOG, lunits, lunitString, pDEBUG, pWARN, tunits, tunitString, and genie::utils::units::UnitFromString().
Referenced by MakeSDV(), and ProcessEventRecord().
|
private |
Definition at line 250 of file HNLVertexGenerator.cxx.
References genie::units::cm, fDx, fDxROOT, fDy, fDyROOT, fDz, fDzROOT, and lunits.
Referenced by ProcessEventRecord().
|
private |
|
private |
Definition at line 269 of file HNLVertexGenerator.cxx.
|
private |
Definition at line 639 of file HNLVertexGenerator.cxx.
References fAx1, fAx2, fAz, fB2URotation, fB2UTranslation, fBx1, fBx2, fBz, fCx, fCy, fCz, fDetRotation, fDetTranslation, fIsConfigLoaded, fUx, fUy, fUz, genie::Algorithm::GetParamVect(), LOG, and pDEBUG.
Referenced by Configure().
|
private |
Definition at line 277 of file HNLVertexGenerator.cxx.
References aunits, EnforceUnits(), fLx, fLy, fLz, fOx, fOy, fOz, kNewSpeedOfLight, genie::units::kSpeedOfLight, LOG, lunits, genie::units::m, pDEBUG, genie::units::s, tunits, and genie::utils::units::UnitFromString().
|
virtual |
Uses ROOT's TGeoManager to find out where the intersections with the detector volume live Label them as entry and exit point. Then use them to determine: 1) A decay vertex within the detector 2) A time-of-decay (== delay of HNL to reach the decay vertex wrt a massless SM v) 3) Geom weight: Survival to detector * decay within detector.
Implements genie::hnl::GeomRecordVisitorI.
Definition at line 41 of file HNLVertexGenerator.cxx.
References genie::hnl::selector::__attribute__(), genie::GHepRecord::AddParticle(), CalcTravelLength(), EnforceUnits(), fCoMLifetime, fGeoManager, fGeomFile, fGeoVolume, fPx, fPy, fPz, fSx, fSy, fSz, GetDecayPoint(), genie::GHepParticle::GetP4(), genie::units::GeV, isUsingDk2nu, genie::kIStStableFinalState, kNewSpeedOfLight, genie::kPdgAntiNuMu, genie::kPdgNuMu, LOG, genie::units::m, genie::units::mm, genie::units::ns, genie::GHepRecord::Particle(), pERROR, pINFO, genie::GHepParticle::SetPosition(), SetStartingParameters(), genie::GHepRecord::SetVertex(), genie::GHepRecord::SetWeight(), genie::GHepRecord::Vertex(), genie::GHepParticle::Vt(), and genie::GHepRecord::Weight().
Referenced by main(), and TestDecay().
|
private |
Definition at line 298 of file HNLVertexGenerator.cxx.
References fEx, fEy, fEz, fLx, fLy, fLz, fOx, fOy, fOz, fPx, fPy, fPz, fSx, fSy, fSz, fXx, fXy, and fXz.
|
virtual |
Implements genie::hnl::GeomRecordVisitorI.
Definition at line 721 of file HNLVertexGenerator.cxx.
References fGeomFile.
Referenced by main(), and TestDecay().
|
private |
Referenced by ProcessEventRecord().
|
mutableprivate |
Definition at line 134 of file HNLVertexGenerator.h.
Referenced by EnforceUnits(), and MakeSDV().
|
mutableprivate |
Definition at line 168 of file HNLVertexGenerator.h.
Referenced by ApplyUserRotation(), and LoadConfig().
|
mutableprivate |
Definition at line 168 of file HNLVertexGenerator.h.
Referenced by ApplyUserRotation(), and LoadConfig().
|
mutableprivate |
Definition at line 168 of file HNLVertexGenerator.h.
Referenced by ApplyUserRotation(), and LoadConfig().
|
mutableprivate |
Definition at line 170 of file HNLVertexGenerator.h.
Referenced by LoadConfig().
|
mutableprivate |
Definition at line 170 of file HNLVertexGenerator.h.
Referenced by LoadConfig().
|
mutableprivate |
Definition at line 169 of file HNLVertexGenerator.h.
Referenced by LoadConfig().
|
mutableprivate |
Definition at line 169 of file HNLVertexGenerator.h.
Referenced by LoadConfig().
|
mutableprivate |
Definition at line 169 of file HNLVertexGenerator.h.
Referenced by LoadConfig().
|
mutableprivate |
Definition at line 154 of file HNLVertexGenerator.h.
Referenced by ProcessEventRecord().
|
mutableprivate |
Definition at line 166 of file HNLVertexGenerator.h.
Referenced by LoadConfig().
|
mutableprivate |
Definition at line 166 of file HNLVertexGenerator.h.
Referenced by LoadConfig().
|
mutableprivate |
Definition at line 166 of file HNLVertexGenerator.h.
Referenced by LoadConfig().
|
mutableprivate |
Definition at line 170 of file HNLVertexGenerator.h.
Referenced by LoadConfig().
|
mutableprivate |
Definition at line 170 of file HNLVertexGenerator.h.
Referenced by LoadConfig().
|
mutableprivate |
Definition at line 146 of file HNLVertexGenerator.h.
Referenced by EnforceUnits(), GetDecayPoint(), and GetInterestingPoints().
|
mutableprivate |
Definition at line 150 of file HNLVertexGenerator.h.
Referenced by GetDecayPoint().
|
mutableprivate |
Definition at line 146 of file HNLVertexGenerator.h.
Referenced by EnforceUnits(), GetDecayPoint(), and GetInterestingPoints().
|
mutableprivate |
Definition at line 150 of file HNLVertexGenerator.h.
Referenced by GetDecayPoint().
|
mutableprivate |
Definition at line 146 of file HNLVertexGenerator.h.
Referenced by EnforceUnits(), GetDecayPoint(), and GetInterestingPoints().
|
mutableprivate |
Definition at line 150 of file HNLVertexGenerator.h.
Referenced by GetDecayPoint().
|
mutableprivate |
Definition at line 139 of file HNLVertexGenerator.h.
Referenced by EnforceUnits(), GetInterestingPoints(), and SDVEntryAndExitPoints().
|
mutableprivate |
Definition at line 143 of file HNLVertexGenerator.h.
|
mutableprivate |
Definition at line 139 of file HNLVertexGenerator.h.
Referenced by EnforceUnits(), GetInterestingPoints(), and SDVEntryAndExitPoints().
|
mutableprivate |
Definition at line 143 of file HNLVertexGenerator.h.
|
mutableprivate |
Definition at line 139 of file HNLVertexGenerator.h.
Referenced by EnforceUnits(), GetInterestingPoints(), and SDVEntryAndExitPoints().
|
mutableprivate |
Definition at line 143 of file HNLVertexGenerator.h.
|
mutableprivate |
Definition at line 159 of file HNLVertexGenerator.h.
Referenced by ProcessEventRecord().
|
mutableprivate |
Definition at line 158 of file HNLVertexGenerator.h.
Referenced by ProcessEventRecord(), and SetGeomFile().
|
mutableprivate |
Definition at line 160 of file HNLVertexGenerator.h.
Referenced by ProcessEventRecord().
|
mutableprivate |
Definition at line 131 of file HNLVertexGenerator.h.
Referenced by LoadConfig().
|
mutableprivate |
Definition at line 148 of file HNLVertexGenerator.h.
Referenced by EnforceUnits(), MakeSDV(), and SDVEntryAndExitPoints().
|
mutableprivate |
Definition at line 152 of file HNLVertexGenerator.h.
|
mutableprivate |
Definition at line 148 of file HNLVertexGenerator.h.
Referenced by EnforceUnits(), MakeSDV(), and SDVEntryAndExitPoints().
|
mutableprivate |
Definition at line 152 of file HNLVertexGenerator.h.
|
mutableprivate |
Definition at line 148 of file HNLVertexGenerator.h.
Referenced by EnforceUnits(), MakeSDV(), and SDVEntryAndExitPoints().
|
mutableprivate |
Definition at line 152 of file HNLVertexGenerator.h.
|
mutableprivate |
Definition at line 147 of file HNLVertexGenerator.h.
Referenced by EnforceUnits(), MakeSDV(), and SDVEntryAndExitPoints().
|
mutableprivate |
Definition at line 151 of file HNLVertexGenerator.h.
|
mutableprivate |
Definition at line 147 of file HNLVertexGenerator.h.
Referenced by EnforceUnits(), MakeSDV(), and SDVEntryAndExitPoints().
|
mutableprivate |
Definition at line 151 of file HNLVertexGenerator.h.
|
mutableprivate |
Definition at line 147 of file HNLVertexGenerator.h.
Referenced by EnforceUnits(), MakeSDV(), and SDVEntryAndExitPoints().
|
mutableprivate |
Definition at line 151 of file HNLVertexGenerator.h.
|
mutableprivate |
Definition at line 138 of file HNLVertexGenerator.h.
Referenced by EnforceUnits(), ProcessEventRecord(), and SDVEntryAndExitPoints().
|
mutableprivate |
Definition at line 138 of file HNLVertexGenerator.h.
Referenced by EnforceUnits(), ProcessEventRecord(), and SDVEntryAndExitPoints().
|
mutableprivate |
Definition at line 138 of file HNLVertexGenerator.h.
Referenced by EnforceUnits(), ProcessEventRecord(), and SDVEntryAndExitPoints().
|
mutableprivate |
Definition at line 137 of file HNLVertexGenerator.h.
Referenced by EnforceUnits(), ProcessEventRecord(), and SDVEntryAndExitPoints().
|
mutableprivate |
Definition at line 142 of file HNLVertexGenerator.h.
|
mutableprivate |
Definition at line 137 of file HNLVertexGenerator.h.
Referenced by EnforceUnits(), ProcessEventRecord(), and SDVEntryAndExitPoints().
|
mutableprivate |
Definition at line 142 of file HNLVertexGenerator.h.
|
mutableprivate |
Definition at line 137 of file HNLVertexGenerator.h.
Referenced by EnforceUnits(), ProcessEventRecord(), and SDVEntryAndExitPoints().
|
mutableprivate |
Definition at line 142 of file HNLVertexGenerator.h.
|
mutableprivate |
Definition at line 167 of file HNLVertexGenerator.h.
Referenced by LoadConfig().
|
mutableprivate |
Definition at line 167 of file HNLVertexGenerator.h.
Referenced by LoadConfig().
|
mutableprivate |
Definition at line 167 of file HNLVertexGenerator.h.
Referenced by LoadConfig().
|
mutableprivate |
Definition at line 140 of file HNLVertexGenerator.h.
Referenced by EnforceUnits(), GetInterestingPoints(), and SDVEntryAndExitPoints().
|
mutableprivate |
Definition at line 144 of file HNLVertexGenerator.h.
|
mutableprivate |
Definition at line 140 of file HNLVertexGenerator.h.
Referenced by EnforceUnits(), GetInterestingPoints(), and SDVEntryAndExitPoints().
|
mutableprivate |
Definition at line 144 of file HNLVertexGenerator.h.
|
mutableprivate |
Definition at line 140 of file HNLVertexGenerator.h.
Referenced by EnforceUnits(), GetInterestingPoints(), and SDVEntryAndExitPoints().
|
mutableprivate |
Definition at line 144 of file HNLVertexGenerator.h.
|
mutableprivate |
Definition at line 162 of file HNLVertexGenerator.h.
Referenced by ProcessEventRecord().
|
mutableprivate |
Definition at line 163 of file HNLVertexGenerator.h.
|
mutableprivate |
Definition at line 156 of file HNLVertexGenerator.h.
Referenced by CalcTravelLength(), EnforceUnits(), MakeSDV(), and ProcessEventRecord().
|
mutableprivate |
Definition at line 133 of file HNLVertexGenerator.h.
Referenced by EnforceUnits(), GetDecayPoint(), and MakeSDV().
|
mutableprivate |
Definition at line 133 of file HNLVertexGenerator.h.
Referenced by EnforceUnits().
|
mutableprivate |
Definition at line 135 of file HNLVertexGenerator.h.
Referenced by EnforceUnits(), and MakeSDV().
|
mutableprivate |
Definition at line 135 of file HNLVertexGenerator.h.
Referenced by EnforceUnits().
|
mutableprivate |
Definition at line 164 of file HNLVertexGenerator.h.
|
mutableprivate |
Definition at line 164 of file HNLVertexGenerator.h.