GENIEGenerator
|
Heavy Neutral Lepton final-state product generator. More...
#include <HNLDecayer.h>
Public Member Functions | |
Decayer () | |
Decayer (string config) | |
~Decayer () | |
void | ProcessEventRecord (GHepRecord *event) const |
void | Configure (const Registry &config) |
void | Configure (string config) |
double | GetHNLLifetime () const |
double | GetHNLMass () const |
std::vector< double > | GetHNLCouplings () const |
bool | IsHNLMajorana () const |
std::string | GetHNLInterestingChannels () const |
std::vector< double > | GetPGunOrigin () const |
std::vector< double > | GetPGunDOrigin () const |
double | GetPGunEnergy () const |
std::vector< double > | GetPGunDirection () const |
std::vector< double > | GetPGunDeviation () const |
Public Member Functions inherited from genie::hnl::DecayRecordVisitorI | |
virtual | ~DecayRecordVisitorI () |
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) |
void | AddInitialState (GHepRecord *event) const |
void | GenerateDecayProducts (GHepRecord *event) const |
void | UpdateEventRecord (GHepRecord *event) const |
void | SetHNLCouplings (double Ue42, double Um42, double Ut42) const |
void | SetBeam2User (std::vector< double > translation, std::vector< double > rotation) const |
void | SetProdVtxPosition (const TLorentzVector &v4) const |
void | ReadCreationInfo (GHepRecord *event) const |
genie::hnl::SimpleHNL | GetHNLInstance () const |
std::vector< double > * | GenerateDecayPosition (GHepRecord *event) const |
std::vector< double > * | GenerateMomentum (GHepRecord *event) const |
double | CalcPolMag (int parPdg, int lepPdg, double M) const |
double | CalcPolMod (double polMag, int lepPdg, int hadPdg, double M) const |
bool | UnpolarisedDecay (TGenPhaseSpace &fPSG, PDGCodeList pdgv, double wm) const |
bool | PolarisedDecay (TGenPhaseSpace &fPSG, PDGCodeList pdgv, double wm, TVector3 vPolDir) const |
Private Attributes | |
int | fCurrInitStatePdg |
genie::hnl::HNLDecayMode_t | fCurrDecayMode |
int | fParentPdg |
int | fProdLepPdg |
int | fDecLepPdg |
int | fDecHadPdg |
std::vector< double > | fPolDir |
bool | fIsConfigLoaded = false |
double | fMass |
double | fUe42 = -1.0 |
double | fUm42 = -1.0 |
double | fUt42 = -1.0 |
bool | fIsMajorana = false |
bool | fDoPol = false |
std::vector < genie::hnl::HNLDecayMode_t > | fIntChannels |
int | fChanBits [10] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } |
std::vector< double > | fB2UTranslation |
double | fTx = -1.0 |
double | fTy = -1.0 |
double | fTz = -1.0 |
std::vector< double > | fB2URotation |
double | fR1 = -1.0 |
double | fR2 = -1.0 |
double | fR3 = -1.0 |
TH3D * | fProdVtxHist = 0 |
TLorentzVector * | fProdVtx = 0 |
TLorentzVector * | fISMom = 0 |
double | fPGOx = 0.0 |
double | fPGOy = 0.0 |
double | fPGOz = 0.0 |
double | fPGDx = 0.0 |
double | fPGDy = 0.0 |
double | fPGDz = 0.0 |
double | fPGE = 0.0 |
double | fPGCx = 0.0 |
double | fPGCy = 0.0 |
double | fPGCz = 0.0 |
double | fPGDTheta = 0.0 |
double | fPGDPhi = 0.0 |
bool | fGetCMFrameInstead = false |
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::DecayRecordVisitorI | |
DecayRecordVisitorI () | |
DecayRecordVisitorI (string name) | |
DecayRecordVisitorI (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 final-state product generator.
Definition at line 41 of file HNLDecayer.h.
Decayer::Decayer | ( | ) |
Definition at line 37 of file HNLDecayer.cxx.
Decayer::Decayer | ( | string | config | ) |
Definition at line 43 of file HNLDecayer.cxx.
Decayer::~Decayer | ( | ) |
Definition at line 49 of file HNLDecayer.cxx.
|
private |
Definition at line 73 of file HNLDecayer.cxx.
References genie::GHepRecord::AddParticle(), GenerateDecayPosition(), GenerateMomentum(), genie::InitialState::GetProbeP4(), genie::Interaction::InitState(), genie::Interaction::InitStatePtr(), genie::kIStInitialState, genie::kRfLab, genie::GHepRecord::Particle(), genie::InitialState::ProbeE(), genie::InitialState::ProbePdg(), genie::InitialState::SetProbeP4(), and genie::GHepRecord::Vertex().
Referenced by ProcessEventRecord().
|
private |
Definition at line 671 of file HNLDecayer.cxx.
References genie::PDGLibrary::Find(), genie::PDGLibrary::Instance(), and genie::utils::hnl::Kallen().
Referenced by PolarisedDecay().
|
private |
Definition at line 688 of file HNLDecayer.cxx.
References genie::PDGLibrary::Find(), genie::PDGLibrary::Instance(), and genie::utils::hnl::Kallen().
Referenced by PolarisedDecay().
|
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 407 of file HNLDecayer.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 413 of file HNLDecayer.cxx.
References genie::Algorithm::Configure(), and LoadConfig().
|
private |
Definition at line 326 of file HNLDecayer.cxx.
References fProdVtxHist, genie::RandomGen::Instance(), LOG, pDEBUG, pWARN, genie::RandomGen::RndGen(), and SetProdVtxPosition().
Referenced by AddInitialState().
|
private |
Definition at line 121 of file HNLDecayer.cxx.
References genie::utils::hnl::DecayProductList(), genie::GHepParticle::E(), genie::Interaction::ExclTagPtr(), fCurrDecayMode, fCurrInitStatePdg, fDecHadPdg, fDecLepPdg, fDoPol, fGetCMFrameInstead, genie::GHepRecord::FinalStatePrimaryLepton(), genie::PDGLibrary::Find(), fIsMajorana, fPolDir, genie::GHepParticle::GetP4(), genie::GHepParticle::GetX4(), genie::RandomGen::Instance(), genie::PDGLibrary::Instance(), genie::hnl::kHNLDcyNuNuNu, genie::hnl::kHNLDcyPi0Nu, genie::hnl::kHNLDcyPi0Pi0Nu, genie::hnl::kHNLDcyTEST, genie::kIStStableFinalState, genie::kPdgPi0, genie::kPdgPiM, genie::kPdgPiP, LOG, genie::units::m, genie::utils::print::P4AsString(), genie::GHepRecord::Particle(), pDEBUG, pERROR, pINFO, pNOTICE, PolarisedDecay(), genie::GHepRecord::Probe(), genie::PDGCodeList::push_back(), pWARN, genie::RandomGen::RndGen(), genie::XclsTag::SetNPions(), genie::exceptions::EVGThreadException::SetReason(), genie::GHepParticle::Status(), genie::exceptions::EVGThreadException::SwitchOnFastForward(), and UnpolarisedDecay().
Referenced by ProcessEventRecord().
|
private |
Definition at line 351 of file HNLDecayer.cxx.
References genie::PDGLibrary::Find(), genie::Interaction::InitState(), genie::RandomGen::Instance(), genie::PDGLibrary::Instance(), genie::kPdgHNL, genie::constants::kPi, genie::kRfLab, genie::InitialState::ProbeE(), and genie::RandomGen::RndGen().
Referenced by AddInitialState().
|
virtual |
Implements genie::hnl::DecayRecordVisitorI.
Definition at line 715 of file HNLDecayer.cxx.
References fUe42, fUm42, and fUt42.
Referenced by main(), and ReadInConfig().
|
private |
Definition at line 499 of file HNLDecayer.cxx.
References fIntChannels, fIsMajorana, fMass, fR1, fR2, fR3, fTx, fTy, fTz, fUe42, fUm42, fUt42, genie::kPdgHNL, genie::kPdgKP, genie::hnl::SimpleHNL::SetAngularDeviation(), genie::hnl::SimpleHNL::SetBeam2UserRotation(), genie::hnl::SimpleHNL::SetBeam2UserTranslation(), genie::hnl::SimpleHNL::SetInterestingChannelsVec(), and genie::hnl::SimpleHNL::SetType().
Referenced by GetHNLLifetime(), and LoadConfig().
|
virtual |
Implements genie::hnl::DecayRecordVisitorI.
Definition at line 727 of file HNLDecayer.cxx.
References fChanBits.
Referenced by main(), and ReadInConfig().
|
virtual |
Implements genie::hnl::DecayRecordVisitorI.
Definition at line 705 of file HNLDecayer.cxx.
References GetHNLInstance().
Referenced by main(), and ReadInConfig().
|
virtual |
Implements genie::hnl::DecayRecordVisitorI.
Definition at line 710 of file HNLDecayer.cxx.
References fMass.
Referenced by main(), and ReadInConfig().
|
virtual |
Implements genie::hnl::DecayRecordVisitorI.
Definition at line 762 of file HNLDecayer.cxx.
References fPGDPhi, and fPGDTheta.
Referenced by GenerateOriginMomentum().
|
virtual |
Implements genie::hnl::DecayRecordVisitorI.
Definition at line 755 of file HNLDecayer.cxx.
References fPGCx, fPGCy, and fPGCz.
Referenced by GenerateOriginMomentum(), and ReadInConfig().
|
virtual |
Implements genie::hnl::DecayRecordVisitorI.
Definition at line 743 of file HNLDecayer.cxx.
References fPGDx, fPGDy, and fPGDz.
Referenced by GenerateOriginPosition().
|
virtual |
Implements genie::hnl::DecayRecordVisitorI.
Definition at line 750 of file HNLDecayer.cxx.
References fPGE.
Referenced by main(), ReadInConfig(), and TestDecay().
|
virtual |
Implements genie::hnl::DecayRecordVisitorI.
Definition at line 736 of file HNLDecayer.cxx.
References fPGOx, fPGOy, and fPGOz.
Referenced by GenerateOriginPosition(), and TestDecay().
|
virtual |
Implements genie::hnl::DecayRecordVisitorI.
Definition at line 722 of file HNLDecayer.cxx.
References fIsMajorana.
Referenced by main(), and ReadInConfig().
|
private |
Definition at line 419 of file HNLDecayer.cxx.
References CoMLifetime, fB2URotation, fB2UTranslation, fChanBits, fDoPol, fGetCMFrameInstead, fIntChannels, fIsConfigLoaded, fIsMajorana, fMass, fPGCx, fPGCy, fPGCz, fPGDPhi, fPGDTheta, fPGDx, fPGDy, fPGDz, fPGE, fPGOx, fPGOy, fPGOz, genie::hnl::SimpleHNL::GetCoMLifetime(), GetHNLInstance(), genie::Algorithm::GetParam(), genie::Algorithm::GetParamVect(), genie::hnl::kHNLDcyNuEE, genie::hnl::kHNLDcyNuMuE, genie::hnl::kHNLDcyNuMuMu, genie::hnl::kHNLDcyNuNuNu, genie::hnl::kHNLDcyPi0Nu, genie::hnl::kHNLDcyPi0Pi0Nu, genie::hnl::kHNLDcyPiE, genie::hnl::kHNLDcyPiMu, genie::hnl::kHNLDcyPiPi0E, genie::hnl::kHNLDcyPiPi0Mu, LOG, pDEBUG, SetBeam2User(), and SetHNLCouplings().
Referenced by Configure().
|
private |
Definition at line 590 of file HNLDecayer.cxx.
References CalcPolMag(), CalcPolMod(), fDecHadPdg, fDecLepPdg, genie::PDGLibrary::Find(), fParentPdg, fProdLepPdg, genie::RandomGen::Instance(), genie::PDGLibrary::Instance(), genie::controls::kMaxUnweightDecayIterations, genie::kPdgElectron, genie::kPdgHNL, genie::kPdgMuon, genie::kPdgNuMu, genie::kPdgPi0, genie::kPdgTau, LOG, pWARN, genie::RandomGen::RndGen(), and UnpolarisedDecay().
Referenced by GenerateDecayProducts().
|
virtual |
Implements genie::hnl::DecayRecordVisitorI.
Definition at line 54 of file HNLDecayer.cxx.
References AddInitialState(), genie::utils::hnl::AsString(), genie::XclsTag::DecayMode(), genie::Interaction::ExclTag(), fCurrDecayMode, fCurrInitStatePdg, GenerateDecayProducts(), genie::Interaction::InitState(), LOG, pNOTICE, genie::InitialState::ProbePdg(), ReadCreationInfo(), and UpdateEventRecord().
Referenced by main(), and TestDecay().
|
private |
Definition at line 518 of file HNLDecayer.cxx.
References fParentPdg, fPolDir, and fProdLepPdg.
Referenced by ProcessEventRecord().
|
private |
Definition at line 488 of file HNLDecayer.cxx.
References fR1, fR2, fR3, fTx, fTy, and fTz.
Referenced by LoadConfig().
|
private |
Definition at line 481 of file HNLDecayer.cxx.
References fUe42, fUm42, and fUt42.
Referenced by LoadConfig().
|
private |
Definition at line 511 of file HNLDecayer.cxx.
References fProdVtx.
Referenced by GenerateDecayPosition().
|
private |
accept_decay
Definition at line 550 of file HNLDecayer.cxx.
References genie::RandomGen::Instance(), genie::controls::kMaxUnweightDecayIterations, LOG, pWARN, and genie::RandomGen::RndHadro().
Referenced by GenerateDecayProducts(), and PolarisedDecay().
|
private |
Definition at line 378 of file HNLDecayer.cxx.
References genie::GHepRecord::FinalStatePrimaryLepton(), genie::Interaction::InitStatePtr(), genie::Interaction::KinePtr(), genie::GHepRecord::Particle(), genie::InitialState::Probe(), genie::Kinematics::SetQ2(), genie::Kinematics::Sett(), and genie::Kinematics::SetW().
Referenced by ProcessEventRecord().
|
mutableprivate |
Definition at line 120 of file HNLDecayer.h.
Referenced by LoadConfig().
|
mutableprivate |
Definition at line 118 of file HNLDecayer.h.
Referenced by LoadConfig().
|
mutableprivate |
Definition at line 115 of file HNLDecayer.h.
Referenced by GetHNLInterestingChannels(), and LoadConfig().
|
mutableprivate |
Definition at line 100 of file HNLDecayer.h.
Referenced by GenerateDecayProducts(), and ProcessEventRecord().
|
mutableprivate |
Definition at line 99 of file HNLDecayer.h.
Referenced by GenerateDecayProducts(), and ProcessEventRecord().
|
mutableprivate |
Definition at line 102 of file HNLDecayer.h.
Referenced by GenerateDecayProducts(), and PolarisedDecay().
|
mutableprivate |
Definition at line 102 of file HNLDecayer.h.
Referenced by GenerateDecayProducts(), and PolarisedDecay().
|
mutableprivate |
Definition at line 112 of file HNLDecayer.h.
Referenced by GenerateDecayProducts(), and LoadConfig().
|
mutableprivate |
Definition at line 133 of file HNLDecayer.h.
Referenced by GenerateDecayProducts(), and LoadConfig().
|
mutableprivate |
Definition at line 114 of file HNLDecayer.h.
Referenced by GetHNLInstance(), and LoadConfig().
|
mutableprivate |
Definition at line 105 of file HNLDecayer.h.
Referenced by LoadConfig().
|
mutableprivate |
Definition at line 109 of file HNLDecayer.h.
Referenced by GenerateDecayProducts(), GetHNLInstance(), IsHNLMajorana(), and LoadConfig().
|
mutableprivate |
Definition at line 125 of file HNLDecayer.h.
|
mutableprivate |
Definition at line 107 of file HNLDecayer.h.
Referenced by GetHNLInstance(), GetHNLMass(), and LoadConfig().
|
mutableprivate |
Definition at line 102 of file HNLDecayer.h.
Referenced by PolarisedDecay(), and ReadCreationInfo().
|
mutableprivate |
Definition at line 130 of file HNLDecayer.h.
Referenced by GetPGunDirection(), and LoadConfig().
|
mutableprivate |
Definition at line 130 of file HNLDecayer.h.
Referenced by GetPGunDirection(), and LoadConfig().
|
mutableprivate |
Definition at line 130 of file HNLDecayer.h.
Referenced by GetPGunDirection(), and LoadConfig().
|
mutableprivate |
Definition at line 131 of file HNLDecayer.h.
Referenced by GetPGunDeviation(), and LoadConfig().
|
mutableprivate |
Definition at line 131 of file HNLDecayer.h.
Referenced by GetPGunDeviation(), and LoadConfig().
|
mutableprivate |
Definition at line 128 of file HNLDecayer.h.
Referenced by GetPGunDOrigin(), and LoadConfig().
|
mutableprivate |
Definition at line 128 of file HNLDecayer.h.
Referenced by GetPGunDOrigin(), and LoadConfig().
|
mutableprivate |
Definition at line 128 of file HNLDecayer.h.
Referenced by GetPGunDOrigin(), and LoadConfig().
|
mutableprivate |
Definition at line 129 of file HNLDecayer.h.
Referenced by GetPGunEnergy(), and LoadConfig().
|
mutableprivate |
Definition at line 127 of file HNLDecayer.h.
Referenced by GetPGunOrigin(), and LoadConfig().
|
mutableprivate |
Definition at line 127 of file HNLDecayer.h.
Referenced by GetPGunOrigin(), and LoadConfig().
|
mutableprivate |
Definition at line 127 of file HNLDecayer.h.
Referenced by GetPGunOrigin(), and LoadConfig().
|
mutableprivate |
Definition at line 103 of file HNLDecayer.h.
Referenced by GenerateDecayProducts(), and ReadCreationInfo().
|
mutableprivate |
Definition at line 102 of file HNLDecayer.h.
Referenced by PolarisedDecay(), and ReadCreationInfo().
|
mutableprivate |
Definition at line 124 of file HNLDecayer.h.
Referenced by SetProdVtxPosition().
|
mutableprivate |
Definition at line 123 of file HNLDecayer.h.
Referenced by GenerateDecayPosition().
|
mutableprivate |
Definition at line 121 of file HNLDecayer.h.
Referenced by GetHNLInstance(), and SetBeam2User().
|
mutableprivate |
Definition at line 121 of file HNLDecayer.h.
Referenced by GetHNLInstance(), and SetBeam2User().
|
mutableprivate |
Definition at line 121 of file HNLDecayer.h.
Referenced by GetHNLInstance(), and SetBeam2User().
|
mutableprivate |
Definition at line 119 of file HNLDecayer.h.
Referenced by GetHNLInstance(), and SetBeam2User().
|
mutableprivate |
Definition at line 119 of file HNLDecayer.h.
Referenced by GetHNLInstance(), and SetBeam2User().
|
mutableprivate |
Definition at line 119 of file HNLDecayer.h.
Referenced by GetHNLInstance(), and SetBeam2User().
|
mutableprivate |
Definition at line 108 of file HNLDecayer.h.
Referenced by GetHNLCouplings(), GetHNLInstance(), and SetHNLCouplings().
|
mutableprivate |
Definition at line 108 of file HNLDecayer.h.
Referenced by GetHNLCouplings(), GetHNLInstance(), and SetHNLCouplings().
|
mutableprivate |
Definition at line 108 of file HNLDecayer.h.
Referenced by GetHNLCouplings(), GetHNLInstance(), and SetHNLCouplings().