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

Differential cross section for trident production. More...

#include <PhotonRESPXSec.h>

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

Public Member Functions

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

const XSecIntegratorIfXSecIntegrator
 diff. xsec integrator
double fWmin
 Minimum value of W.
double fQ2PDFmin
double fxPDFmin
Bornborn

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

Differential cross section for trident production.

Author
Alfonso Garcia <aagarciasoto \at km3net.de> IFIC & Harvard University
References:\n Phys. Rev. D 100, 091301 (2019)
Created:\n Dec 8, 2021
License:\n Copyright (c) 2003-2025, The GENIE Collaboration
For the full text of the license visit http://copyright.genie-mc.org or see $GENIE/LICENSE

Definition at line 31 of file PhotonRESPXSec.h.

Constructor & Destructor Documentation

◆ PhotonRESPXSec() [1/2]

PhotonRESPXSec::PhotonRESPXSec ( )

Definition at line 26 of file PhotonRESPXSec.cxx.

26 :
27XSecAlgorithmI("genie::PhotonRESPXSec")
28{
29 born = new Born();
30}

References born, and genie::XSecAlgorithmI::XSecAlgorithmI().

◆ PhotonRESPXSec() [2/2]

PhotonRESPXSec::PhotonRESPXSec ( string config)

Definition at line 32 of file PhotonRESPXSec.cxx.

32 :
33XSecAlgorithmI("genie::PhotonRESPXSec", config)
34{
35
36}

References genie::XSecAlgorithmI::XSecAlgorithmI().

◆ ~PhotonRESPXSec()

PhotonRESPXSec::~PhotonRESPXSec ( )
virtual

Definition at line 38 of file PhotonRESPXSec.cxx.

39{
40
41}

Member Function Documentation

◆ Configure() [1/2]

void PhotonRESPXSec::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 138 of file PhotonRESPXSec.cxx.

139{
140 Algorithm::Configure(config);
141 this->LoadConfig();
142}
virtual void Configure(const Registry &config)
Definition Algorithm.cxx:62

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

◆ Configure() [2/2]

void PhotonRESPXSec::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 144 of file PhotonRESPXSec.cxx.

145{
146 Algorithm::Configure(config);
147 this->LoadConfig();
148}

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

◆ Integral()

double PhotonRESPXSec::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 111 of file PhotonRESPXSec.cxx.

112{
113 double xsec = fXSecIntegrator->Integrate(this,interaction);
114 return xsec;
115}
const XSecIntegratorI * fXSecIntegrator
diff. xsec integrator

References fXSecIntegrator.

◆ LoadConfig()

void PhotonRESPXSec::LoadConfig ( void )
private

Definition at line 150 of file PhotonRESPXSec.cxx.

151{
152
153 //-- load the differential cross section integrator
154 fXSecIntegrator = dynamic_cast<const XSecIntegratorI *> (this->SubAlg("XSec-Integrator"));
155 assert(fXSecIntegrator);
156
157 GetParam( "Xsec-Wmin", fWmin ) ;
158
159 GetParam("Q2Grid-Min", fQ2PDFmin );
160 GetParam("XGrid-Min", fxPDFmin );
161
162}
bool GetParam(const RgKey &name, T &p, bool is_top_call=true) const
const Algorithm * SubAlg(const RgKey &registry_key) const
double fWmin
Minimum value of W.

References fQ2PDFmin, fWmin, fxPDFmin, fXSecIntegrator, genie::Algorithm::GetParam(), and genie::Algorithm::SubAlg().

Referenced by Configure(), and Configure().

◆ ValidProcess()

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

Can this cross section algorithm handle the input process?

Implements genie::XSecAlgorithmI.

Definition at line 117 of file PhotonRESPXSec.cxx.

118{
119 if(interaction->TestBit(kISkipProcessChk)) return true;
120
121 const ProcessInfo & proc_info = interaction->ProcInfo();
122 if(!proc_info.IsPhotonResonance()) return false;
123
124 const InitialState & init_state = interaction -> InitState();
125 if(!pdg::IsLepton(init_state.ProbePdg())) return false;
126
127 if(! init_state.Tgt().HitNucIsSet()) return false;
128
129 int hitnuc_pdg = init_state.Tgt().HitNucPdg();
130 if(!pdg::IsNeutronOrProton(hitnuc_pdg)) return false;
131
132 return true;
133}
const Target & Tgt(void) const
int ProbePdg(void) const
bool IsPhotonResonance(void) const
int HitNucPdg(void) const
Definition Target.cxx:304
bool HitNucIsSet(void) const
Definition Target.cxx:283
bool IsLepton(int pdgc)
Definition PDGUtils.cxx:86
bool IsNeutronOrProton(int pdgc)
Definition PDGUtils.cxx:351
const UInt_t kISkipProcessChk
if set, skip process validity checks
Definition Interaction.h:47

References genie::Target::HitNucIsSet(), genie::Target::HitNucPdg(), genie::pdg::IsLepton(), genie::pdg::IsNeutronOrProton(), genie::ProcessInfo::IsPhotonResonance(), genie::kISkipProcessChk, genie::InitialState::ProbePdg(), genie::Interaction::ProcInfo(), and genie::InitialState::Tgt().

Referenced by XSec().

◆ XSec()

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

Compute the cross section for the input interaction.

Implements genie::XSecAlgorithmI.

Definition at line 43 of file PhotonRESPXSec.cxx.

45{
46
47 if(! this -> ValidProcess (interaction) ) return 0.;
48
49 // Load SF tables
50 PhotonStrucFunc * sf_tbl = PhotonStrucFunc::Instance();
51
52 const InitialState & init_state = interaction -> InitState();
53 const Kinematics & kinematics = interaction -> Kine();
54 const XclsTag & xclstag = interaction -> ExclTag();
55
56 int probepdg = init_state.ProbePdg();
57 int loutpdg = xclstag.FinalLeptonPdg();
58 int tgtpdg = init_state.Tgt().HitNucPdg();
59
60 double mlout = interaction->FSPrimLepton()->Mass(); //mass of charged lepton
61
62 double Mnuc = init_state.Tgt().HitNucMass();
63
64 double Enuin = init_state.ProbeE(kRfLab);
65 double s = born->GetS(Mnuc,Enuin);
66
67 double n1 = kinematics.GetKV(kKVn1);
68 double n2 = kinematics.GetKV(kKVn2);
69
70 double xmin = fQ2PDFmin/2./Enuin/Mnuc;
71 double x = TMath::Exp( TMath::Log(xmin) + (TMath::Log(1.0)-TMath::Log(xmin))*n2 );
72
73 if (x<fxPDFmin) return 0.;
74
75 double s_r = x*s;
76 double t_r = born->GetT(0.,mlout,s_r,n1);
77
78 double xsec = kPi/4./(s_r-Mnuc*Mnuc) * sf_tbl->EvalSF(tgtpdg,probepdg,x) * (TMath::Log(1.0)-TMath::Log(xmin)) ;
79
80 if ( pdg::IsPion(loutpdg) ) {
81 if ( TMath::Sqrt(s_r)<fWmin ) return 0.; // The W limit is because hadronization might have issues at low W (as in PYTHIA6).
82 xsec *= 64.41/10.63;
83 }
84
85 double ME = 0.;
86 if ( TMath::Abs(loutpdg)+1 == TMath::Abs(probepdg) ) ME = born->PXSecCCRNC(s_r,t_r,0.,mlout);
87 else ME = born->PXSecCCR (s_r,t_r,0.,mlout);
88 xsec *= TMath::Max(0.,ME);
89
90 if(kps!=kPSn1n2fE) {
91 LOG("PhotonRESPXSec", pWARN)
92 << "Doesn't support transformation from "
95 xsec = 0;
96 }
97
98 // If requested return the free nucleon xsec even for input nuclear tgt
99 if( interaction->TestBit(kIAssumeFreeNucleon) ) return xsec;
100
101 // Compute nuclear cross section (simple scaling here, corrections must have been included in the structure functions)
102 int NNucl = (pdg::IsProton(tgtpdg)) ? init_state.Tgt().Z() : init_state.Tgt().N();
103 xsec *= NNucl;
104
105 LOG("PhotonRESPXSec", pINFO) << "dxsec/dn1dn2 (E= " << Enuin << ", n1= " << n1 << ", n2=" << n2 << ") = " << xsec;
106
107 return xsec;
108
109}
#define pINFO
Definition Messenger.h:62
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE,...
Definition Messenger.h:96
#define pWARN
Definition Messenger.h:60
double ProbeE(RefFrame_t rf) const
static string AsString(KinePhaseSpace_t kps)
double GetKV(KineVar_t kv) const
bool ValidProcess(const Interaction *i) const
Can this cross section algorithm handle the input process?
double EvalSF(int hitnuc, int hitlep, double x)
static PhotonStrucFunc * Instance(void)
int N(void) const
Definition Target.h:69
int Z(void) const
Definition Target.h:68
double HitNucMass(void) const
Definition Target.cxx:233
int FinalLeptonPdg(void) const
Definition XclsTag.h:74
bool IsProton(int pdgc)
Definition PDGUtils.cxx:336
bool IsPion(int pdgc)
Definition PDGUtils.cxx:326
@ kKVn2
Definition KineVar.h:62
@ kKVn1
Definition KineVar.h:61
@ kRfLab
Definition RefFrame.h:26
const UInt_t kIAssumeFreeNucleon
Definition Interaction.h:49

References genie::KinePhaseSpace::AsString(), born, genie::PhotonStrucFunc::EvalSF(), genie::XclsTag::FinalLeptonPdg(), fQ2PDFmin, genie::Interaction::FSPrimLepton(), fWmin, fxPDFmin, genie::Kinematics::GetKV(), genie::Target::HitNucMass(), genie::Target::HitNucPdg(), genie::PhotonStrucFunc::Instance(), genie::pdg::IsPion(), genie::pdg::IsProton(), genie::kIAssumeFreeNucleon, genie::kKVn1, genie::kKVn2, genie::constants::kPi, genie::kPSn1n2fE, genie::kRfLab, LOG, genie::Target::N(), pINFO, genie::InitialState::ProbeE(), genie::InitialState::ProbePdg(), pWARN, genie::InitialState::Tgt(), ValidProcess(), and genie::Target::Z().

Member Data Documentation

◆ born

Born* genie::PhotonRESPXSec::born
private

Definition at line 58 of file PhotonRESPXSec.h.

Referenced by PhotonRESPXSec(), and XSec().

◆ fQ2PDFmin

double genie::PhotonRESPXSec::fQ2PDFmin
private

Definition at line 55 of file PhotonRESPXSec.h.

Referenced by LoadConfig(), and XSec().

◆ fWmin

double genie::PhotonRESPXSec::fWmin
private

Minimum value of W.

Definition at line 53 of file PhotonRESPXSec.h.

Referenced by LoadConfig(), and XSec().

◆ fxPDFmin

double genie::PhotonRESPXSec::fxPDFmin
private

Definition at line 56 of file PhotonRESPXSec.h.

Referenced by LoadConfig(), and XSec().

◆ fXSecIntegrator

const XSecIntegratorI* genie::PhotonRESPXSec::fXSecIntegrator
private

diff. xsec integrator

Definition at line 51 of file PhotonRESPXSec.h.

Referenced by Integral(), and LoadConfig().


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