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

Neutrino diffractive pion production cross section. More...

#include <ReinDFRPXSec.h>

Inheritance diagram for genie::ReinDFRPXSec:
Inheritance graph
[legend]
Collaboration diagram for genie::ReinDFRPXSec:
Collaboration graph
[legend]

Public Member Functions

 ReinDFRPXSec ()
 
 ReinDFRPXSec (const std::string &config)
 
virtual ~ReinDFRPXSec ()
 
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 config)
 
- 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

double fMa
 axial mass More...
 
double fBeta
 b in dsig{piN}/dt = dsig0{piN}/dt * exp(-b(t-tmin)), b ~ 0.333 (nucleon_size)^2 More...
 
const XSecIntegratorIfXSecIntegrator
 

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

Neutrino diffractive pion production cross section.

References:
D.Rein, Nucl.Phys.B278(1986) 61-77
Author
Costas Andreopoulos <c.andreopoulos cern.ch> University of Liverpool
Created:
Feb 17th, 2009
License:
Copyright (c) 2003-2024, The GENIE Collaboration For the full text of the license visit http://copyright.genie-mc.org

Definition at line 32 of file ReinDFRPXSec.h.

Constructor & Destructor Documentation

ReinDFRPXSec::ReinDFRPXSec ( )

Definition at line 32 of file ReinDFRPXSec.cxx.

32  :
33 XSecAlgorithmI("genie::ReinDFRPXSec")
34 {
35 
36 }
ReinDFRPXSec::ReinDFRPXSec ( const std::string &  config)

Definition at line 38 of file ReinDFRPXSec.cxx.

38  :
39 XSecAlgorithmI("genie::ReinDFRPXSec", config)
40 {
41 
42 }
ReinDFRPXSec::~ReinDFRPXSec ( )
virtual

Definition at line 44 of file ReinDFRPXSec.cxx.

45 {
46 
47 }

Member Function Documentation

void ReinDFRPXSec::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 141 of file ReinDFRPXSec.cxx.

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

142 {
143  Algorithm::Configure(config);
144  this->LoadConfig();
145 }
virtual void Configure(const Registry &config)
Definition: Algorithm.cxx:62
void ReinDFRPXSec::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 147 of file ReinDFRPXSec.cxx.

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

148 {
149  Algorithm::Configure(config);
150  this->LoadConfig();
151 }
virtual void Configure(const Registry &config)
Definition: Algorithm.cxx:62
double ReinDFRPXSec::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 121 of file ReinDFRPXSec.cxx.

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

122 {
123  double xsec = fXSecIntegrator->Integrate(this,interaction);
124  return xsec;
125 }
const XSecIntegratorI * fXSecIntegrator
Definition: ReinDFRPXSec.h:56
virtual double Integrate(const XSecAlgorithmI *model, const Interaction *interaction) const =0
void ReinDFRPXSec::LoadConfig ( void  )
private

Definition at line 153 of file ReinDFRPXSec.cxx.

References fBeta, fMa, fXSecIntegrator, genie::Algorithm::GetParam(), and genie::Algorithm::SubAlg().

Referenced by Configure().

154 {
155  GetParam( "DFR-Ma", fMa ) ;
156  GetParam( "DFR-Beta",fBeta ) ;
157 
159  dynamic_cast<const XSecIntegratorI *> (this->SubAlg("XSec-Integrator") );
160  assert(fXSecIntegrator);
161 }
Cross Section Integrator Interface.
double fBeta
b in dsig{piN}/dt = dsig0{piN}/dt * exp(-b(t-tmin)), b ~ 0.333 (nucleon_size)^2
Definition: ReinDFRPXSec.h:54
const XSecIntegratorI * fXSecIntegrator
Definition: ReinDFRPXSec.h:56
double fMa
axial mass
Definition: ReinDFRPXSec.h:53
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 ReinDFRPXSec::ValidProcess ( const Interaction i) const
virtual

Can this cross section algorithm handle the input process?

Implements genie::XSecAlgorithmI.

Definition at line 127 of file ReinDFRPXSec.cxx.

References genie::Target::A(), genie::ProcessInfo::IsDiffractive(), genie::kISkipProcessChk, genie::Interaction::ProcInfo(), genie::InitialState::Tgt(), and genie::Target::Z().

Referenced by XSec().

128 {
129  //expect only free protons as target
130  const InitialState & init_state = interaction -> InitState();
131  const Target & target = init_state.Tgt();
132  if(target.A() > 1 || target.Z() != 1)
133  return false;
134 
135  if(interaction->TestBit(kISkipProcessChk)) return true;
136 
137  if(interaction->ProcInfo().IsDiffractive()) return true;
138  return false;
139 }
int A(void) const
Definition: Target.h:70
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
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 ReinDFRPXSec::XSec ( const Interaction i,
KinePhaseSpace_t  k 
) const
virtual

Compute the cross section for the input interaction.

Implements genie::XSecAlgorithmI.

Definition at line 49 of file ReinDFRPXSec.cxx.

References genie::KinePhaseSpace::AsString(), genie::units::b, fBeta, fMa, genie::Target::HitNucMass(), genie::Target::HitNucPdg(), genie::pdg::IsProton(), genie::ProcessInfo::IsWeakCC(), genie::utils::mec::J(), genie::utils::kinematics::Jacobian(), genie::constants::kGF2, genie::kIAssumeFreeNucleon, genie::constants::kPi3, genie::constants::kPionMass, genie::kPSxytfE, genie::kRfHitNucRest, LOG, genie::Target::N(), pDEBUG, genie::InitialState::ProbeE(), genie::Interaction::ProcInfo(), genie::utils::kinematics::Q2(), genie::Kinematics::t(), genie::InitialState::Tgt(), genie::utils::hadxs::TotalPionNucleonXSec(), genie::XSecAlgorithmI::ValidKinematics(), ValidProcess(), genie::Kinematics::x(), genie::Kinematics::y(), and genie::Target::Z().

51 {
52  if(! this -> ValidProcess (interaction) ) return 0.;
53  if(! this -> ValidKinematics (interaction) ) return 0.;
54 
55  const Kinematics & kinematics = interaction -> Kine();
56  const InitialState & init_state = interaction -> InitState();
57  const Target & target = init_state.Tgt();
58 
59  bool isCC = interaction->ProcInfo().IsWeakCC();
60  double E = init_state.ProbeE(kRfHitNucRest); // neutrino energy
61  double x = kinematics.x(); // bjorken x
62  double y = kinematics.y(); // inelasticity y
63  double t = kinematics.t(); // (magnitude of) square of four-momentum xferred to proton
64  double M = target.HitNucMass(); //
65  double Q2 = 2.*x*y*M*E; // momentum transfer Q2>0
66  double Gf = kGF2 * M/(16*kPi3); // GF/pi/etc factor
67  double fp = 0.93 * kPionMass; // pion decay constant (cc)
68  double fp2 = TMath::Power(fp,2.);
69  double Epi = y*E - t/(2*M); // pion energy. note we use - instead of + like Rein's paper b/c our t is magnitude only
70  double b = fBeta;
71  double ma2 = TMath::Power(fMa,2);
72  double propg = TMath::Power(ma2/(ma2+Q2),2.); // propagator term
73  double sTot = utils::hadxs::TotalPionNucleonXSec(Epi, isCC); // pi+N total cross section; CC process always produces a charged pion
74  double sTot2 = TMath::Power(sTot,2.);
75  double tFac = TMath::Exp(-b*t);
76 
77 #ifdef __GENIE_LOW_LEVEL_MESG_ENABLED__
78  LOG("ReinDFR", pDEBUG)
79  << "E = " << E << ", x = " << x << ", y = " << y << ", Q2 = " << Q2;
80  LOG("ReinDFR", pDEBUG)
81  << "Epi = " << Epi << ", s^{piN}_{tot} = " << sTot;
82  LOG("ReinDFR", pDEBUG)
83  << "b = " << b << ", t = [" << tmin << ", " << tmax << "]";
84 #endif
85 
86  // fixme: WARNING: don't leave this in here!!!
87  // only needed for comparison to Rein's paper
88 // double W2 = M*M + 2 * M * y * E - Q2;
89 // if (W2 < 4)
90 // return 0;
91 
92  //----- compute d^2sigma/dxdydt
93  double xsec = Gf*E*fp2*(1-y)*propg*sTot2*tFac;
94 
95  // NC XS is half of CC
96  if (!isCC)
97  xsec *= 0.5;
98 
99  //----- Check whether variable tranformation is needed
100  if(kps!=kPSxytfE) {
101  double J = utils::kinematics::Jacobian(interaction,kPSxytfE,kps);
102 #ifdef __GENIE_LOW_LEVEL_MESG_ENABLED__
103  LOG("ReinDFR", pDEBUG)
104  << "Jacobian for transformation to: "
105  << KinePhaseSpace::AsString(kps) << ", J = " << J;
106 #endif
107  xsec *= J;
108  }
109 
110  //----- if requested return the free nucleon xsec even for input nuclear tgt
111  if( interaction->TestBit(kIAssumeFreeNucleon) ) return xsec;
112 
113  //----- number of scattering centers in the target
114  int nucpdgc = target.HitNucPdg();
115  int NNucl = (pdg::IsProton(nucpdgc)) ? target.Z() : target.N();
116  xsec *= NNucl;
117 
118  return xsec;
119 }
double J(double q0, double q3, double Enu, double ml)
Definition: MECUtils.cxx:147
double Q2(const Interaction *const i)
Definition: KineUtils.cxx:1077
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 x(bool selected=false) const
Definition: Kinematics.cxx:99
double fBeta
b in dsig{piN}/dt = dsig0{piN}/dt * exp(-b(t-tmin)), b ~ 0.333 (nucleon_size)^2
Definition: ReinDFRPXSec.h:54
double y(bool selected=false) const
Definition: Kinematics.cxx:112
static constexpr double b
Definition: Units.h:78
virtual bool ValidKinematics(const Interaction *i) const
Is the input kinematical point a physically allowed one?
bool IsProton(int pdgc)
Definition: PDGUtils.cxx:336
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
Definition: Messenger.h:96
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
int N(void) const
Definition: Target.h:69
const UInt_t kIAssumeFreeNucleon
Definition: Interaction.h:49
double Jacobian(const Interaction *const i, KinePhaseSpace_t f, KinePhaseSpace_t t)
Definition: KineUtils.cxx:130
double fMa
axial mass
Definition: ReinDFRPXSec.h:53
double t(bool selected=false) const
Definition: Kinematics.cxx:170
bool ValidProcess(const Interaction *i) const
Can this cross section algorithm handle the input process?
const Target & Tgt(void) const
Definition: InitialState.h:66
double ProbeE(RefFrame_t rf) const
double TotalPionNucleonXSec(double Epion, bool isChargedPion=true)
Definition: HadXSUtils.cxx:51
Initial State information.
Definition: InitialState.h:48
#define pDEBUG
Definition: Messenger.h:63

Member Data Documentation

double genie::ReinDFRPXSec::fBeta
private

b in dsig{piN}/dt = dsig0{piN}/dt * exp(-b(t-tmin)), b ~ 0.333 (nucleon_size)^2

Definition at line 54 of file ReinDFRPXSec.h.

Referenced by LoadConfig(), and XSec().

double genie::ReinDFRPXSec::fMa
private

axial mass

Definition at line 53 of file ReinDFRPXSec.h.

Referenced by LoadConfig(), and XSec().

const XSecIntegratorI* genie::ReinDFRPXSec::fXSecIntegrator
private

Definition at line 56 of file ReinDFRPXSec.h.

Referenced by Integral(), and LoadConfig().


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