GENIEGenerator
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
genie::IMDAnnihilationPXSec Class Reference

nuebar + e- -> mu- + numubar [CC] scattering differential cross section
More...

#include <IMDAnnihilationPXSec.h>

Inheritance diagram for genie::IMDAnnihilationPXSec:
Inheritance graph
[legend]
Collaboration diagram for genie::IMDAnnihilationPXSec:
Collaboration graph
[legend]

Public Member Functions

 IMDAnnihilationPXSec ()
 
 IMDAnnihilationPXSec (string config)
 
virtual ~IMDAnnihilationPXSec ()
 
double XSec (const Interaction *i, KinePhaseSpace_t k) const
 Compute the cross section for the input interaction. More...
 
double Integral (const Interaction *i) const
 
bool ValidProcess (const Interaction *i) const
 Can this cross section algorithm handle the input process? More...
 
bool ValidKinematics (const Interaction *i) const
 Is the input kinematical point a physically allowed one? More...
 
void Configure (const Registry &config)
 
void Configure (string config)
 
- Public Member Functions inherited from genie::XSecAlgorithmI
virtual ~XSecAlgorithmI ()
 
- Public Member Functions inherited from genie::Algorithm
virtual ~Algorithm ()
 
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...
 

Private Member Functions

void LoadConfig (void)
 

Private Attributes

const XSecIntegratorIfXSecIntegrator
 

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::XSecAlgorithmI
 XSecAlgorithmI ()
 
 XSecAlgorithmI (string name)
 
 XSecAlgorithmI (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
 
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...
 
AlgMapfOwnedSubAlgMp
 local pool for owned sub-algs (taken out of the factory pool) More...
 

Detailed Description

nuebar + e- -> mu- + numubar [CC] scattering differential cross section

      Is a concrete implementation of the XSecAlgorithmI interface. \n
References:
W.J.Marciano and Z.Parsa, Neutrino-electron scattering theory, J.Phys.G: Nucl.Part.Phys. 29 (2003) 2629-2645
Author
Rosen Matev (r.mat.nosp@m.ev@g.nosp@m.mail..nosp@m.com)
Created:
October 3, 2011
License:
Copyright (c) 2003-2024, The GENIE Collaboration For the full text of the license visit http://copyright.genie-mc.org

Definition at line 33 of file IMDAnnihilationPXSec.h.

Constructor & Destructor Documentation

IMDAnnihilationPXSec::IMDAnnihilationPXSec ( )

Definition at line 26 of file IMDAnnihilationPXSec.cxx.

26  :
27 XSecAlgorithmI("genie::IMDAnnihilationPXSec")
28 {
29 
30 }
IMDAnnihilationPXSec::IMDAnnihilationPXSec ( string  config)

Definition at line 32 of file IMDAnnihilationPXSec.cxx.

32  :
33 XSecAlgorithmI("genie::IMDAnnihilationPXSec", config)
34 {
35 
36 }
IMDAnnihilationPXSec::~IMDAnnihilationPXSec ( )
virtual

Definition at line 38 of file IMDAnnihilationPXSec.cxx.

39 {
40 
41 }

Member Function Documentation

void IMDAnnihilationPXSec::Configure ( const Registry config)
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 108 of file IMDAnnihilationPXSec.cxx.

References genie::Algorithm::Configure(), and LoadConfig().

109 {
110  Algorithm::Configure(config);
111  this->LoadConfig();
112 }
virtual void Configure(const Registry &config)
Definition: Algorithm.cxx:62
void IMDAnnihilationPXSec::Configure ( string  config)
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 114 of file IMDAnnihilationPXSec.cxx.

References genie::Algorithm::Configure(), and LoadConfig().

115 {
116  Algorithm::Configure(config);
117  this->LoadConfig();
118 }
virtual void Configure(const Registry &config)
Definition: Algorithm.cxx:62
double IMDAnnihilationPXSec::Integral ( const Interaction i) const
virtual

Integrate the model over the kinematic phase space available to the input interaction (kinematical cuts can be included)

Implements genie::XSecAlgorithmI.

Definition at line 90 of file IMDAnnihilationPXSec.cxx.

References fXSecIntegrator, and genie::XSecIntegratorI::Integrate().

91 {
92  double xsec = fXSecIntegrator->Integrate(this,interaction);
93  return xsec;
94 }
const XSecIntegratorI * fXSecIntegrator
virtual double Integrate(const XSecAlgorithmI *model, const Interaction *interaction) const =0
void IMDAnnihilationPXSec::LoadConfig ( void  )
private

Definition at line 120 of file IMDAnnihilationPXSec.cxx.

References fXSecIntegrator, and genie::Algorithm::SubAlg().

Referenced by Configure().

121 {
122  // load XSec Integrator
124  dynamic_cast<const XSecIntegratorI *> (this->SubAlg("XSec-Integrator"));
125  assert(fXSecIntegrator);
126 }
Cross Section Integrator Interface.
const XSecIntegratorI * fXSecIntegrator
const Algorithm * SubAlg(const RgKey &registry_key) const
Definition: Algorithm.cxx:345
bool IMDAnnihilationPXSec::ValidKinematics ( const Interaction i) const
virtual

Is the input kinematical point a physically allowed one?

Reimplemented from genie::XSecAlgorithmI.

Definition at line 102 of file IMDAnnihilationPXSec.cxx.

References genie::kISkipKinematicChk.

Referenced by XSec().

103 {
104  if(interaction->TestBit(kISkipKinematicChk)) return true;
105  return true;
106 }
const UInt_t kISkipKinematicChk
if set, skip kinematic validity checks
Definition: Interaction.h:48
bool IMDAnnihilationPXSec::ValidProcess ( const Interaction i) const
virtual

Can this cross section algorithm handle the input process?

Implements genie::XSecAlgorithmI.

Definition at line 96 of file IMDAnnihilationPXSec.cxx.

References genie::kISkipProcessChk.

Referenced by XSec().

97 {
98  if(interaction->TestBit(kISkipProcessChk)) return true;
99  return true;
100 }
const UInt_t kISkipProcessChk
if set, skip process validity checks
Definition: Interaction.h:47
double IMDAnnihilationPXSec::XSec ( const Interaction i,
KinePhaseSpace_t  k 
) const
virtual

Compute the cross section for the input interaction.

Implements genie::XSecAlgorithmI.

Definition at line 43 of file IMDAnnihilationPXSec.cxx.

References genie::units::A, genie::utils::mec::J(), genie::utils::kinematics::Jacobian(), genie::constants::kElectronMass, genie::constants::kElectronMass2, genie::constants::kGF2, genie::kIAssumeFreeElectron, genie::constants::kMuonMass2, genie::constants::kPi, genie::kPSyfE, genie::kRfLab, LOG, pDEBUG, genie::InitialState::ProbeE(), genie::InitialState::Tgt(), ValidKinematics(), ValidProcess(), genie::Kinematics::y(), and genie::Target::Z().

45 {
46  if(! this -> ValidProcess (interaction) ) return 0.;
47  if(! this -> ValidKinematics (interaction) ) return 0.;
48 
49  //----- get initial state & kinematics
50  const InitialState & init_state = interaction -> InitState();
51  const Kinematics & kinematics = interaction -> Kine();
52 
53  double Ev = init_state.ProbeE(kRfLab);
54  double twoMeEv = 2*kElectronMass*Ev;
55  double ymax = 1 - kMuonMass2/(twoMeEv + kElectronMass2);
56  double y = kinematics.y();
57  double A = kGF2/kPi;
58 
59  LOG("IMDAnnihilation", pDEBUG) << "Ev = " << Ev << ", y = " << y << ", ymax = " << ymax;
60  //Note: y = (Ev-El)/Ev but in Marciano's paper y=(El-(m_l^2+m_e^2)/2m_e)/Ev.
61  y = 1 - y - (kMuonMass2 + kElectronMass2)/twoMeEv;
62 
63  if(y > ymax) return 0;
64  if(y < 0) return 0;
65 
66  double xsec = A*(twoMeEv*TMath::Power(1-y,2) - (kMuonMass2 - kElectronMass2)*(1-y)); // <-- dxsec/dy
67 
68 #ifdef __GENIE_LOW_LEVEL_MESG_ENABLED__
69  LOG("IMDAnnihilation", pDEBUG)
70  << "*** dxsec(ve-)/dy [free e-](Ev="<< Ev << ", y= "<< y<< ") = "<< xsec;
71 #endif
72 
73  //----- The algorithm computes dxsec/dy
74  // Check whether variable tranformation is needed
75  if(kps!=kPSyfE) {
76  double J = utils::kinematics::Jacobian(interaction,kPSyfE,kps);
77  xsec *= J;
78  }
79 
80  //----- If requested return the free electron xsec even for nuclear target
81  if( interaction->TestBit(kIAssumeFreeElectron) ) return xsec;
82 
83  //----- Scale for the number of scattering centers at the target
84  int Ne = init_state.Tgt().Z(); // num of scattering centers
85  xsec *= Ne;
86 
87  return xsec;
88 }
double J(double q0, double q3, double Enu, double ml)
Definition: MECUtils.cxx:147
Generated/set kinematical variables for an event.
Definition: Kinematics.h:39
static const double kElectronMass
double y(bool selected=false) const
Definition: Kinematics.cxx:112
bool ValidKinematics(const Interaction *i) const
Is the input kinematical point a physically allowed one?
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
Definition: Messenger.h:96
static const double kElectronMass2
static constexpr double A
Definition: Units.h:74
int Z(void) const
Definition: Target.h:68
bool ValidProcess(const Interaction *i) const
Can this cross section algorithm handle the input process?
double Jacobian(const Interaction *const i, KinePhaseSpace_t f, KinePhaseSpace_t t)
Definition: KineUtils.cxx:130
const Target & Tgt(void) const
Definition: InitialState.h:66
double ProbeE(RefFrame_t rf) const
Initial State information.
Definition: InitialState.h:48
#define pDEBUG
Definition: Messenger.h:63
const UInt_t kIAssumeFreeElectron
Definition: Interaction.h:50

Member Data Documentation

const XSecIntegratorI* genie::IMDAnnihilationPXSec::fXSecIntegrator
private

Definition at line 54 of file IMDAnnihilationPXSec.h.

Referenced by Integral(), and LoadConfig().


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