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

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

#include <PhotonCOHPXSec.h>

Inheritance diagram for genie::PhotonCOHPXSec:
Inheritance graph
[legend]
Collaboration diagram for genie::PhotonCOHPXSec:
Collaboration graph
[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. 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)
 
double F2_Q (double Q, double r0) const
 

Private Attributes

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

Constructor & Destructor Documentation

PhotonCOHPXSec::PhotonCOHPXSec ( )

Definition at line 28 of file PhotonCOHPXSec.cxx.

References born.

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

Definition at line 34 of file PhotonCOHPXSec.cxx.

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

Definition at line 40 of file PhotonCOHPXSec.cxx.

41 {
42 
43 }

Member Function Documentation

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.

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

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

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

153 {
154  Algorithm::Configure(config);
155  this->LoadConfig();
156 }
virtual void Configure(const Registry &config)
Definition: Algorithm.cxx:62
double PhotonCOHPXSec::F2_Q ( double  Q,
double  r0 
) const
private

Definition at line 112 of file PhotonCOHPXSec.cxx.

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

Referenced by XSec().

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

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

123 {
124  double xsec = fXSecIntegrator->Integrate(this,interaction);
125  return xsec;
126 }
const XSecIntegratorI * fXSecIntegrator
diff. xsec integrator
virtual double Integrate(const XSecAlgorithmI *model, const Interaction *interaction) const =0
void PhotonCOHPXSec::LoadConfig ( void  )
private

Definition at line 158 of file PhotonCOHPXSec.cxx.

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

Referenced by Configure().

159 {
160 
161  //-- load the differential cross section integrator
162  fXSecIntegrator = dynamic_cast<const XSecIntegratorI *> (this->SubAlg("XSec-Integrator"));
163  assert(fXSecIntegrator);
164 
165 }
Cross Section Integrator Interface.
const XSecIntegratorI * fXSecIntegrator
diff. xsec integrator
const Algorithm * SubAlg(const RgKey &registry_key) const
Definition: Algorithm.cxx:345
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.

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

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 }
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 IsPhotonCoherent(void) const
bool HitNucIsSet(void) const
Definition: Target.cxx:283
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 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.

References genie::Target::A(), genie::units::A, genie::KinePhaseSpace::AsString(), born, F2_Q(), genie::Kinematics::GetKV(), genie::Born::GetReAlpha(), 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, genie::Born::Lambda(), LOG, pINFO, genie::InitialState::ProbeE(), genie::InitialState::ProbePdg(), pWARN, genie::Born::PXSecPhoton_L(), genie::Born::PXSecPhoton_T(), genie::utils::kinematics::Q2(), r0, genie::units::s, genie::InitialState::Tgt(), ValidProcess(), and genie::Target::Z().

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 "
100  << KinePhaseSpace::AsString(kps);
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 }
bool IsNuTau(int pdgc)
Definition: PDGUtils.cxx:168
double Q2(const Interaction *const i)
Definition: KineUtils.cxx:1077
double PXSecPhoton_T(double s12, double s13, double Q2, double ml2)
Definition: Born.cxx:135
int A(void) const
Definition: Target.h:70
static constexpr double s
Definition: Units.h:95
Generated/set kinematical variables for an event.
Definition: Kinematics.h:39
bool IsNuE(int pdgc)
Definition: PDGUtils.cxx:158
static const double kElectronMass
double GetReAlpha(void)
Definition: Born.h:32
const double r0
bool IsNuMu(int pdgc)
Definition: PDGUtils.cxx:163
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
Definition: Messenger.h:96
static constexpr double A
Definition: Units.h:74
static string AsString(KinePhaseSpace_t kps)
double Lambda(double a, double b, double c)
Definition: Born.cxx:190
int ProbePdg(void) const
Definition: InitialState.h:64
static const double kNeutronMass
double PXSecPhoton_L(double s12, double s13, double Q2, double ml2)
Definition: Born.cxx:163
int Z(void) const
Definition: Target.h:68
double GetKV(KineVar_t kv) const
Definition: Kinematics.cxx:323
#define pINFO
Definition: Messenger.h:62
#define pWARN
Definition: Messenger.h:60
bool ValidProcess(const Interaction *i) const
Can this cross section algorithm handle the input process?
const UInt_t kIAssumeFreeNucleon
Definition: Interaction.h:49
const Target & Tgt(void) const
Definition: InitialState.h:66
double ProbeE(RefFrame_t rf) const
double F2_Q(double Q, double r0) const
Initial State information.
Definition: InitialState.h:48

Member Data Documentation

Born* genie::PhotonCOHPXSec::born
private

Definition at line 55 of file PhotonCOHPXSec.h.

Referenced by PhotonCOHPXSec(), and XSec().

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: