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

Differential cross section for neutrino-electron. More...

#include <HENuElPXSec.h>

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

Public Member Functions

 HENuElPXSec ()
 HENuElPXSec (string config)
virtual ~HENuElPXSec ()
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
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 neutrino-electron.

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

Constructor & Destructor Documentation

◆ HENuElPXSec() [1/2]

HENuElPXSec::HENuElPXSec ( )

Definition at line 27 of file HENuElPXSec.cxx.

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

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

◆ HENuElPXSec() [2/2]

HENuElPXSec::HENuElPXSec ( string config)

Definition at line 34 of file HENuElPXSec.cxx.

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

References genie::XSecAlgorithmI::XSecAlgorithmI().

◆ ~HENuElPXSec()

HENuElPXSec::~HENuElPXSec ( )
virtual

Definition at line 40 of file HENuElPXSec.cxx.

41{
42
43}

Member Function Documentation

◆ Configure() [1/2]

void HENuElPXSec::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 142 of file HENuElPXSec.cxx.

143{
144
145 Algorithm::Configure(config);
146 this->LoadConfig();
147}
virtual void Configure(const Registry &config)
Definition Algorithm.cxx:62

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

◆ Configure() [2/2]

void HENuElPXSec::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 149 of file HENuElPXSec.cxx.

150{
151 Algorithm::Configure(config);
152 this->LoadConfig();
153}

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

◆ Integral()

double HENuElPXSec::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 117 of file HENuElPXSec.cxx.

118{
119 double xsec = fXSecIntegrator->Integrate(this,interaction);
120
121 return xsec;
122}
const XSecIntegratorI * fXSecIntegrator
diff. xsec integrator
Definition HENuElPXSec.h:51

References fXSecIntegrator.

◆ LoadConfig()

void HENuElPXSec::LoadConfig ( void )
private

Definition at line 155 of file HENuElPXSec.cxx.

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

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

Referenced by Configure(), and Configure().

◆ ValidProcess()

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

Can this cross section algorithm handle the input process?

Implements genie::XSecAlgorithmI.

Definition at line 124 of file HENuElPXSec.cxx.

125{
126 if(interaction->TestBit(kISkipProcessChk)) return true;
127
128 const ProcessInfo & proc_info = interaction->ProcInfo();
129 if(!proc_info.IsGlashowResonance()) return false;
130
131 const InitialState & init_state = interaction -> InitState();
132 if(pdg::IsAntiNuE(init_state.ProbePdg())) return false;
133 if(pdg::IsNuE(init_state.ProbePdg()) && !proc_info.IsWeakCC()) return false;
134 if(pdg::IsAntiNuMu(init_state.ProbePdg()) && proc_info.IsWeakCC()) return false;
135 if(pdg::IsAntiNuTau(init_state.ProbePdg()) && proc_info.IsWeakCC()) return false;
136
137 if(init_state.Tgt().HitNucIsSet()) return false;
138
139 return true;
140}
const Target & Tgt(void) const
int ProbePdg(void) const
bool IsWeakCC(void) const
bool IsGlashowResonance(void) const
bool HitNucIsSet(void) const
Definition Target.cxx:283
bool IsAntiNuTau(int pdgc)
Definition PDGUtils.cxx:183
bool IsNuE(int pdgc)
Definition PDGUtils.cxx:158
bool IsAntiNuE(int pdgc)
Definition PDGUtils.cxx:173
bool IsAntiNuMu(int pdgc)
Definition PDGUtils.cxx:178
const UInt_t kISkipProcessChk
if set, skip process validity checks
Definition Interaction.h:47

References genie::Target::HitNucIsSet(), genie::pdg::IsAntiNuE(), genie::pdg::IsAntiNuMu(), genie::pdg::IsAntiNuTau(), genie::ProcessInfo::IsGlashowResonance(), genie::pdg::IsNuE(), genie::ProcessInfo::IsWeakCC(), genie::kISkipProcessChk, genie::InitialState::ProbePdg(), genie::Interaction::ProcInfo(), and genie::InitialState::Tgt().

Referenced by XSec().

◆ XSec()

double HENuElPXSec::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 HENuElPXSec.cxx.

47{
48
49 if(! this -> ValidProcess (interaction) ) return 0.;
50
51 const ProcessInfo & proc_info = interaction->ProcInfo();
52 const InitialState & init_state = interaction -> InitState();
53 const Kinematics & kinematics = interaction -> Kine();
54
55 bool isCC = proc_info.IsWeakCC();
56
57 int probepdg = init_state.ProbePdg();
58
59 double mlout = interaction->FSPrimLepton()->Mass(); //mass of outgoing charged lepton
60 double mlin = kElectronMass; //mass of incoming charged lepton
61
62 double Enuin = init_state.ProbeE(kRfLab);
63 double s = born->GetS(mlin,Enuin);
64
65 double n1 = kinematics.GetKV(kKVn1);
66 double n2 = kinematics.GetKV(kKVn2);
67 double t = born->GetT( mlin, mlout, s, n1 );
68 if (t>0) return 0.;
69
70 //nlo correction
71 double zeta = born->GetReAlpha()/kPi*(2.*TMath::Log(TMath::Sqrt(-t)/kElectronMass)-1.);
72 double omx = TMath::Power(n2, 1./zeta );
73 double pdf_soft = TMath::Exp(zeta*(3./4.-TMath::EulerGamma()))/TMath::Gamma(1.+zeta) + omx*(omx-2.)/2./n2;
74 if ( omx<0. || omx>1. ) return 0.;
75 double s_r = s*(1. - omx);
76 double t_r = t*(1. - omx);
77
78 //http://users.jyu.fi/~tulappi/fysh300sl11/l2.pdf [slide 22]
79 //remember we always define nuout as p4
80 double Enuout = (mlin*mlin-t_r)/2./mlin;
81 if ( !born->IsInPhaseSpace(mlin,mlout,Enuin,Enuout) ) return 0.;
82
83 double xsec = kPi/4./(s-mlin*mlin) * pdf_soft ;
84
85 double ME = 0;
86 if ( pdg::IsNuE(init_state.ProbePdg()) ) ME = born->PXSecCCVNC(s_r,t_r,mlin,mlout);
87 else {
88 if (isCC) ME = born->PXSecCCV(s_r,t_r,mlin,mlout);
89 else {
90 if (probepdg>0) ME = born->PXSecNCVnu (s_r,t_r,mlin,mlout);
91 else ME = born->PXSecNCVnubar(s_r,t_r,mlin,mlout);
92 }
93 }
94 xsec *= TMath::Max(0.,ME);
95
96 //----- If requested return the free electron xsec even for nuclear target
97 if( interaction->TestBit(kIAssumeFreeElectron) ) return xsec;
98
99 //----- Scale for the number of scattering centers at the target
100 int Ne = init_state.Tgt().Z(); // num of scattering centers
101 xsec *= Ne;
102
103 if(kps!=kPSn1n2fE) {
104 LOG("HENuElPXSec", pWARN)
105 << "Doesn't support transformation from "
108 xsec = 0;
109 }
110
111 LOG("HENuElPXSec", pINFO) << "dxsec/dn1dn2 (E= " << Enuin << ", n1= " << n1 << ", n2=" << n2 << ") = " << xsec;
112
113 return xsec;
114
115}
#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
bool ValidProcess(const Interaction *i) const
Can this cross section algorithm handle the input process?
double ProbeE(RefFrame_t rf) const
static string AsString(KinePhaseSpace_t kps)
double GetKV(KineVar_t kv) const
int Z(void) const
Definition Target.h:68
const UInt_t kIAssumeFreeElectron
Definition Interaction.h:50
@ kKVn2
Definition KineVar.h:62
@ kKVn1
Definition KineVar.h:61
@ kRfLab
Definition RefFrame.h:26

References genie::KinePhaseSpace::AsString(), born, genie::Interaction::FSPrimLepton(), genie::Kinematics::GetKV(), genie::pdg::IsNuE(), genie::ProcessInfo::IsWeakCC(), genie::constants::kElectronMass, genie::kIAssumeFreeElectron, genie::kKVn1, genie::kKVn2, genie::constants::kPi, genie::kPSn1n2fE, genie::kRfLab, LOG, pINFO, genie::InitialState::ProbeE(), genie::InitialState::ProbePdg(), genie::Interaction::ProcInfo(), pWARN, genie::InitialState::Tgt(), ValidProcess(), and genie::Target::Z().

Member Data Documentation

◆ born

Born* genie::HENuElPXSec::born
private

Definition at line 53 of file HENuElPXSec.h.

Referenced by HENuElPXSec(), and XSec().

◆ fXSecIntegrator

const XSecIntegratorI* genie::HENuElPXSec::fXSecIntegrator
private

diff. xsec integrator

Definition at line 51 of file HENuElPXSec.h.

Referenced by Integral(), and LoadConfig().


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