Public Member Functions | Private Member Functions | Private Attributes | List of all members
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:
genie::XSecAlgorithmI genie::Algorithm

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

Detailed Description

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

Is a concrete implementation of the XSecAlgorithmI interface.
W.J.Marciano and Z.Parsa, Neutrino-electron scattering theory, J.Phys.G: Nucl.Part.Phys. 29 (2003) 2629-2645

Author
Costas Andreopoulos <constantinos.andreopoulos cern.ch> University of Liverpool & STFC Rutherford Appleton Laboratory

February 10, 2006

Copyright (c) 2003-2020, 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::NuElectronPXSec ( )

Definition at line 27 of file NuElectronPXSec.cxx.

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

Definition at line 33 of file NuElectronPXSec.cxx.

33  :
34 XSecAlgorithmI("genie::NuElectronPXSec", config)
35 {
36 
37 }
static Config * config
Definition: config.cpp:1054
NuElectronPXSec::~NuElectronPXSec ( )
virtual

Definition at line 39 of file NuElectronPXSec.cxx.

40 {
41 
42 }

Member Function Documentation

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
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 {
162  this->LoadConfig();
163 }
static Config * config
Definition: config.cpp:1054
virtual void Configure(const Registry &config)
Definition: Algorithm.cxx:62
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
virtual double Integrate(const XSecAlgorithmI *model, const Interaction *interaction) const =0
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 }
Cross Section Integrator Interface.
const XSecIntegratorI * fXSecIntegrator
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 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
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
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) {
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 }
bool IsNuTau(int pdgc)
Definition: PDGUtils.cxx:165
bool IsWeakCC(void) const
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 IsAntiNuTau(int pdgc)
Definition: PDGUtils.cxx:180
bool IsNuE(int pdgc)
Definition: PDGUtils.cxx:155
static const double kElectronMass
Definition: Constants.h:70
double y(bool selected=false) const
Definition: Kinematics.cxx:112
bool IsNuMu(int pdgc)
Definition: PDGUtils.cxx:160
bool IsWeakNC(void) const
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
Definition: Messenger.h:96
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 IsAntiNuMu(int pdgc)
Definition: PDGUtils.cxx:175
bool ValidKinematics(const Interaction *i) const
Is the input kinematical point a physically allowed one?
#define A
Definition: memgrp.cpp:38
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
bool ValidProcess(const Interaction *i) const
Can this cross section algorithm handle the input process?
static const double kGF2
Definition: Constants.h:59
double ProbeE(RefFrame_t rf) const
static const double kPi
Definition: Constants.h:37
bool IsAntiNuE(int pdgc)
Definition: PDGUtils.cxx:170
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::NuElectronPXSec::fSin28w
private

Definition at line 61 of file NuElectronPXSec.h.

double genie::NuElectronPXSec::fSin48w
private

Definition at line 62 of file NuElectronPXSec.h.

const XSecIntegratorI* genie::NuElectronPXSec::fXSecIntegrator
private

Definition at line 59 of file NuElectronPXSec.h.


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