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

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

#include <DMElectronPXSec.h>

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

Public Member Functions

 DMElectronPXSec ()
 DMElectronPXSec (string config)
virtual ~DMElectronPXSec ()
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 fgZp4
double fQdmL
double fQdmR
double fQdmS
double fQeL
double fQeR
double fMedMass
int fVelMode

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 39 of file DMElectronPXSec.h.

Constructor & Destructor Documentation

◆ DMElectronPXSec() [1/2]

DMElectronPXSec::DMElectronPXSec ( )

Definition at line 37 of file DMElectronPXSec.cxx.

37 :
38XSecAlgorithmI("genie::DMElectronPXSec")
39{
40
41}

References genie::XSecAlgorithmI::XSecAlgorithmI().

◆ DMElectronPXSec() [2/2]

DMElectronPXSec::DMElectronPXSec ( string config)

Definition at line 43 of file DMElectronPXSec.cxx.

43 :
44XSecAlgorithmI("genie::DMElectronPXSec", config)
45{
46
47}

References genie::XSecAlgorithmI::XSecAlgorithmI().

◆ ~DMElectronPXSec()

DMElectronPXSec::~DMElectronPXSec ( )
virtual

Definition at line 49 of file DMElectronPXSec.cxx.

50{
51
52}

Member Function Documentation

◆ Configure() [1/2]

void DMElectronPXSec::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 164 of file DMElectronPXSec.cxx.

165{
166 Algorithm::Configure(config);
167 this->LoadConfig();
168}
virtual void Configure(const Registry &config)
Definition Algorithm.cxx:62

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

◆ Configure() [2/2]

void DMElectronPXSec::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 170 of file DMElectronPXSec.cxx.

171{
172 Algorithm::Configure(config);
173 this->LoadConfig();
174}

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

◆ Integral()

double DMElectronPXSec::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 146 of file DMElectronPXSec.cxx.

147{
148 double xsec = fXSecIntegrator->Integrate(this,interaction);
149 return xsec;
150}
const XSecIntegratorI * fXSecIntegrator

References fXSecIntegrator.

◆ LoadConfig()

void DMElectronPXSec::LoadConfig ( void )
private

Definition at line 176 of file DMElectronPXSec.cxx.

177{
178 // Dark matter couplings
179 double gZp;
180 GetParam("ZpCoupling", gZp);
181 GetParam("DarkLeftCharge", fQdmL);
182 GetParam("DarkRightCharge", fQdmR);
183 GetParam("DarkScalarCharge", fQdmS);
184 GetParam("ElectronLeftCharge", fQeL);
185 GetParam("ElectronRightCharge", fQeR);
186
187 fgZp4 = TMath::Power(gZp, 4);
188
189 // Mediator mass
191
192 // velocity dependence of interaction
193 GetParamDef("velocity-mode", fVelMode, 0 );
194
195 // load XSec Integrator
197 dynamic_cast<const XSecIntegratorI *> (this->SubAlg("XSec-Integrator"));
198 assert(fXSecIntegrator);
199}
bool GetParam(const RgKey &name, T &p, bool is_top_call=true) const
bool GetParamDef(const RgKey &name, T &p, const T &def) const
const Algorithm * SubAlg(const RgKey &registry_key) const
static PDGLibrary * Instance(void)
TParticlePDG * Find(int pdgc, bool must_exist=true)
const int kPdgMediator
Definition PDGCodes.h:220

References fgZp4, genie::PDGLibrary::Find(), fMedMass, fQdmL, fQdmR, fQdmS, fQeL, fQeR, fVelMode, fXSecIntegrator, genie::Algorithm::GetParam(), genie::Algorithm::GetParamDef(), genie::PDGLibrary::Instance(), genie::kPdgMediator, and genie::Algorithm::SubAlg().

Referenced by Configure(), and Configure().

◆ ValidKinematics()

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

Is the input kinematical point a physically allowed one?

Reimplemented from genie::XSecAlgorithmI.

Definition at line 158 of file DMElectronPXSec.cxx.

159{
160 if(interaction->TestBit(kISkipKinematicChk)) return true;
161 return true;
162}
const UInt_t kISkipKinematicChk
if set, skip kinematic validity checks
Definition Interaction.h:48

References genie::kISkipKinematicChk.

Referenced by XSec().

◆ ValidProcess()

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

Can this cross section algorithm handle the input process?

Implements genie::XSecAlgorithmI.

Definition at line 152 of file DMElectronPXSec.cxx.

153{
154 if(interaction->TestBit(kISkipProcessChk)) return true;
155 return true;
156}
const UInt_t kISkipProcessChk
if set, skip process validity checks
Definition Interaction.h:47

References genie::kISkipProcessChk.

Referenced by XSec().

◆ XSec()

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

Compute the cross section for the input interaction.

Implements genie::XSecAlgorithmI.

Definition at line 54 of file DMElectronPXSec.cxx.

56{
57 if(! this -> ValidProcess (interaction) ) return 0.;
58 if(! this -> ValidKinematics (interaction) ) return 0.;
59
60 //----- get initial state & kinematics
61 const InitialState & init_state = interaction -> InitState();
62 const Kinematics & kinematics = interaction -> Kine();
63 const ProcessInfo & proc_info = interaction -> ProcInfo();
64
65 double Ev = init_state.ProbeE(kRfLab);
66 double Ev2 = TMath::Power(Ev,2);
67 double me = kElectronMass;
68 double me2 = TMath::Power(me,2);
69 double ml = interaction->FSPrimLepton()->Mass();
70 double ml2 = TMath::Power(ml,2);
71 double y = kinematics.y();
72 double MZ2 = TMath::Power(fMedMass,2);
73 double A = fgZp4 * TMath::Power(Ev,3) * me / (4.0 * kPi * (Ev2 - ml2) * TMath::Power(MZ2 + 2.0*Ev*me*(1.0 - y),2));
74
75 // y = 1 - me/Ev - y; // FSPL = electron. XSec below are expressed in Marciano's y!
76 // if(y > 1/(1+0.5*me/Ev)) return 0;
77 // if(y < 0) return 0;
78
79 double QeV2 = TMath::Power(0.5*(fQeL+fQeR),2);
80 double QeA2 = TMath::Power(0.5*(-fQeL+fQeR),2);
81 double QeVA = 0.25*(TMath::Power(fQeR,2) - TMath::Power(fQeL,2));
82
83 double xsec = 0; // <-- dxsec/dy
84
85 int inu = init_state.ProbePdg();
86
87 if( proc_info.IsDarkMatter() && fVelMode == 0 )
88 {
89 double QdmV2 = TMath::Power(0.5*(fQdmL+fQdmR),2);
90 double QdmA2 = TMath::Power(0.5*(-fQdmL+fQdmR),2);
91 double QdmVA = 0.25*(TMath::Power(fQdmR,2) - TMath::Power(fQdmL,2));
92 double T1 = 1 + TMath::Power(y,2);
93 double T2 = (1.0 - y)* me / Ev;
94 double T3 = (1.0 - y)*ml2 / Ev / me;
95 double T4 = 2.0 * ml2 / Ev2;
96 double TL = 2.0*TMath::Power(2.0*(1.0 - y) * me * ml / MZ2 + ml/Ev,2);
97 xsec = (T1 - T2 - T3)*QdmV2*QeV2;
98 xsec += (T1 - T2 + T3 - T4)*QdmA2*QeV2;
99 xsec += (T1 + T2 - T3 - T4)*QdmV2*QeA2;
100 xsec += (T1 + T2 + T3 + T4 + TL)*QdmA2*QeA2;
101 if ( pdg::IsDarkMatter(inu) ) {
102 xsec += 4.0 * (1.0 - TMath::Power(y,2))*QdmVA*QeVA;
103 }
104 else {
105 xsec -= 4.0 * (1.0 - TMath::Power(y,2))*QdmVA*QeVA;
106 }
107 xsec *= A;
108 }
109
110 if( proc_info.IsDarkMatter() && fVelMode == 2 )
111 {
112 double QdmS2 = TMath::Power(fQdmS,2);
113 double T1 = 2.0 * y;
114 double T2 = (1.0 - y)*me2 / Ev / me;
115 double T3 = (1.0 - y)*ml2 / Ev / me;
116 double T4 = 2.0 * ml2 / Ev2;
117 xsec = (T1 - T3)*QeV2*QdmS2;
118 xsec += (T1 - T2 - T3 - T4)*QeA2*QdmS2;
119 xsec *= A;
120 }
121
122 #ifdef __GENIE_LOW_LEVEL_MESG_ENABLED__
123 LOG("Elastic", pDEBUG)
124 << "*** dxsec(ve-)/dy [free e-](Ev="<< Ev << ", y= "<< y<< ") = "<< xsec;
125 #endif
126
127 //----- The algorithm computes dxsec/dy
128 // Check whether variable tranformation is needed
129 if(kps!=kPSyfE) {
130 double J = utils::kinematics::Jacobian(interaction,kPSyfE,kps);
131 LOG("Elastic", pDEBUG) << "Multiplying by jacobian " << J;
132 xsec *= J;
133 }
134
135 //----- If requested return the free electron xsec even for nuclear target
136 if( interaction->TestBit(kIAssumeFreeElectron) ) return xsec;
137
138 //----- Scale for the number of scattering centers at the target
139 int Ne = init_state.Tgt().Z(); // num of scattering centers
140 xsec *= Ne;
141 LOG("Elastic", pDEBUG) << "Multiplying by Ne " << Ne;
142
143 return xsec;
144}
#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
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?
const Target & Tgt(void) const
int ProbePdg(void) const
double ProbeE(RefFrame_t rf) const
double y(bool selected=false) const
bool IsDarkMatter(void) const
int Z(void) const
Definition Target.h:68
bool IsDarkMatter(int pdgc)
Definition PDGUtils.cxx:127
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 fgZp4, fMedMass, fQdmL, fQdmR, fQdmS, fQeL, fQeR, genie::Interaction::FSPrimLepton(), fVelMode, genie::pdg::IsDarkMatter(), genie::ProcessInfo::IsDarkMatter(), genie::utils::kinematics::Jacobian(), genie::constants::kElectronMass, 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

◆ fgZp4

double genie::DMElectronPXSec::fgZp4
private

Definition at line 62 of file DMElectronPXSec.h.

Referenced by LoadConfig(), and XSec().

◆ fMedMass

double genie::DMElectronPXSec::fMedMass
private

Definition at line 68 of file DMElectronPXSec.h.

Referenced by LoadConfig(), and XSec().

◆ fQdmL

double genie::DMElectronPXSec::fQdmL
private

Definition at line 63 of file DMElectronPXSec.h.

Referenced by LoadConfig(), and XSec().

◆ fQdmR

double genie::DMElectronPXSec::fQdmR
private

Definition at line 64 of file DMElectronPXSec.h.

Referenced by LoadConfig(), and XSec().

◆ fQdmS

double genie::DMElectronPXSec::fQdmS
private

Definition at line 65 of file DMElectronPXSec.h.

Referenced by LoadConfig(), and XSec().

◆ fQeL

double genie::DMElectronPXSec::fQeL
private

Definition at line 66 of file DMElectronPXSec.h.

Referenced by LoadConfig(), and XSec().

◆ fQeR

double genie::DMElectronPXSec::fQeR
private

Definition at line 67 of file DMElectronPXSec.h.

Referenced by LoadConfig(), and XSec().

◆ fVelMode

int genie::DMElectronPXSec::fVelMode
private

Definition at line 69 of file DMElectronPXSec.h.

Referenced by LoadConfig(), and XSec().

◆ fXSecIntegrator

const XSecIntegratorI* genie::DMElectronPXSec::fXSecIntegrator
private

Definition at line 60 of file DMElectronPXSec.h.

Referenced by Integral(), and LoadConfig().


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