GENIEGenerator
Loading...
Searching...
No Matches
genie::NuElectronPXSec Class Reference

nu/nubar + e- scattering differential cross section
The cross section algorithm handles: More...

#include <NuElectronPXSec.h>

Inheritance diagram for genie::NuElectronPXSec:
[legend]
Collaboration diagram for genie::NuElectronPXSec:
[legend]

Public Member Functions

 NuElectronPXSec ()
 NuElectronPXSec (string config)
virtual ~NuElectronPXSec ()
double XSec (const Interaction *i, KinePhaseSpace_t k) const
 Compute the cross section for the input interaction.
double Integral (const Interaction *i) const
bool ValidProcess (const Interaction *i) const
 Can this cross section algorithm handle the input process?
bool ValidKinematics (const Interaction *i) const
 Is the input kinematical point a physically allowed one?
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.
virtual AlgStatus_t GetStatus (void) const
 Get algorithm status.
virtual bool AllowReconfig (void) const
virtual AlgCmp_t Compare (const Algorithm *alg) const
 Compare with input algorithm.
virtual void SetId (const AlgId &id)
 Set algorithm ID.
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.

Private Member Functions

void LoadConfig (void)

Private Attributes

const XSecIntegratorIfXSecIntegrator
double fSin28w
double fSin48w

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.
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.
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.
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
int AddLowRegistry (Registry *rp, bool owns=true)
 add registry with lowest priority, also update ownership
int MergeTopRegistry (const Registry &r)
int AddTopRegisties (const vector< Registry * > &rs, bool owns=false)
 Add registries with top priority, also udated Ownerships.
Protected Attributes inherited from genie::Algorithm
bool fAllowReconfig
bool fOwnsSubstruc
 true if it owns its substructure (sub-algs,...)
AlgId fID
 algorithm name and configuration set
vector< Registry * > fConfVect
vector< bool > fOwnerships
 ownership for every registry in fConfVect
AlgStatus_t fStatus
 algorithm execution status
AlgMapfOwnedSubAlgMp
 local pool for owned sub-algs (taken out of the factory pool)

Detailed Description

nu/nubar + e- scattering differential cross section
The cross section algorithm handles:

  • nue/nuebar + e- -> nue/nuebar + e- [CC + NC + interference]
  • numu/nutau + e- -> numu/nutau + e- [NC]
  • numubar/nutaubar + e- -> numubar/nutaubar + e- [NC]
  • numu/nutau + e- -> l- + nu_e [CC]

Is a concrete implementation of the XSecAlgorithmI interface.

References:\n W.J.Marciano and Z.Parsa, Neutrino-electron scattering theory,
J.Phys.G: Nucl.Part.Phys. 29 (2003) 2629-2645
Author
Costas Andreopoulos <c.andreopoulos \at cern.ch> University of Liverpool
Created:\n February 10, 2006
License:\n Copyright (c) 2003-2025, The GENIE Collaboration
For the full text of the license visit http://copyright.genie-mc.org

Definition at line 38 of file NuElectronPXSec.h.

Constructor & Destructor Documentation

◆ NuElectronPXSec() [1/2]

NuElectronPXSec::NuElectronPXSec ( )

Definition at line 27 of file NuElectronPXSec.cxx.

27 :
28XSecAlgorithmI("genie::NuElectronPXSec")
29{
30
31}

References genie::XSecAlgorithmI::XSecAlgorithmI().

◆ NuElectronPXSec() [2/2]

NuElectronPXSec::NuElectronPXSec ( string config)

Definition at line 33 of file NuElectronPXSec.cxx.

33 :
34XSecAlgorithmI("genie::NuElectronPXSec", config)
35{
36
37}

References genie::XSecAlgorithmI::XSecAlgorithmI().

◆ ~NuElectronPXSec()

NuElectronPXSec::~NuElectronPXSec ( )
virtual

Definition at line 39 of file NuElectronPXSec.cxx.

40{
41
42}

Member Function Documentation

◆ Configure() [1/2]

void NuElectronPXSec::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 153 of file NuElectronPXSec.cxx.

154{
155 Algorithm::Configure(config);
156 this->LoadConfig();
157}
virtual void Configure(const Registry &config)
Definition Algorithm.cxx:62

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

◆ Configure() [2/2]

void NuElectronPXSec::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 159 of file NuElectronPXSec.cxx.

160{
161 Algorithm::Configure(config);
162 this->LoadConfig();
163}

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

◆ Integral()

double NuElectronPXSec::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 135 of file NuElectronPXSec.cxx.

136{
137 double xsec = fXSecIntegrator->Integrate(this,interaction);
138 return xsec;
139}
const XSecIntegratorI * fXSecIntegrator

References fXSecIntegrator.

◆ LoadConfig()

void NuElectronPXSec::LoadConfig ( void )
private

Definition at line 165 of file NuElectronPXSec.cxx.

166{
167 // weinberg angle
168 double thw ;
169 GetParam( "WeinbergAngle", thw ) ;
170 fSin28w = TMath::Power(TMath::Sin(thw), 2);
171 fSin48w = TMath::Power(TMath::Sin(thw), 4);
172
173 // load XSec Integrator
175 dynamic_cast<const XSecIntegratorI *> (this->SubAlg("XSec-Integrator"));
176 assert(fXSecIntegrator);
177}
bool GetParam(const RgKey &name, T &p, bool is_top_call=true) const
const Algorithm * SubAlg(const RgKey &registry_key) const

References fSin28w, fSin48w, fXSecIntegrator, genie::Algorithm::GetParam(), and genie::Algorithm::SubAlg().

Referenced by Configure(), and Configure().

◆ ValidKinematics()

bool NuElectronPXSec::ValidKinematics ( const Interaction * i) const
virtual

Is the input kinematical point a physically allowed one?

Reimplemented from genie::XSecAlgorithmI.

Definition at line 147 of file NuElectronPXSec.cxx.

148{
149 if(interaction->TestBit(kISkipKinematicChk)) return true;
150 return true;
151}
const UInt_t kISkipKinematicChk
if set, skip kinematic validity checks
Definition Interaction.h:48

References genie::kISkipKinematicChk.

Referenced by XSec().

◆ ValidProcess()

bool NuElectronPXSec::ValidProcess ( const Interaction * i) const
virtual

Can this cross section algorithm handle the input process?

Implements genie::XSecAlgorithmI.

Definition at line 141 of file NuElectronPXSec.cxx.

142{
143 if(interaction->TestBit(kISkipProcessChk)) return true;
144 return true;
145}
const UInt_t kISkipProcessChk
if set, skip process validity checks
Definition Interaction.h:47

References genie::kISkipProcessChk.

Referenced by XSec().

◆ XSec()

double NuElectronPXSec::XSec ( const Interaction * i,
KinePhaseSpace_t k ) const
virtual

Compute the cross section for the input interaction.

Implements genie::XSecAlgorithmI.

Definition at line 44 of file NuElectronPXSec.cxx.

46{
47 if(! this -> ValidProcess (interaction) ) return 0.;
48 if(! this -> ValidKinematics (interaction) ) return 0.;
49
50 //----- get initial state & kinematics
51 const InitialState & init_state = interaction -> InitState();
52 const Kinematics & kinematics = interaction -> Kine();
53 const ProcessInfo & proc_info = interaction -> ProcInfo();
54
55 double Ev = init_state.ProbeE(kRfLab);
56 double me = kElectronMass;
57 double y = kinematics.y();
58 double A = kGF2*2*me*Ev/kPi;
59
60 y = 1 - me/Ev - y; // FSPL = electron. XSec below are expressed in Marciano's y!
61 if(y > 1/(1+0.5*me/Ev)) return 0;
62 if(y < 0) return 0;
63
64 double xsec = 0; // <-- dxsec/dy
65
66 int inu = init_state.ProbePdg();
67
68 // nue + e- -> nue + e- [CC + NC + interference]
69 if(pdg::IsNuE(inu))
70 {
71 double em = -0.5 - fSin28w;
72 double ep = -fSin28w;
73 xsec = TMath::Power(em,2) + TMath::Power(ep*(1-y),2) - ep*em*me*y/Ev;
74 xsec *= A;
75 }
76
77 // nuebar + e- -> nue + e- [CC + NC + interference]
78 if(pdg::IsAntiNuE(inu))
79 {
80 double em = -0.5 - fSin28w;
81 double ep = -fSin28w;
82 xsec = TMath::Power(ep,2) + TMath::Power(em*(1-y),2) - ep*em*me*y/Ev;
83 xsec *= A;
84 }
85
86 // numu/nutau + e- -> numu/nutau + e- [NC]
87 if( (pdg::IsNuMu(inu)||pdg::IsNuTau(inu)) && proc_info.IsWeakNC() )
88 {
89 double em = 0.5 - fSin28w;
90 double ep = -fSin28w;
91 xsec = TMath::Power(em,2) + TMath::Power(ep*(1-y),2) - ep*em*me*y/Ev;
92 xsec *= A;
93 }
94
95 // numubar/nutaubar + e- -> numubar/nutaubar + e- [NC]
96 if( (pdg::IsAntiNuMu(inu)||pdg::IsAntiNuTau(inu)) && proc_info.IsWeakNC() )
97 {
98 double em = 0.5 - fSin28w;
99 double ep = -fSin28w;
100 xsec = TMath::Power(ep,2) + TMath::Power(em*(1-y),2) - ep*em*me*y/Ev;
101 xsec *= A;
102 }
103
104 // numu/nutau + e- -> l- + nu_e [CC}
105 if( (pdg::IsNuMu(inu)||pdg::IsNuTau(inu)) && proc_info.IsWeakCC() ) xsec=0;
106/*
107 double ml = (pdg::IsNuMu(inu)) ? kMuonMass : kTauMass;
108 double ml2 = TMath::Power(ml,2);
109 xsec = (kGF2*s/kPi)*(1-ml2/s);
110 xsec = TMath::Max(0.,xsec); // if s<ml2 => xsec<0 : force to xsec=0
111*/
112
113#ifdef __GENIE_LOW_LEVEL_MESG_ENABLED__
114 LOG("Elastic", pDEBUG)
115 << "*** dxsec(ve-)/dy [free e-](Ev="<< Ev << ", y= "<< y<< ") = "<< xsec;
116#endif
117
118 //----- The algorithm computes dxsec/dy
119 // Check whether variable tranformation is needed
120 if(kps!=kPSyfE) {
121 double J = utils::kinematics::Jacobian(interaction,kPSyfE,kps);
122 xsec *= J;
123 }
124
125 //----- If requested return the free electron xsec even for nuclear target
126 if( interaction->TestBit(kIAssumeFreeElectron) ) return xsec;
127
128 //----- Scale for the number of scattering centers at the target
129 int Ne = init_state.Tgt().Z(); // num of scattering centers
130 xsec *= Ne;
131
132 return xsec;
133}
#define pDEBUG
Definition Messenger.h:63
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE,...
Definition Messenger.h:96
const Target & Tgt(void) const
int ProbePdg(void) const
double ProbeE(RefFrame_t rf) const
double y(bool selected=false) const
bool ValidKinematics(const Interaction *i) const
Is the input kinematical point a physically allowed one?
bool ValidProcess(const Interaction *i) const
Can this cross section algorithm handle the input process?
bool IsWeakNC(void) const
bool IsWeakCC(void) const
int Z(void) const
Definition Target.h:68
bool IsAntiNuTau(int pdgc)
Definition PDGUtils.cxx:183
bool IsNuE(int pdgc)
Definition PDGUtils.cxx:158
bool IsAntiNuE(int pdgc)
Definition PDGUtils.cxx:173
bool IsAntiNuMu(int pdgc)
Definition PDGUtils.cxx:178
bool IsNuMu(int pdgc)
Definition PDGUtils.cxx:163
bool IsNuTau(int pdgc)
Definition PDGUtils.cxx:168
double Jacobian(const Interaction *const i, KinePhaseSpace_t f, KinePhaseSpace_t t)
double J(double q0, double q3, double Enu, double ml)
Definition MECUtils.cxx:147
const UInt_t kIAssumeFreeElectron
Definition Interaction.h:50
@ kRfLab
Definition RefFrame.h:26

References fSin28w, genie::pdg::IsAntiNuE(), genie::pdg::IsAntiNuMu(), genie::pdg::IsAntiNuTau(), genie::pdg::IsNuE(), genie::pdg::IsNuMu(), genie::pdg::IsNuTau(), genie::ProcessInfo::IsWeakCC(), genie::ProcessInfo::IsWeakNC(), genie::utils::kinematics::Jacobian(), genie::constants::kElectronMass, genie::constants::kGF2, genie::kIAssumeFreeElectron, genie::constants::kPi, genie::kPSyfE, genie::kRfLab, LOG, pDEBUG, genie::InitialState::ProbeE(), genie::InitialState::ProbePdg(), genie::InitialState::Tgt(), ValidKinematics(), ValidProcess(), genie::Kinematics::y(), and genie::Target::Z().

Member Data Documentation

◆ fSin28w

double genie::NuElectronPXSec::fSin28w
private

Definition at line 61 of file NuElectronPXSec.h.

Referenced by LoadConfig(), and XSec().

◆ fSin48w

double genie::NuElectronPXSec::fSin48w
private

Definition at line 62 of file NuElectronPXSec.h.

Referenced by LoadConfig().

◆ fXSecIntegrator

const XSecIntegratorI* genie::NuElectronPXSec::fXSecIntegrator
private

Definition at line 59 of file NuElectronPXSec.h.

Referenced by Integral(), and LoadConfig().


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