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

Computes, at Leading Order (LO), the differential cross section for neutrino charm production using the Aivazis,Olness,Tung model. Is a concrete implementation of the XSecAlgorithmI interface. More...

#include <AivazisCharmPXSecLO.h>

Inheritance diagram for genie::AivazisCharmPXSecLO:
[legend]
Collaboration diagram for genie::AivazisCharmPXSecLO:
[legend]

Public Member Functions

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

const PDFModelIfPDFModel
const XSecIntegratorIfXSecIntegrator
double fMc
double fVcd
double fVcs
double fMc2
double fVcd2
double fVcs2

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

Computes, at Leading Order (LO), the differential cross section for neutrino charm production using the Aivazis,Olness,Tung model. Is a concrete implementation of the XSecAlgorithmI interface.

References:\n M.A.G.Aivazis, F.I.Olness and W.K.Tung
Phys.Rev.D50, 3085-3101 (1994)
Author
Costas Andreopoulos <c.andreopoulos \at cern.ch> University of Liverpool
Created:\n June 10, 2004
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 33 of file AivazisCharmPXSecLO.h.

Constructor & Destructor Documentation

◆ AivazisCharmPXSecLO() [1/2]

AivazisCharmPXSecLO::AivazisCharmPXSecLO ( )

Definition at line 35 of file AivazisCharmPXSecLO.cxx.

35 :
36XSecAlgorithmI("genie::AivazisCharmPXSecLO")
37{
38
39}

References genie::XSecAlgorithmI::XSecAlgorithmI().

◆ AivazisCharmPXSecLO() [2/2]

AivazisCharmPXSecLO::AivazisCharmPXSecLO ( string config)

Definition at line 41 of file AivazisCharmPXSecLO.cxx.

41 :
42XSecAlgorithmI("genie::AivazisCharmPXSecLO", config)
43{
44
45}

References genie::XSecAlgorithmI::XSecAlgorithmI().

◆ ~AivazisCharmPXSecLO()

AivazisCharmPXSecLO::~AivazisCharmPXSecLO ( )
virtual

Definition at line 47 of file AivazisCharmPXSecLO.cxx.

48{
49
50}

Member Function Documentation

◆ Configure() [1/2]

void AivazisCharmPXSecLO::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 191 of file AivazisCharmPXSecLO.cxx.

192{
193 Algorithm::Configure(config);
194 this->LoadConfig();
195}
virtual void Configure(const Registry &config)
Definition Algorithm.cxx:62

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

◆ Configure() [2/2]

void AivazisCharmPXSecLO::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 197 of file AivazisCharmPXSecLO.cxx.

198{
199 Algorithm::Configure(param_set);
200 this->LoadConfig();
201}

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

◆ Integral()

double AivazisCharmPXSecLO::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 162 of file AivazisCharmPXSecLO.cxx.

163{
164 double xsec = fXSecIntegrator->Integrate(this,interaction);
165 return xsec;
166}
const XSecIntegratorI * fXSecIntegrator

References fXSecIntegrator.

◆ LoadConfig()

void AivazisCharmPXSecLO::LoadConfig ( void )
private

Definition at line 203 of file AivazisCharmPXSecLO.cxx.

204{
205
206 // read mc, Vcd, Vcs from config or set defaults
207 GetParam( "Charm-Mass", fMc ) ;
208 GetParam( "CKM-Vcd", fVcd ) ;
209 GetParam( "CKM-Vcs", fVcs ) ;
210
211 fMc2 = TMath::Power(fMc, 2);
212 fVcd2 = TMath::Power(fVcd, 2);
213 fVcs2 = TMath::Power(fVcs, 2);
214
215 // load PDF set
216 fPDFModel = dynamic_cast<const PDFModelI *> (this->SubAlg("PDF-Set"));
217 assert(fPDFModel);
218
219 // load XSec Integrator
221 dynamic_cast<const XSecIntegratorI *> (this->SubAlg("XSec-Integrator"));
222 assert(fXSecIntegrator);
223}
bool GetParam(const RgKey &name, T &p, bool is_top_call=true) const
const Algorithm * SubAlg(const RgKey &registry_key) const

References fMc, fMc2, fPDFModel, fVcd, fVcd2, fVcs, fVcs2, fXSecIntegrator, genie::Algorithm::GetParam(), and genie::Algorithm::SubAlg().

Referenced by Configure(), and Configure().

◆ ValidProcess()

bool AivazisCharmPXSecLO::ValidProcess ( const Interaction * i) const
virtual

Can this cross section algorithm handle the input process?

Implements genie::XSecAlgorithmI.

Definition at line 168 of file AivazisCharmPXSecLO.cxx.

169{
170 if(interaction->TestBit(kISkipProcessChk)) return true;
171
172 const XclsTag & xcls = interaction->ExclTag();
173 const InitialState & init_state = interaction->InitState();
174 const ProcessInfo & proc_info = interaction->ProcInfo();
175
176 if(!proc_info.IsDeepInelastic()) return false;
177 if(!proc_info.IsWeak()) return false;
178
179 bool is_inclusive_charm = (xcls.IsCharmEvent() && xcls.IsInclusiveCharm());
180 if(!is_inclusive_charm) return false;
181
182 int nu = init_state.ProbePdg();
183 int nuc = init_state.Tgt().HitNucPdg();
184
185 if (!pdg::IsProton(nuc) && !pdg::IsNeutron(nuc)) return false;
186 if (!pdg::IsNeutrino(nu) && !pdg::IsAntiNeutrino(nu)) return false;
187
188 return true;
189}
const Target & Tgt(void) const
int ProbePdg(void) const
bool IsDeepInelastic(void) const
bool IsWeak(void) const
int HitNucPdg(void) const
Definition Target.cxx:304
bool IsInclusiveCharm(void) const
Definition XclsTag.cxx:54
bool IsCharmEvent(void) const
Definition XclsTag.h:50
bool IsNeutrino(int pdgc)
Definition PDGUtils.cxx:110
bool IsProton(int pdgc)
Definition PDGUtils.cxx:336
bool IsNeutron(int pdgc)
Definition PDGUtils.cxx:341
bool IsAntiNeutrino(int pdgc)
Definition PDGUtils.cxx:118
const UInt_t kISkipProcessChk
if set, skip process validity checks
Definition Interaction.h:47

References genie::Interaction::ExclTag(), genie::Target::HitNucPdg(), genie::Interaction::InitState(), genie::pdg::IsAntiNeutrino(), genie::XclsTag::IsCharmEvent(), genie::ProcessInfo::IsDeepInelastic(), genie::XclsTag::IsInclusiveCharm(), genie::pdg::IsNeutrino(), genie::pdg::IsNeutron(), genie::pdg::IsProton(), genie::ProcessInfo::IsWeak(), genie::kISkipProcessChk, genie::InitialState::ProbePdg(), genie::Interaction::ProcInfo(), and genie::InitialState::Tgt().

Referenced by XSec().

◆ XSec()

double AivazisCharmPXSecLO::XSec ( const Interaction * i,
KinePhaseSpace_t k ) const
virtual

Compute the cross section for the input interaction.

Implements genie::XSecAlgorithmI.

Definition at line 52 of file AivazisCharmPXSecLO.cxx.

54{
55 if(! this -> ValidProcess (interaction) ) return 0.;
56 if(! this -> ValidKinematics (interaction) ) return 0.;
57
58 if(interaction->ProcInfo().IsWeakNC() || interaction->ProcInfo().IsDarkMatter()) return 0;
59
60 //----- get init-state & kinematical parameters
61 const Kinematics & kinematics = interaction -> Kine();
62 const InitialState & init_state = interaction -> InitState();
63 const Target & target = init_state.Tgt();
64
65 //----- get target information (hit nucleon and quark)
66 int nu = init_state.ProbePdg();
67 int nuc = target.HitNucPdg();
68 bool isP = pdg::IsProton (nuc);
69 bool isN = pdg::IsNeutron(nuc);
70 bool qset = target.HitQrkIsSet();
71 int qpdg = (qset) ? target.HitQrkPdg() : 0;
72 bool sea = (qset) ? target.HitSeaQrk() : false;
73 bool isd = (qset) ? pdg::IsDQuark (qpdg) : false;
74 bool iss = (qset) ? pdg::IsSQuark (qpdg) : false;
75 bool isdb = (qset) ? pdg::IsAntiDQuark (qpdg) : false;
76 bool issb = (qset) ? pdg::IsAntiSQuark (qpdg) : false;
77 bool isnu = pdg::IsNeutrino(nu);
78 bool isnub = pdg::IsAntiNeutrino(nu);
79
80 //----- compute kinematic & auxiliary parameters
81 double E = init_state.ProbeE(kRfHitNucRest);
82 double x = kinematics.x();
83 double y = kinematics.y();
84 double x2 = TMath::Power(x, 2);
85 double Mnuc = target.HitNucMass();
86 double Mnuc2 = TMath::Power(Mnuc, 2);
87 double Q2 = 2*Mnuc*E*x*y;
88 double inverse_eta = 0.5/x + TMath::Sqrt( 0.25/x2 + Mnuc2/Q2 );
89 double eta = 1 / inverse_eta;
90 double xi = eta * (1 + fMc2/Q2);
91 double coshpsi = (2-y)/y; // hyperbolic-cosine(psi)
92 double sinh2psi = TMath::Power(coshpsi, 2) - 1;
93
94 //----- make sure that the mass-corrected x is in physical region
95 if(xi<=0 || xi>1) return 0;
96
97 //----- Calculate the PDFs
98 PDF pdfs;
99 pdfs.SetModel(fPDFModel); // <-- attach algorithm
100 pdfs.Calculate(xi, Q2); // <-- calculate
101
102 //----- proton pdfs
103 double us = pdfs.UpSea()/xi;
104 double uv = pdfs.UpValence()/xi;
105 double ds = pdfs.DownSea()/xi;
106 double dv = pdfs.DownValence()/xi;
107 double s = pdfs.Strange()/xi;
108
109 //----- if the hit nucleon is a neutron, swap u<->d
110 double tmp;
111 if (isN) {
112 tmp = uv; uv = dv; dv = tmp;
113 tmp = us; us = ds; ds = tmp;
114 }
115
116 //----- if a hit quark has been set then switch off other contributions
117 if(qset) {
118 if(isnub) { bool pass = (isdb||issb)&&sea; if(!pass) return 0; }
119 if(isnu) { bool pass = isd||(iss&&sea); if(!pass) return 0; }
120 dv = ( isd && !sea) ? dv : 0.;
121 ds = ( (isd||isdb) && sea) ? ds : 0.;
122 s = ( (iss||issb) && sea) ? s : 0.;
123 }
124 //----- in case of a \bar{v}+N calculation (quark not set) zero the d/val contribution
125 if(isnub) dv=0;
126
127 //----- calculate the cross section
128 double Gw2 = TMath::Power((kGF/kSqrt2)*(1+Q2/kMw2), 2);
129 double f1 = TMath::Power( (1+coshpsi)/2, 2);
130 double f2 = 0.25 * (fMc2/Q2) * sinh2psi;
131 double xsec_0 = 2 * Gw2 * (y*Q2/kPi) * (f1+f2);
132 double xsec_d = xsec_0 * fVcd2 * (dv+ds);
133 double xsec_s = xsec_0 * fVcs2 * s;
134 double xsec = xsec_d + xsec_s;
135
136#ifdef __GENIE_LOW_LEVEL_MESG_ENABLED__
137 double W2 = Mnuc2 + 2*Mnuc*E*y*(1-x);
138 double W = TMath::Max(0., TMath::Sqrt(W2));
139 LOG("DISCharmXSec", pDEBUG)
140 << "\n dxsec[DISCharm,FreeN]/dxdy (E= " << E
141 << ", x= " << x << ", y= " << y
142 << ", W= " << W << ", Q2 = " << Q2 << ") = " << xsec;
143#endif
144
145 //----- The algorithm computes d^2xsec/dxdy
146 // Check whether variable tranformation is needed
147 if(kps!=kPSxyfE) {
148 double J = utils::kinematics::Jacobian(interaction,kPSxyfE,kps);
149 xsec *= J;
150 }
151
152 //----- If requested return the free nucleon xsec even for input nuclear tgt
153 if( interaction->TestBit(kIAssumeFreeNucleon) ) return xsec;
154
155 //----- Nuclear cross section (simple scaling here)
156 int NNucl = (isP) ? target.Z() : target.N();
157 xsec *= NNucl;
158
159 return xsec;
160}
#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
bool ValidProcess(const Interaction *i) const
Can this cross section algorithm handle the input process?
double ProbeE(RefFrame_t rf) const
double y(bool selected=false) const
double x(bool selected=false) const
double UpSea(void) const
Definition PDF.h:52
void SetModel(const PDFModelI *model)
Definition PDF.cxx:42
double DownSea(void) const
Definition PDF.h:53
void Calculate(double x, double q2)
Definition PDF.cxx:49
double UpValence(void) const
Definition PDF.h:50
double DownValence(void) const
Definition PDF.h:51
double Strange(void) const
Definition PDF.h:54
int N(void) const
Definition Target.h:69
int Z(void) const
Definition Target.h:68
int HitQrkPdg(void) const
Definition Target.cxx:242
bool HitSeaQrk(void) const
Definition Target.cxx:299
double HitNucMass(void) const
Definition Target.cxx:233
bool HitQrkIsSet(void) const
Definition Target.cxx:292
virtual bool ValidKinematics(const Interaction *i) const
Is the input kinematical point a physically allowed one?
bool IsAntiSQuark(int pdgc)
Definition PDGUtils.cxx:306
bool IsSQuark(int pdgc)
Definition PDGUtils.cxx:276
bool IsAntiDQuark(int pdgc)
Definition PDGUtils.cxx:301
bool IsDQuark(int pdgc)
Definition PDGUtils.cxx:271
double W(const Interaction *const i)
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::PDF::Calculate(), genie::PDF::DownSea(), genie::PDF::DownValence(), fMc2, fPDFModel, fVcd2, fVcs2, genie::Target::HitNucMass(), genie::Target::HitNucPdg(), genie::Target::HitQrkIsSet(), genie::Target::HitQrkPdg(), genie::Target::HitSeaQrk(), genie::pdg::IsAntiDQuark(), genie::pdg::IsAntiNeutrino(), genie::pdg::IsAntiSQuark(), genie::ProcessInfo::IsDarkMatter(), genie::pdg::IsDQuark(), genie::pdg::IsNeutrino(), genie::pdg::IsNeutron(), genie::pdg::IsProton(), genie::pdg::IsSQuark(), genie::ProcessInfo::IsWeakNC(), genie::utils::kinematics::Jacobian(), genie::constants::kGF, genie::kIAssumeFreeNucleon, genie::constants::kMw2, genie::constants::kPi, genie::kPSxyfE, genie::kRfHitNucRest, genie::constants::kSqrt2, LOG, genie::Target::N(), pDEBUG, genie::InitialState::ProbeE(), genie::InitialState::ProbePdg(), genie::Interaction::ProcInfo(), genie::PDF::SetModel(), genie::PDF::Strange(), genie::InitialState::Tgt(), genie::PDF::UpSea(), genie::PDF::UpValence(), genie::XSecAlgorithmI::ValidKinematics(), ValidProcess(), genie::Kinematics::x(), genie::Kinematics::y(), and genie::Target::Z().

Member Data Documentation

◆ fMc

double genie::AivazisCharmPXSecLO::fMc
private

Definition at line 59 of file AivazisCharmPXSecLO.h.

Referenced by LoadConfig().

◆ fMc2

double genie::AivazisCharmPXSecLO::fMc2
private

Definition at line 62 of file AivazisCharmPXSecLO.h.

Referenced by LoadConfig(), and XSec().

◆ fPDFModel

const PDFModelI* genie::AivazisCharmPXSecLO::fPDFModel
private

Definition at line 54 of file AivazisCharmPXSecLO.h.

Referenced by LoadConfig(), and XSec().

◆ fVcd

double genie::AivazisCharmPXSecLO::fVcd
private

Definition at line 60 of file AivazisCharmPXSecLO.h.

Referenced by LoadConfig().

◆ fVcd2

double genie::AivazisCharmPXSecLO::fVcd2
private

Definition at line 63 of file AivazisCharmPXSecLO.h.

Referenced by LoadConfig(), and XSec().

◆ fVcs

double genie::AivazisCharmPXSecLO::fVcs
private

Definition at line 61 of file AivazisCharmPXSecLO.h.

Referenced by LoadConfig().

◆ fVcs2

double genie::AivazisCharmPXSecLO::fVcs2
private

Definition at line 64 of file AivazisCharmPXSecLO.h.

Referenced by LoadConfig(), and XSec().

◆ fXSecIntegrator

const XSecIntegratorI* genie::AivazisCharmPXSecLO::fXSecIntegrator
private

Definition at line 55 of file AivazisCharmPXSecLO.h.

Referenced by Integral(), and LoadConfig().


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