Public Member Functions | Private Member Functions | Private Attributes | List of all members
genie::BardinIMDRadCorPXSec Class Reference

Computes the Inverse Muon Decay (IMD) diff. cross section using the Bardin-Dokuchaeva including all 1-loop radiative corrections.
. More...

#include <BardinIMDRadCorPXSec.h>

Inheritance diagram for genie::BardinIMDRadCorPXSec:
genie::XSecAlgorithmI genie::Algorithm

Public Member Functions

 BardinIMDRadCorPXSec ()
 
 BardinIMDRadCorPXSec (string config)
 
virtual ~BardinIMDRadCorPXSec ()
 
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...
 
void Configure (const Registry &config)
 
void Configure (string param_set)
 
- Public Member Functions inherited from genie::XSecAlgorithmI
virtual ~XSecAlgorithmI ()
 
virtual bool ValidKinematics (const Interaction *i) const
 Is the input kinematical point a physically allowed one? More...
 
- 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)
 
double Li2 (double z) const
 
double Fa (double re, double r, double y) const
 
double P (int i, double r, double y) const
 
double C (int i, int k, double r) const
 

Private Attributes

const XSecIntegratorIfXSecIntegrator
 differential x-sec integrator More...
 

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

Computes the Inverse Muon Decay (IMD) diff. cross section using the Bardin-Dokuchaeva including all 1-loop radiative corrections.
.

This is a 'trully' inclusive IMD cross section, i.e. the brem. cross section (dxsec_brem/dy)|w>w0 [see Bardin paper, cited below] is not subtracted from the IMD cross section and therefore it is not suitable for experimental situations where a photon energy trigger threshold is applied.

Is a concrete implementation of the XSecAlgorithmI interface.
D.Yu.Bardin and V.A.Dokuchaeva, Nucl.Phys.B287:839 (1987)

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

February 14, 2005

Copyright (c) 2003-2020, The GENIE Collaboration For the full text of the license visit http://copyright.genie-mc.org

Definition at line 39 of file BardinIMDRadCorPXSec.h.

Constructor & Destructor Documentation

BardinIMDRadCorPXSec::BardinIMDRadCorPXSec ( )

Definition at line 27 of file BardinIMDRadCorPXSec.cxx.

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

Definition at line 33 of file BardinIMDRadCorPXSec.cxx.

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

Definition at line 39 of file BardinIMDRadCorPXSec.cxx.

40 {
41 
42 }

Member Function Documentation

double BardinIMDRadCorPXSec::C ( int  i,
int  k,
double  r 
) const
private

Definition at line 189 of file BardinIMDRadCorPXSec.cxx.

190 {
191  if ( i == 1 ) {
192 
193  if (k == -3) return -0.19444444*TMath::Power(r,3.);
194  else if (k == -2) return (0.083333333+0.29166667*r)*TMath::Power(r,2.);
195  else if (k == -1) return -0.58333333*r - 0.5*TMath::Power(r,2.) - TMath::Power(r,3.)/6.;
196  else if (k == 0) return -1.30555560 + 3.125*r + 0.375*TMath::Power(r,2.);
197  else if (k == 1) return -0.91666667 - 0.25*r;
198  else if (k == 2) return 0.041666667;
199  else return 0.;
200 
201  } else if ( i == 2 ) {
202 
203  if (k == -3) return 0.;
204  else if (k == -2) return 0.5*TMath::Power(r,2.);
205  else if (k == -1) return 0.5*r - 2*TMath::Power(r,2.);
206  else if (k == 0) return 0.25 - 0.75*r + 1.5*TMath::Power(r,2);
207  else if (k == 1) return 0.5;
208  else if (k == 2) return 0.;
209  else return 0.;
210 
211  } else if ( i == 3 ) {
212 
213  if (k == -3) return 0.16666667*TMath::Power(r,3.);
214  else if (k == -2) return 0.25*TMath::Power(r,2.)*(1-r);
215  else if (k == -1) return r-0.5*TMath::Power(r,2.);
216  else if (k == 0) return 0.66666667;
217  else if (k == 1) return 0.;
218  else if (k == 2) return 0.;
219  else return 0.;
220 
221  } else if ( i == 4 ) {
222 
223  if (k == -3) return 0.;
224  else if (k == -2) return TMath::Power(r,2.);
225  else if (k == -1) return r*(1-4.*r);
226  else if (k == 0) return 1.5*TMath::Power(r,2.);
227  else if (k == 1) return 1.;
228  else if (k == 2) return 0.;
229  else return 0.;
230 
231  } else if ( i == 5 ) {
232 
233  if (k == -3) return 0.16666667*TMath::Power(r,3.);
234  else if (k == -2) return -0.25*TMath::Power(r,2.)*(1+r);
235  else if (k == -1) return 0.5*r*(1+3*r);
236  else if (k == 0) return -1.9166667+2.25*r-1.5*TMath::Power(r,2);
237  else if (k == 1) return -0.5;
238  else if (k == 2) return 0.;
239  else return 0.;
240 
241  } else if ( i == 6 ) {
242 
243  if (k == -3) return 0.;
244  else if (k == -2) return 0.16666667*TMath::Power(r,2.);
245  else if (k == -1) return -0.25*r*(r+0.33333333);
246  else if (k == 0) return 1.25*(r+0.33333333);
247  else if (k == 1) return 0.5;
248  else if (k == 2) return 0.;
249  else return 0.;
250 
251  } else return 0.;
252 }
void BardinIMDRadCorPXSec::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 254 of file BardinIMDRadCorPXSec.cxx.

255 {
256  Algorithm::Configure(config);
257  this->LoadConfig();
258 }
virtual void Configure(const Registry &config)
Definition: Algorithm.cxx:62
void BardinIMDRadCorPXSec::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 260 of file BardinIMDRadCorPXSec.cxx.

261 {
262  Algorithm::Configure(param_set);
263  this->LoadConfig();
264 }
virtual void Configure(const Registry &config)
Definition: Algorithm.cxx:62
double BardinIMDRadCorPXSec::Fa ( double  re,
double  r,
double  y 
) const
private

Definition at line 111 of file BardinIMDRadCorPXSec.cxx.

112 {
113  double y2 = y * y;
114  double rre = r * re;
115  double r_y = r/y;
116  double y_r = y/r;
117 
118  double fa = 0;
119 
120  fa = (1-r) * ( TMath::Log(y2/rre) * TMath::Log(1-r_y) +
121  TMath::Log(y_r) * TMath::Log(1-y) -
122  this->Li2( r ) +
123  this->Li2( y ) +
124  this->Li2( (r-y) / (1-y) ) +
125  1.5 * (1-r) * TMath::Log(1-r)
126  )
127  +
128 
129  0.5*(1+3*r) * ( this->Li2( (1-r_y) / (1-r) ) -
130  this->Li2( (y-r) / (1-r) ) -
131  TMath::Log(y_r) * TMath::Log( (y-r) / (1-r) )
132  )
133  +
134 
135  this->P(1,r,y) -
136  this->P(2,r,y) * TMath::Log(r) -
137  this->P(3,r,y) * TMath::Log(re) +
138  this->P(4,r,y) * TMath::Log(y) +
139  this->P(5,r,y) * TMath::Log(1-y) +
140  this->P(6,r,y) * (1 - r_y) * TMath::Log(1-r_y);
141 
142  return fa;
143 }
double P(int i, double r, double y) const
double BardinIMDRadCorPXSec::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 99 of file BardinIMDRadCorPXSec.cxx.

100 {
101  double xsec = fXSecIntegrator->Integrate(this,interaction);
102  return xsec;
103 }
const XSecIntegratorI * fXSecIntegrator
differential x-sec integrator
virtual double Integrate(const XSecAlgorithmI *model, const Interaction *interaction) const =0
double BardinIMDRadCorPXSec::Li2 ( double  z) const
private

Definition at line 158 of file BardinIMDRadCorPXSec.cxx.

159 {
160  double epsilon = 1e-2;
161  double tmin = epsilon;
162  double tmax = 1. - epsilon;
163 
164 #ifdef __GENIE_LOW_LEVEL_MESG_ENABLED__
165  LOG("BardinIMD", pDEBUG)
166  << "Summing BardinIMDRadCorIntegrand in [" << tmin<< ", " << tmax<< "]";
167 #endif
168 
169  ROOT::Math::IBaseFunctionOneDim * integrand = new
173 
174  double abstol = 1; // We mostly care about relative tolerance
175  double reltol = 1E-4;
176  int nmaxeval = 100000;
177  ROOT::Math::Integrator ig(*integrand,ig_type,abstol,reltol,nmaxeval);
178  double li2 = ig.Integral(tmin, tmax);
179 
180 #ifdef __GENIE_LOW_LEVEL_MESG_ENABLED__
181  LOG("BardinIMD", pDEBUG) << "Li2(z = " << z << ")" << li2;
182 #endif
183 
184  delete integrand;
185 
186  return li2;
187 }
ROOT::Math::IntegrationOneDim::Type Integration1DimTypeFromString(string type)
Definition: GSLUtils.cxx:23
int Type
Definition: 018_def.c:12
const double e
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
Definition: Messenger.h:96
#define pDEBUG
Definition: Messenger.h:63
void BardinIMDRadCorPXSec::LoadConfig ( void  )
private

Definition at line 266 of file BardinIMDRadCorPXSec.cxx.

267 {
268  ////fIntegrator =
269 //// dynamic_cast<const IntegratorI *> (this->SubAlg("Integrator"));
270 ///// assert(fIntegrator);
271 
273  dynamic_cast<const XSecIntegratorI *> (this->SubAlg("XSec-Integrator"));
274  assert(fXSecIntegrator);
275 }
Cross Section Integrator Interface.
const XSecIntegratorI * fXSecIntegrator
differential x-sec integrator
const Algorithm * SubAlg(const RgKey &registry_key) const
Definition: Algorithm.cxx:345
double BardinIMDRadCorPXSec::P ( int  i,
double  r,
double  y 
) const
private

Definition at line 145 of file BardinIMDRadCorPXSec.cxx.

146 {
147  int kmin = -3;
148  int kmax = 2;
149  double p = 0;
150  for(int k = kmin; k <= kmax; k++) {
151  double c = this->C(i,k,r);
152  double yk = TMath::Power(y,k);
153  p += (c*yk);
154  }
155  return p;
156 }
double C(int i, int k, double r) const
p
Definition: test.py:223
bool BardinIMDRadCorPXSec::ValidProcess ( const Interaction i) const
virtual

Can this cross section algorithm handle the input process?

Implements genie::XSecAlgorithmI.

Definition at line 105 of file BardinIMDRadCorPXSec.cxx.

106 {
107  if(interaction->TestBit(kISkipProcessChk)) return true;
108  return true;
109 }
const UInt_t kISkipProcessChk
if set, skip process validity checks
Definition: Interaction.h:47
double BardinIMDRadCorPXSec::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 BardinIMDRadCorPXSec.cxx.

46 {
47  if(! this -> ValidProcess (interaction) ) return 0.;
48  if(! this -> ValidKinematics (interaction) ) return 0.;
49 
50  const InitialState & init_state = interaction -> InitState();
51 
52  double E = init_state.ProbeE(kRfLab);
53  double sig0 = kGF2 * kElectronMass * E / kPi;
54  double re = 0.5 * kElectronMass / E;
55  double r = (kMuonMass2 / kElectronMass2) * re;
56  double y = interaction->Kine().y();
57 
58  y = 1-y; //Note: y = (Ev-El)/Ev but in Bardin's paper y=El/Ev.
59 
60  double ymin = r + re;
61  double ymax = 1 + re + r*re / (1+re);
62 
63  double e = 1E-5;
64  ymax = TMath::Min(ymax,1-e); // avoid ymax=1, due to a log(1-y)
65 
66 #ifdef __GENIE_LOW_LEVEL_MESG_ENABLED__
67  LOG("BardinIMD", pDEBUG)
68  << "sig0 = " << sig0 << ", r = " << r << ", re = " << re;
69  LOG("BardinIMD", pDEBUG)
70  << "allowed y: [" << ymin << ", " << ymax << "]";
71 #endif
72 
73  if(y<ymin || y>ymax) return 0;
74 
75  double xsec = 2 * sig0 * ( 1 - r + (kAem/kPi) * Fa(re,r,y) );
76 
77 #ifdef __GENIE_LOW_LEVEL_MESG_ENABLED__
78  LOG("BardinIMD", pINFO)
79  << "dxsec[1-loop]/dy (Ev = " << E << ", y = " << y << ") = " << xsec;
80 #endif
81 
82  // The algorithm computes dxsec/dy
83  // Check whether variable tranformation is needed
84  if(kps!=kPSyfE) {
86  xsec *= J;
87  }
88 
89  // If requested return the free electron xsec even for nuclear target
90  if( interaction->TestBit(kIAssumeFreeElectron) ) return xsec;
91 
92  // Scale for the number of scattering centers at the target
93  int Ne = init_state.Tgt().Z(); // num of scattering centers
94  xsec *= Ne;
95 
96  return xsec;
97 }
double J(double q0, double q3, double Enu, double ml)
Definition: MECUtils.cxx:147
static const double kElectronMass
Definition: Constants.h:70
static const double kAem
Definition: Constants.h:56
virtual bool ValidKinematics(const Interaction *i) const
Is the input kinematical point a physically allowed one?
const double e
#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
Definition: Constants.h:83
static const double kMuonMass2
Definition: Constants.h:84
int Z(void) const
Definition: Target.h:68
#define pINFO
Definition: Messenger.h:62
E
Definition: 018_def.c:13
double Fa(double re, double r, double y) const
double Jacobian(const Interaction *const i, KinePhaseSpace_t f, KinePhaseSpace_t t)
Definition: KineUtils.cxx:130
bool ValidProcess(const Interaction *i) const
Can this cross section algorithm handle the input process?
const Target & Tgt(void) const
Definition: InitialState.h:66
static const double kGF2
Definition: Constants.h:59
double ProbeE(RefFrame_t rf) const
static const double kPi
Definition: Constants.h:37
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::BardinIMDRadCorPXSec::fXSecIntegrator
private

differential x-sec integrator

Definition at line 70 of file BardinIMDRadCorPXSec.h.


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