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::DMElectronPXSec Class Reference

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

#include <DMElectronPXSec.h>

Inheritance diagram for genie::DMElectronPXSec:
Inheritance graph
[legend]
Collaboration diagram for genie::DMElectronPXSec:
Collaboration graph
[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. 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
 
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. 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

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. \n
References:
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 cern.ch> University of Liverpool
Created:
February 10, 2006
License:
Copyright (c) 2003-2024, 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::DMElectronPXSec ( )

Definition at line 37 of file DMElectronPXSec.cxx.

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

Definition at line 43 of file DMElectronPXSec.cxx.

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

Definition at line 49 of file DMElectronPXSec.cxx.

50 {
51 
52 }

Member Function Documentation

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.

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

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

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

171 {
172  Algorithm::Configure(config);
173  this->LoadConfig();
174 }
virtual void Configure(const Registry &config)
Definition: Algorithm.cxx:62
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.

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

147 {
148  double xsec = fXSecIntegrator->Integrate(this,interaction);
149  return xsec;
150 }
const XSecIntegratorI * fXSecIntegrator
virtual double Integrate(const XSecAlgorithmI *model, const Interaction *interaction) const =0
void DMElectronPXSec::LoadConfig ( void  )
private

Definition at line 176 of file DMElectronPXSec.cxx.

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().

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 }
Cross Section Integrator Interface.
const int kPdgMediator
Definition: PDGCodes.h:220
const XSecIntegratorI * fXSecIntegrator
static PDGLibrary * Instance(void)
Definition: PDGLibrary.cxx:68
TParticlePDG * Find(int pdgc, bool must_exist=true)
Definition: PDGLibrary.cxx:86
bool GetParamDef(const RgKey &name, T &p, const T &def) const
bool GetParam(const RgKey &name, T &p, bool is_top_call=true) const
const Algorithm * SubAlg(const RgKey &registry_key) const
Definition: Algorithm.cxx:345
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.

References genie::kISkipKinematicChk.

Referenced by XSec().

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
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.

References genie::kISkipProcessChk.

Referenced by XSec().

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
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.

References genie::units::A, fgZp4, fMedMass, fQdmL, fQdmR, fQdmS, fQeL, fQeR, genie::Interaction::FSPrimLepton(), fVelMode, genie::pdg::IsDarkMatter(), genie::ProcessInfo::IsDarkMatter(), genie::utils::mec::J(), 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().

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 }
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
bool IsDarkMatter(int pdgc)
Definition: PDGUtils.cxx:127
static const double kElectronMass
double y(bool selected=false) const
Definition: Kinematics.cxx:112
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
Definition: Messenger.h:96
static constexpr double A
Definition: Units.h:74
A class encapsulating an enumeration of interaction types (EM, Weak-CC, Weak-NC) and scattering types...
Definition: ProcessInfo.h:46
int ProbePdg(void) const
Definition: InitialState.h:64
int Z(void) const
Definition: Target.h:68
bool ValidProcess(const Interaction *i) const
Can this cross section algorithm handle the input process?
bool IsDarkMatter(void) const
double Jacobian(const Interaction *const i, KinePhaseSpace_t f, KinePhaseSpace_t t)
Definition: KineUtils.cxx:130
bool ValidKinematics(const Interaction *i) const
Is the input kinematical point a physically allowed one?
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

double genie::DMElectronPXSec::fgZp4
private

Definition at line 62 of file DMElectronPXSec.h.

Referenced by LoadConfig(), and XSec().

double genie::DMElectronPXSec::fMedMass
private

Definition at line 68 of file DMElectronPXSec.h.

Referenced by LoadConfig(), and XSec().

double genie::DMElectronPXSec::fQdmL
private

Definition at line 63 of file DMElectronPXSec.h.

Referenced by LoadConfig(), and XSec().

double genie::DMElectronPXSec::fQdmR
private

Definition at line 64 of file DMElectronPXSec.h.

Referenced by LoadConfig(), and XSec().

double genie::DMElectronPXSec::fQdmS
private

Definition at line 65 of file DMElectronPXSec.h.

Referenced by LoadConfig(), and XSec().

double genie::DMElectronPXSec::fQeL
private

Definition at line 66 of file DMElectronPXSec.h.

Referenced by LoadConfig(), and XSec().

double genie::DMElectronPXSec::fQeR
private

Definition at line 67 of file DMElectronPXSec.h.

Referenced by LoadConfig(), and XSec().

int genie::DMElectronPXSec::fVelMode
private

Definition at line 69 of file DMElectronPXSec.h.

Referenced by LoadConfig(), and XSec().

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: