Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
genie::SecondNucleonEmissionI Class Reference

Interface to drive the a second nucleon emission from a nucleus Specfic impelmentations will have different physics. More...

#include <SecondNucleonEmissionI.h>

Inheritance diagram for genie::SecondNucleonEmissionI:
genie::EventRecordVisitorI genie::Algorithm genie::SpectralFunction2p2h genie::SRCNuclearRecoil

Public Member Functions

virtual ~SecondNucleonEmissionI ()
 
- Public Member Functions inherited from genie::EventRecordVisitorI
virtual ~EventRecordVisitorI ()
 
virtual void ProcessEventRecord (GHepRecord *event_rec) const =0
 
- Public Member Functions inherited from genie::Algorithm
virtual ~Algorithm ()
 
virtual void Configure (const Registry &config)
 
virtual void Configure (string config)
 
virtual void FindConfig (void)
 
virtual const RegistryGetConfig (void) const
 
RegistryGetOwnedConfig (void)
 
virtual const AlgIdId (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 AlgorithmSubAlg (const RgKey &registry_key) const
 
void AdoptConfig (void)
 
void AdoptSubstructure (void)
 
virtual void Print (ostream &stream) const
 Print algorithm info. More...
 

Protected Member Functions

virtual bool EmitSecondNucleon (GHepRecord *evrec, const int eject_nucleon_pdg) const
 
 SecondNucleonEmissionI (string name)
 
 SecondNucleonEmissionI (string name, string config)
 
void LoadConfig (void)
 
- 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)
 
RegistryExtractLocalConfig (const Registry &in) const
 
RegistryExtractLowerConfig (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
 
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

const NuclearModelIfNuclModel
 nuclear model 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< boolfOwnerships
 ownership for every registry in fConfVect More...
 
AlgStatus_t fStatus
 algorithm execution status More...
 
AlgMapfOwnedSubAlgMp
 local pool for owned sub-algs (taken out of the factory pool) More...
 

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)
 

Detailed Description

Interface to drive the a second nucleon emission from a nucleus Specfic impelmentations will have different physics.

Author
Afroditi Papadopoulou <apapadop mit.edu> Massachusetts Institute of Technology - October 04, 2019 Marco Roda <mroda liverpool.ac.uk> University of Liverpool

October 04, 2019

Copyright (c) 2003-2019, The GENIE Collaboration For the full text of the license visit http://copyright.genie-mc.org or see $GENIE/LICENSE

Definition at line 33 of file SecondNucleonEmissionI.h.

Constructor & Destructor Documentation

SecondNucleonEmissionI::~SecondNucleonEmissionI ( )
virtual

Definition at line 62 of file SecondNucleonEmissionI.cxx.

63 {
64 
65 }
SecondNucleonEmissionI::SecondNucleonEmissionI ( string  name)
protected

Definition at line 50 of file SecondNucleonEmissionI.cxx.

50  :
52 {
53 
54 }
static QCString name
Definition: declinfo.cpp:673
SecondNucleonEmissionI::SecondNucleonEmissionI ( string  name,
string  config 
)
protected

Definition at line 56 of file SecondNucleonEmissionI.cxx.

56  :
58 {
59 
60 }
static QCString name
Definition: declinfo.cpp:673
static Config * config
Definition: config.cpp:1054

Member Function Documentation

bool SecondNucleonEmissionI::EmitSecondNucleon ( GHepRecord evrec,
const int  eject_nucleon_pdg 
) const
protectedvirtual

Definition at line 68 of file SecondNucleonEmissionI.cxx.

68  {
69 
70  LOG("SecondNucleonEmissionI", pINFO) << "Adding a recoil nucleon with PDG " << eject_nucleon_pdg ;
71 
72  GHepParticle * nucleon = evrec->HitNucleon();
73 
75  int imom = evrec->TargetNucleusPosition();
76 
77  //-- Has opposite momentum from the struck nucleon
78  double vx = nucleon->Vx();
79  double vy = nucleon->Vy();
80  double vz = nucleon->Vz();
81  double px = -1.* nucleon->Px();
82  double py = -1.* nucleon->Py();
83  double pz = -1.* nucleon->Pz();
84  double M = PDGLibrary::Instance()->Find(eject_nucleon_pdg)->Mass();
85  double E = TMath::Sqrt(px*px+py*py+pz*pz+M*M);
86 
87  evrec->AddParticle( eject_nucleon_pdg, status, imom, -1, -1, -1, px, py, pz, E, vx, vy, vz, 0 );
88 
89  return true ;
90 }
double Pz(void) const
Get Pz.
Definition: GHepParticle.h:90
double Px(void) const
Get Px.
Definition: GHepParticle.h:88
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
Definition: Messenger.h:96
#define pINFO
Definition: Messenger.h:62
static PDGLibrary * Instance(void)
Definition: PDGLibrary.cxx:57
double Vz(void) const
Get production z.
Definition: GHepParticle.h:96
virtual GHepParticle * HitNucleon(void) const
Definition: GHepRecord.cxx:306
virtual void AddParticle(const GHepParticle &p)
Definition: GHepRecord.cxx:491
TParticlePDG * Find(int pdgc, bool must_exist=true)
Definition: PDGLibrary.cxx:75
double Vy(void) const
Get production y.
Definition: GHepParticle.h:95
STDHEP-like event record entry that can fit a particle or a nucleus.
Definition: GHepParticle.h:39
virtual int TargetNucleusPosition(void) const
Definition: GHepRecord.cxx:362
enum genie::EGHepStatus GHepStatus_t
double Vx(void) const
Get production x.
Definition: GHepParticle.h:94
double Py(void) const
Get Py.
Definition: GHepParticle.h:89
void SecondNucleonEmissionI::LoadConfig ( void  )
protected

Definition at line 92 of file SecondNucleonEmissionI.cxx.

93 {
94 
95  RgKey nuclkey = "NuclearModel";
96  fNuclModel = 0;
97  fNuclModel = dynamic_cast<const NuclearModelI *> (this->SubAlg(nuclkey));
98  assert(fNuclModel);
99 
100 }
Pure abstract base class. Defines the NuclearModelI interface to be implemented by any physics model ...
Definition: NuclearModelI.h:46
string RgKey
const NuclearModelI * fNuclModel
nuclear model
const Algorithm * SubAlg(const RgKey &registry_key) const
Definition: Algorithm.cxx:345

Member Data Documentation

const NuclearModelI* genie::SecondNucleonEmissionI::fNuclModel
protected

nuclear model

Definition at line 43 of file SecondNucleonEmissionI.h.


The documentation for this class was generated from the following files: