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

Differential cross section for charged lepton elastic scattering.
Is a concrete implementation of the XSecAlgorithmI interface.
. More...

#include <RosenbluthPXSec.h>

Inheritance diagram for genie::RosenbluthPXSec:
genie::XSecAlgorithmI genie::Algorithm

Public Member Functions

 RosenbluthPXSec ()
 
 RosenbluthPXSec (string config)
 
virtual ~RosenbluthPXSec ()
 
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)
 

Private Attributes

const XSecIntegratorIfXSecIntegrator
 
const ELFormFactorsModelIfElFFModel
 
ELFormFactors fELFF
 
bool fCleanUpfElFFModel
 

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

Differential cross section for charged lepton elastic scattering.
Is a concrete implementation of the XSecAlgorithmI interface.
.

See for example: R.Bradford, A.Bodek, H.Budd, J.Arrington, Nucl.Phys.B159 (2006) 127

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

Sep 15, 2009

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

Definition at line 32 of file RosenbluthPXSec.h.

Constructor & Destructor Documentation

RosenbluthPXSec::RosenbluthPXSec ( )

Definition at line 31 of file RosenbluthPXSec.cxx.

31  :
32 XSecAlgorithmI("genie::RosenbluthPXSec")
33 {
34 
35 }
RosenbluthPXSec::RosenbluthPXSec ( string  config)

Definition at line 37 of file RosenbluthPXSec.cxx.

37  :
38 XSecAlgorithmI("genie::RosenbluthPXSec", config)
39 {
40 
41 }
static Config * config
Definition: config.cpp:1054
RosenbluthPXSec::~RosenbluthPXSec ( )
virtual

Definition at line 43 of file RosenbluthPXSec.cxx.

44 {
45  if (fCleanUpfElFFModel) {
46  delete fElFFModel;
47  }
48 }
const ELFormFactorsModelI * fElFFModel

Member Function Documentation

void RosenbluthPXSec::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 161 of file RosenbluthPXSec.cxx.

162 {
163  Algorithm::Configure(config);
164  this->LoadConfig();
165 }
virtual void Configure(const Registry &config)
Definition: Algorithm.cxx:62
void RosenbluthPXSec::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 167 of file RosenbluthPXSec.cxx.

168 {
170  this->LoadConfig();
171 }
static Config * config
Definition: config.cpp:1054
virtual void Configure(const Registry &config)
Definition: Algorithm.cxx:62
double RosenbluthPXSec::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 133 of file RosenbluthPXSec.cxx.

134 {
135  double xsec = fXSecIntegrator->Integrate(this,interaction);
136  return xsec;
137 }
const XSecIntegratorI * fXSecIntegrator
virtual double Integrate(const XSecAlgorithmI *model, const Interaction *interaction) const =0
void RosenbluthPXSec::LoadConfig ( void  )
private

Definition at line 173 of file RosenbluthPXSec.cxx.

174 {
175  fElFFModel = 0;
176 
177  // load elastic form factors model
178  fElFFModel = dynamic_cast<const ELFormFactorsModelI *> ( this -> SubAlg("ElasticFormFactorsModel" ) ) ;
179 
180  assert(fElFFModel);
181 
182  fCleanUpfElFFModel = false;
183  bool useFFTE = false ;
184  GetParam( "UseElFFTransverseEnhancement", useFFTE ) ;
185  if( useFFTE ) {
186  const ELFormFactorsModelI* sub_alg = fElFFModel;
187  fElFFModel = dynamic_cast<const ELFormFactorsModelI *> ( this -> SubAlg("TransverseEnhancement") ) ;
188  dynamic_cast<const TransverseEnhancementFFModel*>(fElFFModel)->SetElFFBaseModel( sub_alg );
189  fCleanUpfElFFModel = true;
190  }
192 
193  // load XSec Integrator
195  dynamic_cast<const XSecIntegratorI *> (this->SubAlg("XSec-Integrator"));
196  assert(fXSecIntegrator);
197 }
Cross Section Integrator Interface.
const XSecIntegratorI * fXSecIntegrator
Pure abstract base class. Defines the ELFormFactorsModelI interface to be implemented by any algorith...
bool GetParam(const RgKey &name, T &p, bool is_top_call=true) const
void SetModel(const ELFormFactorsModelI *model)
Attach an algorithm.
Modification of magnetic form factors to match observed enhancement in transverse cross section of th...
const ELFormFactorsModelI * fElFFModel
const Algorithm * SubAlg(const RgKey &registry_key) const
Definition: Algorithm.cxx:345
bool RosenbluthPXSec::ValidProcess ( const Interaction i) const
virtual

Can this cross section algorithm handle the input process?

Implements genie::XSecAlgorithmI.

Definition at line 139 of file RosenbluthPXSec.cxx.

140 {
141  if(interaction->TestBit(kISkipProcessChk)) return true;
142 
143  const ProcessInfo & proc_info = interaction->ProcInfo();
144 
145  if(!proc_info.IsQuasiElastic()) return false;
146  if(!proc_info.IsEM()) return false;
147 
148  const InitialState & init_state = interaction->InitState();
149 
150  int hitnuc = init_state.Tgt().HitNucPdg();
151  bool is_pn = (pdg::IsProton(hitnuc) || pdg::IsNeutron(hitnuc));
152  if (!is_pn) return false;
153 
154  int probe = init_state.ProbePdg();
155  bool is_chgl = pdg::IsChargedLepton(probe);
156  if (!is_chgl) return false;
157 
158  return true;
159 }
int HitNucPdg(void) const
Definition: Target.cxx:304
bool IsQuasiElastic(void) const
Definition: ProcessInfo.cxx:69
bool IsChargedLepton(int pdgc)
Definition: PDGUtils.cxx:98
bool IsNeutron(int pdgc)
Definition: PDGUtils.cxx:338
bool IsProton(int pdgc)
Definition: PDGUtils.cxx:333
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
bool IsEM(void) const
const Target & Tgt(void) const
Definition: InitialState.h:66
const UInt_t kISkipProcessChk
if set, skip process validity checks
Definition: Interaction.h:47
Initial State information.
Definition: InitialState.h:48
double RosenbluthPXSec::XSec ( const Interaction i,
KinePhaseSpace_t  k 
) const
virtual

Compute the cross section for the input interaction.

Implements genie::XSecAlgorithmI.

Definition at line 50 of file RosenbluthPXSec.cxx.

52 {
53  if(! this -> ValidProcess (interaction) ) return 0.;
54  if(! this -> ValidKinematics (interaction) ) return 0.;
55 
56  // Get interaction information
57  const InitialState & init_state = interaction -> InitState();
58  const Kinematics & kinematics = interaction -> Kine();
59  const Target & target = init_state.Tgt();
60 
61  int nucpdgc = target.HitNucPdg();
62  double E = init_state.ProbeE(kRfHitNucRest);
63  double Q2 = kinematics.Q2();
64  double M = target.HitNucMass();
65 
66  double E2 = E*E;
67  double E3 = E*E2;
68  double M2 = M*M;
69 
70  // Calculate scattering angle
71  //
72  // Q^2 = 4 * E^2 * sin^2 (theta/2) / ( 1 + 2 * (E/M) * sin^2(theta/2) ) =>
73  // sin^2 (theta/2) = MQ^2 / (4ME^2 - 2EQ^2)
74 
75  double sin2_halftheta = M*Q2 / (4*M*E2 - 2*E*Q2);
76  double sin4_halftheta = TMath::Power(sin2_halftheta, 2.);
77  double cos2_halftheta = 1.-sin2_halftheta;
78  //unused double cos_halftheta = TMath::Sqrt(cos2_halftheta);
79  double tan2_halftheta = sin2_halftheta/cos2_halftheta;
80 
81  // Calculate the elastic nucleon form factors
83  double Gm = pdg::IsProton(nucpdgc) ? fELFF.Gmp() : fELFF.Gmn();
84  double Ge = pdg::IsProton(nucpdgc) ? fELFF.Gep() : fELFF.Gen();
85  double Ge2 = Ge*Ge;
86  double Gm2 = Gm*Gm;
87 
88  // Calculate tau and the virtual photon polarization (epsilon)
89  double tau = Q2/(4*M2);
90  double epsilon = 1. / (1. + 2.*(1.+tau)*tan2_halftheta);
91 
92  // Calculate the scattered lepton energy
93  double Ep = E / (1. + 2.*(E/M)*sin2_halftheta);
94  double Ep2 = Ep*Ep;
95 
96  // Calculate the Mott cross section dsigma/dOmega
97  double xsec_mott = (0.25 * kAem2 * Ep / E3) * (cos2_halftheta/sin4_halftheta);
98 
99  // Calculate the electron-nucleon elastic cross section dsigma/dOmega
100  double xsec = xsec_mott * (Ge2 + (tau/epsilon)*Gm2) / (1+tau);
101 
102  // Convert dsigma/dOmega --> dsigma/dQ2
103  // xsec *= (kPi/(Ep*E)); // bug introduced in v3.0.6
104  xsec *= (kPi/(Ep2)); // fixed before v3.2
105 
106  // The algorithm computes dxsec/dQ2
107  // Check whether variable tranformation is needed
108  if(kps!=kPSQ2fE) {
110 #ifdef __GENIE_LOW_LEVEL_MESG_ENABLED__
111  LOG("Rosenbluth", pDEBUG)
112  << "Jacobian for transformation to: "
113  << KinePhaseSpace::AsString(kps) << ", J = " << J;
114 #endif
115  xsec *= J;
116  }
117 
118  // If requested, return the free nucleon xsec even for input nuclear tgt
119  if( interaction->TestBit(kIAssumeFreeNucleon) ) return xsec;
120 
121  // Take into account the number of nucleons/tgt
122  int NNucl = (pdg::IsProton(nucpdgc)) ? target.Z() : target.N();
123  xsec *= NNucl;
124 
125  // Compute & apply nuclear suppression factor
126  // (R(Q2) is adapted from NeuGEN - see comments therein)
127  double R = nuclear::NuclQELXSecSuppression("Default", 0.5, interaction);
128  xsec *= R;
129 
130  return xsec;
131 }
double J(double q0, double q3, double Enu, double ml)
Definition: MECUtils.cxx:147
double Q2(const Interaction *const i)
Definition: KineUtils.cxx:1064
int HitNucPdg(void) const
Definition: Target.cxx:304
double HitNucMass(void) const
Definition: Target.cxx:233
Generated/set kinematical variables for an event.
Definition: Kinematics.h:39
double Gen(void) const
Get the computed form factor Gen.
Definition: ELFormFactors.h:56
virtual bool ValidKinematics(const Interaction *i) const
Is the input kinematical point a physically allowed one?
bool IsProton(int pdgc)
Definition: PDGUtils.cxx:333
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
Definition: Messenger.h:96
bool ValidProcess(const Interaction *i) const
Can this cross section algorithm handle the input process?
static const double kAem2
Definition: Constants.h:57
static string AsString(KinePhaseSpace_t kps)
A Neutrino Interaction Target. Is a transparent encapsulation of quite different physical systems suc...
Definition: Target.h:40
int Z(void) const
Definition: Target.h:68
void Calculate(const Interaction *interaction)
Calculate the form factors for the input interaction using the attached algorithm.
double Gmn(void) const
Get the computed form factor Gmn.
Definition: ELFormFactors.h:59
int N(void) const
Definition: Target.h:69
const UInt_t kIAssumeFreeNucleon
Definition: Interaction.h:49
E
Definition: 018_def.c:13
Definition: 018_def.c:13
double Gmp(void) const
Get the computed form factor Gmp.
Definition: ELFormFactors.h:53
double Jacobian(const Interaction *const i, KinePhaseSpace_t f, KinePhaseSpace_t t)
Definition: KineUtils.cxx:130
double Gep(void) const
Get the computed form factor Gep.
Definition: ELFormFactors.h:50
double Q2(bool selected=false) const
Definition: Kinematics.cxx:125
const Target & Tgt(void) const
Definition: InitialState.h:66
double ProbeE(RefFrame_t rf) const
static const double kPi
Definition: Constants.h:37
double NuclQELXSecSuppression(string kftable, double pmax, const Interaction *in)
Initial State information.
Definition: InitialState.h:48
#define pDEBUG
Definition: Messenger.h:63

Member Data Documentation

bool genie::RosenbluthPXSec::fCleanUpfElFFModel
private

Definition at line 56 of file RosenbluthPXSec.h.

ELFormFactors genie::RosenbluthPXSec::fELFF
mutableprivate

Definition at line 55 of file RosenbluthPXSec.h.

const ELFormFactorsModelI* genie::RosenbluthPXSec::fElFFModel
private

Definition at line 54 of file RosenbluthPXSec.h.

const XSecIntegratorI* genie::RosenbluthPXSec::fXSecIntegrator
private

Definition at line 53 of file RosenbluthPXSec.h.


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