GENIEGenerator
Loading...
Searching...
No Matches
genie::ReinDFRPXSec Class Reference

Neutrino diffractive pion production cross section. More...

#include <ReinDFRPXSec.h>

Inheritance diagram for genie::ReinDFRPXSec:
[legend]
Collaboration diagram for genie::ReinDFRPXSec:
[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.
double Integral (const Interaction *i) const
bool ValidProcess (const Interaction *i) const
 Can this cross section algorithm handle the input process?
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?
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.
virtual AlgStatus_t GetStatus (void) const
 Get algorithm status.
virtual bool AllowReconfig (void) const
virtual AlgCmp_t Compare (const Algorithm *alg) const
 Compare with input algorithm.
virtual void SetId (const AlgId &id)
 Set algorithm ID.
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.

Private Member Functions

void LoadConfig (void)

Private Attributes

double fMa
 axial mass
double fBeta
 b in dsig{piN}/dt = dsig0{piN}/dt * exp(-b(t-tmin)), b ~ 0.333 (nucleon_size)^2
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.
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.
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.
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
int AddLowRegistry (Registry *rp, bool owns=true)
 add registry with lowest priority, also update ownership
int MergeTopRegistry (const Registry &r)
int AddTopRegisties (const vector< Registry * > &rs, bool owns=false)
 Add registries with top priority, also udated Ownerships.
Protected Attributes inherited from genie::Algorithm
bool fAllowReconfig
bool fOwnsSubstruc
 true if it owns its substructure (sub-algs,...)
AlgId fID
 algorithm name and configuration set
vector< Registry * > fConfVect
vector< bool > fOwnerships
 ownership for every registry in fConfVect
AlgStatus_t fStatus
 algorithm execution status
AlgMapfOwnedSubAlgMp
 local pool for owned sub-algs (taken out of the factory pool)

Detailed Description

Neutrino diffractive pion production cross section.

References:\n D.Rein, Nucl.Phys.B278(1986) 61-77
Author
Costas Andreopoulos <c.andreopoulos \at cern.ch> University of Liverpool
Created:\n Feb 17th, 2009
License:\n Copyright (c) 2003-2025, 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() [1/2]

ReinDFRPXSec::ReinDFRPXSec ( )

Definition at line 32 of file ReinDFRPXSec.cxx.

32 :
33XSecAlgorithmI("genie::ReinDFRPXSec")
34{
35
36}

References genie::XSecAlgorithmI::XSecAlgorithmI().

◆ ReinDFRPXSec() [2/2]

ReinDFRPXSec::ReinDFRPXSec ( const std::string & config)

Definition at line 38 of file ReinDFRPXSec.cxx.

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

References genie::XSecAlgorithmI::XSecAlgorithmI().

◆ ~ReinDFRPXSec()

ReinDFRPXSec::~ReinDFRPXSec ( )
virtual

Definition at line 44 of file ReinDFRPXSec.cxx.

45{
46
47}

Member Function Documentation

◆ Configure() [1/2]

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.

142{
143 Algorithm::Configure(config);
144 this->LoadConfig();
145}
virtual void Configure(const Registry &config)
Definition Algorithm.cxx:62

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

◆ Configure() [2/2]

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.

148{
149 Algorithm::Configure(config);
150 this->LoadConfig();
151}

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

◆ Integral()

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.

122{
123 double xsec = fXSecIntegrator->Integrate(this,interaction);
124 return xsec;
125}
const XSecIntegratorI * fXSecIntegrator

References fXSecIntegrator.

◆ LoadConfig()

void ReinDFRPXSec::LoadConfig ( void )
private

Definition at line 153 of file ReinDFRPXSec.cxx.

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}
bool GetParam(const RgKey &name, T &p, bool is_top_call=true) const
const Algorithm * SubAlg(const RgKey &registry_key) const
double fBeta
b in dsig{piN}/dt = dsig0{piN}/dt * exp(-b(t-tmin)), b ~ 0.333 (nucleon_size)^2
double fMa
axial mass

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

Referenced by Configure(), and Configure().

◆ ValidProcess()

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.

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}
const Target & Tgt(void) const
int Z(void) const
Definition Target.h:68
int A(void) const
Definition Target.h:70
const UInt_t kISkipProcessChk
if set, skip process validity checks
Definition Interaction.h:47

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

Referenced by XSec().

◆ XSec()

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.

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}
#define pDEBUG
Definition Messenger.h:63
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE,...
Definition Messenger.h:96
double ProbeE(RefFrame_t rf) const
static string AsString(KinePhaseSpace_t kps)
double t(bool selected=false) const
double y(bool selected=false) const
double x(bool selected=false) const
bool ValidProcess(const Interaction *i) const
Can this cross section algorithm handle the input process?
int HitNucPdg(void) const
Definition Target.cxx:304
int N(void) const
Definition Target.h:69
double HitNucMass(void) const
Definition Target.cxx:233
virtual bool ValidKinematics(const Interaction *i) const
Is the input kinematical point a physically allowed one?
bool IsProton(int pdgc)
Definition PDGUtils.cxx:336
double TotalPionNucleonXSec(double Epion, bool isChargedPion=true)
double Q2(const Interaction *const i)
double Jacobian(const Interaction *const i, KinePhaseSpace_t f, KinePhaseSpace_t t)
double J(double q0, double q3, double Enu, double ml)
Definition MECUtils.cxx:147
@ kRfHitNucRest
Definition RefFrame.h:30
const UInt_t kIAssumeFreeNucleon
Definition Interaction.h:49

References genie::KinePhaseSpace::AsString(), fBeta, fMa, genie::Target::HitNucMass(), genie::Target::HitNucPdg(), genie::pdg::IsProton(), genie::ProcessInfo::IsWeakCC(), 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::InitialState::Tgt(), genie::utils::hadxs::TotalPionNucleonXSec(), genie::XSecAlgorithmI::ValidKinematics(), ValidProcess(), and genie::Target::Z().

Member Data Documentation

◆ fBeta

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

◆ fMa

double genie::ReinDFRPXSec::fMa
private

axial mass

Definition at line 53 of file ReinDFRPXSec.h.

Referenced by LoadConfig(), and XSec().

◆ fXSecIntegrator

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: