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

Differential cross section for W boson production. More...

#include <PhotonCOHPXSec.h>

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

Public Member Functions

 PhotonCOHPXSec ()
 PhotonCOHPXSec (string config)
virtual ~PhotonCOHPXSec ()
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)
double F2_Q (double Q, double r0) const

Private Attributes

const XSecIntegratorIfXSecIntegrator
 diff. xsec integrator
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 W boson 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 PhotonCOHPXSec.h.

Constructor & Destructor Documentation

◆ PhotonCOHPXSec() [1/2]

PhotonCOHPXSec::PhotonCOHPXSec ( )

Definition at line 28 of file PhotonCOHPXSec.cxx.

28 :
29XSecAlgorithmI("genie::PhotonCOHPXSec")
30{
31 born = new Born();
32}

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

◆ PhotonCOHPXSec() [2/2]

PhotonCOHPXSec::PhotonCOHPXSec ( string config)

Definition at line 34 of file PhotonCOHPXSec.cxx.

34 :
35XSecAlgorithmI("genie::PhotonCOHPXSec", config)
36{
37
38}

References genie::XSecAlgorithmI::XSecAlgorithmI().

◆ ~PhotonCOHPXSec()

PhotonCOHPXSec::~PhotonCOHPXSec ( )
virtual

Definition at line 40 of file PhotonCOHPXSec.cxx.

41{
42
43}

Member Function Documentation

◆ Configure() [1/2]

void PhotonCOHPXSec::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 146 of file PhotonCOHPXSec.cxx.

147{
148 Algorithm::Configure(config);
149 this->LoadConfig();
150}
virtual void Configure(const Registry &config)
Definition Algorithm.cxx:62

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

◆ Configure() [2/2]

void PhotonCOHPXSec::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 152 of file PhotonCOHPXSec.cxx.

153{
154 Algorithm::Configure(config);
155 this->LoadConfig();
156}

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

◆ F2_Q()

double PhotonCOHPXSec::F2_Q ( double Q,
double r0 ) const
private

Definition at line 112 of file PhotonCOHPXSec.cxx.

113{
114 // Analytic Woods-Saxon, A.3 of https://arxiv.org/pdf/1807.10973.pdf
115 double FF = 0.0;
116 double coth = 1./TMath::TanH(kPi*Q*a);
117 FF = 3.*kPi*a/(TMath::Power(r0,2)+TMath::Power(kPi*a,2)) / (Q*r0* TMath::SinH(kPi*Q*a));
118 FF *= (kPi*a*coth*TMath::Sin(Q*r0) - r0 * TMath::Cos(Q*r0));
119 return TMath::Power(FF,2);
120}
const double r0
const double a

References a, genie::constants::kPi, and r0.

Referenced by XSec().

◆ Integral()

double PhotonCOHPXSec::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 122 of file PhotonCOHPXSec.cxx.

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

References fXSecIntegrator.

◆ LoadConfig()

void PhotonCOHPXSec::LoadConfig ( void )
private

Definition at line 158 of file PhotonCOHPXSec.cxx.

159{
160
161 //-- load the differential cross section integrator
162 fXSecIntegrator = dynamic_cast<const XSecIntegratorI *> (this->SubAlg("XSec-Integrator"));
163 assert(fXSecIntegrator);
164
165}
const Algorithm * SubAlg(const RgKey &registry_key) const

References fXSecIntegrator, and genie::Algorithm::SubAlg().

Referenced by Configure(), and Configure().

◆ ValidProcess()

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

Can this cross section algorithm handle the input process?

Implements genie::XSecAlgorithmI.

Definition at line 128 of file PhotonCOHPXSec.cxx.

129{
130 if(interaction->TestBit(kISkipProcessChk)) return true;
131
132 const ProcessInfo & proc_info = interaction->ProcInfo();
133 if(!proc_info.IsPhotonCoherent()) return false;
134
135 const InitialState & init_state = interaction -> InitState();
136 if(!pdg::IsLepton(init_state.ProbePdg())) return false;
137
138 if(init_state.Tgt().HitNucIsSet()) return false;
139
140 return true;
141}
const Target & Tgt(void) const
int ProbePdg(void) const
bool IsPhotonCoherent(void) const
bool HitNucIsSet(void) const
Definition Target.cxx:283
bool IsLepton(int pdgc)
Definition PDGUtils.cxx:86
const UInt_t kISkipProcessChk
if set, skip process validity checks
Definition Interaction.h:47

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

Referenced by XSec().

◆ XSec()

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

Compute the cross section for the input interaction.

Implements genie::XSecAlgorithmI.

Definition at line 45 of file PhotonCOHPXSec.cxx.

47{
48
49 if(! this -> ValidProcess (interaction) ) return 0.;
50
51 const InitialState & init_state = interaction -> InitState();
52 const Kinematics & kinematics = interaction -> Kine();
53
54 int probepdg = init_state.ProbePdg();
55 double E = init_state.ProbeE(kRfLab);
56
57 double mlout = 0;
58 if (pdg::IsNuE (TMath::Abs(probepdg))) mlout = kElectronMass;
59 else if (pdg::IsNuMu (TMath::Abs(probepdg))) mlout = kMuonMass;
60 else if (pdg::IsNuTau(TMath::Abs(probepdg))) mlout = kTauMass;
61 double mlout2 = mlout*mlout;
62
63 int A = init_state.Tgt().A();
64 int Z = init_state.Tgt().Z();
65 double Mtgt = Z*kProtonMass + (A-Z)*kNeutronMass;
66
67 double n1 = kinematics.GetKV(kKVn1);
68 double n2 = kinematics.GetKV(kKVn2);
69 double n3 = kinematics.GetKV(kKVn3);
70
71 double mL = mlout+kMw;
72
73 double Delta = TMath::Power(2.*E*Mtgt-mL*mL,2)-4.*TMath::Power(Mtgt*mL,2);
74 if (Delta<0) return 0.;
75
76 double s12_min = E/(2.*E+Mtgt)*(mL*mL+2.*E*Mtgt-TMath::Sqrt(Delta));
77 double s12_max = E/(2.*E+Mtgt)*(mL*mL+2.*E*Mtgt+TMath::Sqrt(Delta));
78 double s12 = TMath::Exp( TMath::Log(s12_min)+(TMath::Log(s12_max)-TMath::Log(s12_min))*n2);
79
80 double Q2_min = TMath::Power(s12,2)*Mtgt/2./E/(2.*E*Mtgt-s12);
81 double Q2_max = s12 - mL*mL;
82 double Q2 = TMath::Exp( TMath::Log(Q2_min) + (TMath::Log(Q2_max)-TMath::Log(Q2_min))*n3 );
83
84 double s = s12 - Q2;
85 double s13 = s12/2.*((1.+kMw2/s-mlout2/s)-TMath::Sqrt(born->Lambda(1.,kMw2/s,mlout2/s))*n1);
86
87 double ME_T = born->PXSecPhoton_T(s12,s13,Q2,mlout2) * (1.-s12/2./E/Mtgt-TMath::Power(s12/2./E,2)/Q2);
88 double ME_L = born->PXSecPhoton_L(s12,s13,Q2,mlout2) * TMath::Power(1.-s12/4./E/Mtgt,2);
89
90 double ME = ME_T+ME_L;
91 double dps2 = 1/32./kPi2/s12 * TMath::Sqrt( born->Lambda(1.,kMw2/s,mlout2/s) ) * (TMath::Log(Q2_max)-TMath::Log(Q2_min)) * (TMath::Log(s12_max)-TMath::Log(s12_min));
92 double dP = born->GetReAlpha()*TMath::Power(Z,2)*F2_Q( TMath::Sqrt(Q2), r0*TMath::Power(A,1./3.) );
93
94 double xsec = ME * dps2 * dP;
95
96 if(kps!=kPSn1n2n3fE) {
97 LOG("PhotonCOHPXSec", pWARN)
98 << "Doesn't support transformation from "
101 xsec = 0;
102 }
103
104 // If requested return the free nucleon xsec even for input nuclear tgt
105 if( interaction->TestBit(kIAssumeFreeNucleon) ) return xsec;
106
107 LOG("PhotonCOHPXSec", pINFO) << "dxsec/dn1dn2dn3 (E= " << E << ", n1= " << n1 << ", n2=" << n2 << ", n3=" << n3 << ") = " << xsec;
108
109 return xsec;
110}
#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
double F2_Q(double Q, double r0) const
bool ValidProcess(const Interaction *i) const
Can this cross section algorithm handle the input process?
int Z(void) const
Definition Target.h:68
int A(void) const
Definition Target.h:70
bool IsNuE(int pdgc)
Definition PDGUtils.cxx:158
bool IsNuMu(int pdgc)
Definition PDGUtils.cxx:163
bool IsNuTau(int pdgc)
Definition PDGUtils.cxx:168
double Q2(const Interaction *const i)
@ kKVn2
Definition KineVar.h:62
@ kKVn1
Definition KineVar.h:61
@ kKVn3
Definition KineVar.h:63
@ kRfLab
Definition RefFrame.h:26
const UInt_t kIAssumeFreeNucleon
Definition Interaction.h:49

References genie::Target::A(), genie::KinePhaseSpace::AsString(), born, F2_Q(), genie::Kinematics::GetKV(), genie::pdg::IsNuE(), genie::pdg::IsNuMu(), genie::pdg::IsNuTau(), genie::constants::kElectronMass, genie::kIAssumeFreeNucleon, genie::kKVn1, genie::kKVn2, genie::kKVn3, genie::constants::kMuonMass, genie::constants::kMw, genie::constants::kMw2, genie::constants::kNeutronMass, genie::constants::kPi2, genie::constants::kProtonMass, genie::kPSn1n2n3fE, genie::kRfLab, genie::constants::kTauMass, LOG, pINFO, genie::InitialState::ProbeE(), genie::InitialState::ProbePdg(), pWARN, r0, genie::InitialState::Tgt(), ValidProcess(), and genie::Target::Z().

Member Data Documentation

◆ born

Born* genie::PhotonCOHPXSec::born
private

Definition at line 55 of file PhotonCOHPXSec.h.

Referenced by PhotonCOHPXSec(), and XSec().

◆ fXSecIntegrator

const XSecIntegratorI* genie::PhotonCOHPXSec::fXSecIntegrator
private

diff. xsec integrator

Definition at line 53 of file PhotonCOHPXSec.h.

Referenced by Integral(), and LoadConfig().


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