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

An implementation of the neutrino - Oxygen16 cross section. More...

#include <KLVOxygenIBDPXSec.h>

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

Public Member Functions

 KLVOxygenIBDPXSec ()
 KLVOxygenIBDPXSec (string config)
virtual ~KLVOxygenIBDPXSec ()
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?
bool ValidKinematics (const Interaction *i) const
 Is the input kinematical point a physically allowed one?
void Configure (const Registry &config)
void Configure (string config)
Public Member Functions inherited from genie::XSecAlgorithmI
virtual ~XSecAlgorithmI ()
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.

Static Public Attributes

static const double kO16NubarThr = 0.0114
static const double kO16NuMinE = 0.0150
static const double kMaxE = 0.1000

Private Member Functions

void LoadConfig (void)
void MakeAntiNuESpline (void)
void MakeNuESpline (void)

Private Attributes

TSpline3 * fXsplNue
TSpline3 * fXsplNuebar
 a spline around the 16O+nu_e xsec points listed in the reference paper

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

An implementation of the neutrino - Oxygen16 cross section.

References:\n E. Kolbe, K. Langanke, P. Vogel ; Phys. Rev. D66, 013007, 2002
Author
Corey Reed <cjreed \at nikhef.nl> Nikhef
Created:\n January 27, 2010
License:\n Copyright (c) 2003-2025, The GENIE Collaboration
For the full text of the license visit http://copyright.genie-mc.org

Definition at line 29 of file KLVOxygenIBDPXSec.h.

Constructor & Destructor Documentation

◆ KLVOxygenIBDPXSec() [1/2]

genie::KLVOxygenIBDPXSec::KLVOxygenIBDPXSec ( )

◆ KLVOxygenIBDPXSec() [2/2]

KLVOxygenIBDPXSec::KLVOxygenIBDPXSec ( string config)

Definition at line 40 of file KLVOxygenIBDPXSec.cxx.

40 :
41 XSecAlgorithmI("genie::KLVOxygenIBDPXSec", config),
42 fXsplNue(0),
44{
45
46}
TSpline3 * fXsplNuebar
a spline around the 16O+nu_e xsec points listed in the reference paper

References fXsplNue, fXsplNuebar, and genie::XSecAlgorithmI::XSecAlgorithmI().

◆ ~KLVOxygenIBDPXSec()

KLVOxygenIBDPXSec::~KLVOxygenIBDPXSec ( )
virtual

Definition at line 48 of file KLVOxygenIBDPXSec.cxx.

49{
50 delete fXsplNue;
51 delete fXsplNuebar;
52}

References fXsplNue, and fXsplNuebar.

Member Function Documentation

◆ Configure() [1/2]

void KLVOxygenIBDPXSec::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 214 of file KLVOxygenIBDPXSec.cxx.

215{
216 Algorithm::Configure(config);
217 this->LoadConfig();
218}
virtual void Configure(const Registry &config)
Definition Algorithm.cxx:62

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

◆ Configure() [2/2]

void KLVOxygenIBDPXSec::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 220 of file KLVOxygenIBDPXSec.cxx.

221{
222 Algorithm::Configure(config);
223 this->LoadConfig();
224}

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

◆ Integral()

double KLVOxygenIBDPXSec::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 126 of file KLVOxygenIBDPXSec.cxx.

127{
128 // Compute the total cross section for a free nucleon target
129
130 assert(interaction!=0);
131 if(! this -> ValidProcess (interaction) ) return 0.;
132 if(! this -> ValidKinematics (interaction) ) return 0.;
133
134 const InitialState & init_state = interaction -> InitState();
135 const double Ev = init_state.ProbeE(kRfHitNucRest);
136 const int prbpdg = init_state.ProbePdg();
137
138 double xsec = 0;
139
140 if (pdg::IsNuE(prbpdg)) {
141 assert(fXsplNue!=0);
142 xsec = fXsplNue->Eval(Ev);
143 } else if (pdg::IsAntiNuE(prbpdg)) {
144 assert(fXsplNuebar!=0);
145 xsec = fXsplNuebar->Eval(Ev);
146 } else {
147 LOG("KLVOxygen", pERROR) << "*** <Integral> Probe has invalid pdg ["
148 << init_state.ProbePdg() << "]";
149 }
150
151 return xsec;
152}
#define pERROR
Definition Messenger.h:59
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE,...
Definition Messenger.h:96
int ProbePdg(void) const
double ProbeE(RefFrame_t rf) const
bool ValidKinematics(const Interaction *i) const
Is the input kinematical point a physically allowed one?
bool ValidProcess(const Interaction *i) const
Can this cross section algorithm handle the input process?
bool IsNuE(int pdgc)
Definition PDGUtils.cxx:158
bool IsAntiNuE(int pdgc)
Definition PDGUtils.cxx:173
@ kRfHitNucRest
Definition RefFrame.h:30

References fXsplNue, fXsplNuebar, genie::pdg::IsAntiNuE(), genie::pdg::IsNuE(), genie::kRfHitNucRest, LOG, pERROR, genie::InitialState::ProbeE(), genie::InitialState::ProbePdg(), ValidKinematics(), and ValidProcess().

◆ LoadConfig()

void KLVOxygenIBDPXSec::LoadConfig ( void )
private

Definition at line 226 of file KLVOxygenIBDPXSec.cxx.

227{
228 // make splines
231}

References MakeAntiNuESpline(), and MakeNuESpline().

Referenced by Configure(), and Configure().

◆ MakeAntiNuESpline()

void KLVOxygenIBDPXSec::MakeAntiNuESpline ( void )
private

Definition at line 69 of file KLVOxygenIBDPXSec.cxx.

70{
71 // make a new xsec spline from the KLV paper's calculation
72 // for the 16O + nu_e_bar reaction
73 // remove any spline that might already exist
74
75 delete fXsplNuebar;
76
77 static const Int_t npts_nuebar = 21;
78 static const Double_t Evnuebar[npts_nuebar] = {
80 15.0e-3, 17.5e-3, 20.0e-3, 22.5e-3, 25.0e-3,
81 27.5e-3, 30.0e-3, 32.5e-3, 35.0e-3, 37.5e-3,
82 40.0e-3, 45.0e-3, 50.0e-3, 55.0e-3, 60.0e-3,
83 65.0e-3, 70.0e-3, 80.0e-3, 90.0e-3, 100.0e-3
84 };
85 static const Double_t xsunit = 1e-42*units::cm2;
86 static const Double_t Onuebar[npts_nuebar] = {
87 0,
88 2.53e-2*xsunit, 7.27e-2*xsunit, 1.81e-1*xsunit, 4.21e-1*xsunit, 8.90e-1*xsunit,
89 1.69*xsunit, 2.94*xsunit, 4.76*xsunit, 7.26*xsunit, 1.06e1*xsunit,
90 1.48e1*xsunit, 2.64e1*xsunit, 4.29e1*xsunit, 6.46e1*xsunit, 9.17e1*xsunit,
91 1.25e2*xsunit, 1.63e2*xsunit, 2.57e2*xsunit, 3.77e2*xsunit, 5.18e2*xsunit
92 };
93 // make spline via dummy TGraph because TSpline3's ctor isn't const correct
94 const TGraph dummy(npts_nuebar,Evnuebar,Onuebar);
95 fXsplNuebar = new TSpline3("16O_nu_e_bar_xsec",&dummy);
96 fXsplNuebar->SetNpx(500);
97}
static const double kO16NubarThr
const double e
static constexpr double cm2
Definition Units.h:69

References genie::units::cm2, e, fXsplNuebar, and kO16NubarThr.

Referenced by LoadConfig().

◆ MakeNuESpline()

void KLVOxygenIBDPXSec::MakeNuESpline ( void )
private

Definition at line 99 of file KLVOxygenIBDPXSec.cxx.

100{
101 // make a new xsec spline from the KLV paper's calculation
102 // for the 16O + nu_e reaction
103 // remove any spline that might already exist
104
105 delete fXsplNue;
106
107 static const Int_t npts_nue = 20;
108 static const Double_t Evnue[npts_nue] = {
109 15.0e-3, 17.5e-3, 20.0e-3, 22.5e-3, 25.0e-3,
110 27.5e-3, 30.0e-3, 32.5e-3, 35.0e-3, 37.5e-3,
111 40.0e-3, 45.0e-3, 50.0e-3, 55.0e-3, 60.0e-3,
112 65.0e-3, 70.0e-3, 80.0e-3, 90.0e-3, 100.0e-3
113 };
114 static const Double_t xsunit = 1e-42*units::cm2;
115 static const Double_t Onue[npts_nue] = {
116 1.56e-6*xsunit, 8.42e-4*xsunit, 7.26e-3*xsunit, 3.99e-2*xsunit, 1.77e-1*xsunit,
117 5.23e-1*xsunit, 1.25*xsunit, 2.58*xsunit, 4.76*xsunit, 8.05*xsunit,
118 1.28e1*xsunit, 2.76e1*xsunit, 5.21e1*xsunit, 8.89e1*xsunit, 1.41e2*xsunit,
119 2.12e2*xsunit, 3.02e2*xsunit, 5.52e2*xsunit, 8.92e2*xsunit, 1.32e3*xsunit
120 };
121 const TGraph dummy(npts_nue,Evnue,Onue);
122 fXsplNue = new TSpline3("16O_nu_e_xsec",&dummy);
123 fXsplNue->SetNpx(500);
124}

References genie::units::cm2, e, and fXsplNue.

Referenced by LoadConfig().

◆ ValidKinematics()

bool KLVOxygenIBDPXSec::ValidKinematics ( const Interaction * i) const
virtual

Is the input kinematical point a physically allowed one?

Reimplemented from genie::XSecAlgorithmI.

Definition at line 186 of file KLVOxygenIBDPXSec.cxx.

187{
188 // check energy range
189
190 if(interaction->TestBit(kISkipKinematicChk)) return true;
191
192 const InitialState & init_state = interaction -> InitState();
193 const double Ev = init_state.ProbeE(kRfHitNucRest);
194 if ( pdg::IsNuE(init_state.ProbePdg()) ) {
195 if ( (Ev < kO16NuMinE) || (Ev > kMaxE) ) {
196 LOG("KLVOxygen", pERROR) << "*** Ev=" << Ev
197 << " outside range ("
198 << kO16NuMinE << ", " << kMaxE << ")!";
199 return false;
200 }
201 } else if ( pdg::IsAntiNuE(init_state.ProbePdg()) ) {
202 if ( (Ev < kO16NubarThr) || (Ev > kMaxE) ) {
203 LOG("KLVOxygen", pERROR) << "*** Ev=" << Ev
204 << " outside range ("
205 << kO16NubarThr << ", " << kMaxE << ")!";
206 return false;
207 }
208 }
209
210 const KPhaseSpace & kps = interaction->PhaseSpace();
211 return kps.IsAboveThreshold();
212}
static const double kMaxE
static const double kO16NuMinE
bool IsAboveThreshold(void) const
Checks whether the interaction is above the energy threshold.
const UInt_t kISkipKinematicChk
if set, skip kinematic validity checks
Definition Interaction.h:48

References genie::KPhaseSpace::IsAboveThreshold(), genie::pdg::IsAntiNuE(), genie::pdg::IsNuE(), genie::kISkipKinematicChk, kMaxE, kO16NubarThr, kO16NuMinE, genie::kRfHitNucRest, LOG, pERROR, genie::Interaction::PhaseSpace(), genie::InitialState::ProbeE(), and genie::InitialState::ProbePdg().

Referenced by Integral(), and XSec().

◆ ValidProcess()

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

Can this cross section algorithm handle the input process?

Implements genie::XSecAlgorithmI.

Definition at line 154 of file KLVOxygenIBDPXSec.cxx.

155{
156 if(interaction->TestBit(kISkipProcessChk)) return true;
157
158 // should be IBD and either nu_e + O16 or anu_e + O16
159 if (interaction->ProcInfo().IsInverseBetaDecay()) {
160
161 const InitialState & init_state = interaction -> InitState();
162 if (init_state.TgtPdg() == kPdgTgtO16) {
163
164 if ( (pdg::IsNuE(init_state.ProbePdg())) ||
165 (pdg::IsAntiNuE(init_state.ProbePdg())) ) {
166
167 return true;
168
169 } else {
170 LOG("KLVOxygen", pERROR) << "*** Probe has invalid pdg ["
171 << init_state.ProbePdg() << "]";
172 }
173
174 } else {
175 LOG("KLVOxygen", pERROR) << "*** Target has pdg ["
176 << init_state.TgtPdg()
177 << "], not 16O ("
178 << kPdgTgtO16 << ")!";
179 }
180
181 }
182
183 return false;
184}
int TgtPdg(void) const
const int kPdgTgtO16
Definition PDGCodes.h:203
const UInt_t kISkipProcessChk
if set, skip process validity checks
Definition Interaction.h:47

References genie::pdg::IsAntiNuE(), genie::ProcessInfo::IsInverseBetaDecay(), genie::pdg::IsNuE(), genie::kISkipProcessChk, genie::kPdgTgtO16, LOG, pERROR, genie::InitialState::ProbePdg(), genie::Interaction::ProcInfo(), and genie::InitialState::TgtPdg().

Referenced by Integral(), and XSec().

◆ XSec()

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

Compute the cross section for the input interaction.

Implements genie::XSecAlgorithmI.

Definition at line 54 of file KLVOxygenIBDPXSec.cxx.

56{
57 // compute the differential cross section ds/dt
58 // currently not implemented (only total)
59
60 if(! this -> ValidProcess (interaction) ) return 0.;
61 if(! this -> ValidKinematics (interaction) ) return 0.;
62
63 LOG("KLVOxygen", pWARN)
64 << "*** No differential cross section calculation is implemented yet";
65
66 return 1;
67}
#define pWARN
Definition Messenger.h:60

References LOG, pWARN, ValidKinematics(), and ValidProcess().

Member Data Documentation

◆ fXsplNue

TSpline3* genie::KLVOxygenIBDPXSec::fXsplNue
private

Definition at line 57 of file KLVOxygenIBDPXSec.h.

Referenced by Integral(), KLVOxygenIBDPXSec(), MakeNuESpline(), and ~KLVOxygenIBDPXSec().

◆ fXsplNuebar

TSpline3* genie::KLVOxygenIBDPXSec::fXsplNuebar
private

a spline around the 16O+nu_e xsec points listed in the reference paper

Definition at line 58 of file KLVOxygenIBDPXSec.h.

Referenced by Integral(), KLVOxygenIBDPXSec(), MakeAntiNuESpline(), and ~KLVOxygenIBDPXSec().

◆ kMaxE

const double KLVOxygenIBDPXSec::kMaxE = 0.1000
static

Definition at line 34 of file KLVOxygenIBDPXSec.h.

Referenced by ValidKinematics().

◆ kO16NubarThr

const double KLVOxygenIBDPXSec::kO16NubarThr = 0.0114
static

Definition at line 32 of file KLVOxygenIBDPXSec.h.

Referenced by MakeAntiNuESpline(), and ValidKinematics().

◆ kO16NuMinE

const double KLVOxygenIBDPXSec::kO16NuMinE = 0.0150
static

Definition at line 33 of file KLVOxygenIBDPXSec.h.

Referenced by ValidKinematics().


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