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

Differential cross section for trident production. More...

#include <PhotonRESPXSec.h>

Inheritance diagram for genie::PhotonRESPXSec:
Inheritance graph
[legend]
Collaboration diagram for genie::PhotonRESPXSec:
Collaboration graph
[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. 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

const XSecIntegratorIfXSecIntegrator
 diff. xsec integrator More...
 
double fWmin
 Minimum value of W. More...
 
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. 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

Differential cross section for trident production.

Author
Alfonso Garcia <aagarciasoto km3net.de> IFIC & Harvard University
References:
Phys. Rev. D 100, 091301 (2019)
Created:
Dec 8, 2021
License:
Copyright (c) 2003-2024, 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::PhotonRESPXSec ( )

Definition at line 26 of file PhotonRESPXSec.cxx.

References born.

26  :
27 XSecAlgorithmI("genie::PhotonRESPXSec")
28 {
29  born = new Born();
30 }
Born level nu-electron cross section.
Definition: Born.h:26
PhotonRESPXSec::PhotonRESPXSec ( string  config)

Definition at line 32 of file PhotonRESPXSec.cxx.

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

Definition at line 38 of file PhotonRESPXSec.cxx.

39 {
40 
41 }

Member Function Documentation

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.

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

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

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

145 {
146  Algorithm::Configure(config);
147  this->LoadConfig();
148 }
virtual void Configure(const Registry &config)
Definition: Algorithm.cxx:62
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.

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

112 {
113  double xsec = fXSecIntegrator->Integrate(this,interaction);
114  return xsec;
115 }
const XSecIntegratorI * fXSecIntegrator
diff. xsec integrator
virtual double Integrate(const XSecAlgorithmI *model, const Interaction *interaction) const =0
void PhotonRESPXSec::LoadConfig ( void  )
private

Definition at line 150 of file PhotonRESPXSec.cxx.

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

Referenced by Configure().

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 }
double fWmin
Minimum value of W.
Cross Section Integrator Interface.
const XSecIntegratorI * fXSecIntegrator
diff. xsec integrator
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 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.

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

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 }
bool IsPhotonResonance(void) const
int HitNucPdg(void) const
Definition: Target.cxx:304
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 HitNucIsSet(void) const
Definition: Target.cxx:283
bool IsNeutronOrProton(int pdgc)
Definition: PDGUtils.cxx:351
const Target & Tgt(void) const
Definition: InitialState.h:66
bool IsLepton(int pdgc)
Definition: PDGUtils.cxx:86
const UInt_t kISkipProcessChk
if set, skip process validity checks
Definition: Interaction.h:47
Initial State information.
Definition: InitialState.h:48
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.

References genie::KinePhaseSpace::AsString(), born, genie::PhotonStrucFunc::EvalSF(), genie::XclsTag::FinalLeptonPdg(), fQ2PDFmin, genie::Interaction::FSPrimLepton(), fWmin, fxPDFmin, genie::Kinematics::GetKV(), genie::Born::GetS(), genie::Born::GetT(), 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::Born::PXSecCCR(), genie::Born::PXSecCCRNC(), genie::units::s, genie::InitialState::Tgt(), ValidProcess(), and genie::Target::Z().

45 {
46 
47  if(! this -> ValidProcess (interaction) ) return 0.;
48 
49  // Load SF tables
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 }
bool ValidProcess(const Interaction *i) const
Can this cross section algorithm handle the input process?
bool IsPion(int pdgc)
Definition: PDGUtils.cxx:326
int FinalLeptonPdg(void) const
Definition: XclsTag.h:74
double GetT(double mlin, double mlout, double s, double costhCM)
Definition: Born.cxx:200
double fWmin
Minimum value of W.
int HitNucPdg(void) const
Definition: Target.cxx:304
double HitNucMass(void) const
Definition: Target.cxx:233
static constexpr double s
Definition: Units.h:95
Generated/set kinematical variables for an event.
Definition: Kinematics.h:39
Structure function using photon PDFs of nucleons.
Contains minimal information for tagging exclusive processes.
Definition: XclsTag.h:39
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)
int ProbePdg(void) const
Definition: InitialState.h:64
int Z(void) const
Definition: Target.h:68
double PXSecCCR(double s, double t, double mlin, double mlout)
Definition: Born.cxx:58
double GetKV(KineVar_t kv) const
Definition: Kinematics.cxx:323
#define pINFO
Definition: Messenger.h:62
double GetS(double mlin, double Enuin)
Definition: Born.cxx:195
static PhotonStrucFunc * Instance(void)
#define pWARN
Definition: Messenger.h:60
double PXSecCCRNC(double s, double t, double mlin, double mlout)
Definition: Born.cxx:76
int N(void) const
Definition: Target.h:69
double EvalSF(int hitnuc, int hitlep, double x)
const UInt_t kIAssumeFreeNucleon
Definition: Interaction.h:49
const Target & Tgt(void) const
Definition: InitialState.h:66
double ProbeE(RefFrame_t rf) const
Initial State information.
Definition: InitialState.h:48

Member Data Documentation

Born* genie::PhotonRESPXSec::born
private

Definition at line 58 of file PhotonRESPXSec.h.

Referenced by PhotonRESPXSec(), and XSec().

double genie::PhotonRESPXSec::fQ2PDFmin
private

Definition at line 55 of file PhotonRESPXSec.h.

Referenced by LoadConfig(), and XSec().

double genie::PhotonRESPXSec::fWmin
private

Minimum value of W.

Definition at line 53 of file PhotonRESPXSec.h.

Referenced by LoadConfig(), and XSec().

double genie::PhotonRESPXSec::fxPDFmin
private

Definition at line 56 of file PhotonRESPXSec.h.

Referenced by LoadConfig(), and XSec().

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: