Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | List of all members
genie::KLVOxygenIBDPXSec Class Reference

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

#include <KLVOxygenIBDPXSec.h>

Inheritance diagram for genie::KLVOxygenIBDPXSec:
genie::XSecAlgorithmI genie::Algorithm

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. More...
 
double Integral (const Interaction *i) const
 
bool ValidProcess (const Interaction *i) const
 Can this cross section algorithm handle the input process? More...
 
bool ValidKinematics (const Interaction *i) const
 Is the input kinematical point a physically allowed one? More...
 
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. 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...
 

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

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)
 
- 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
 
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< boolfOwnerships
 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

An implementation of the neutrino - Oxygen16 cross section.

E. Kolbe, K. Langanke, P. Vogel ; Phys. Rev. D66, 013007, 2002

Author
Corey Reed <cjreed nikhef.nl> Nikhef

January 27, 2010

Copyright (c) 2003-2020, 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

genie::KLVOxygenIBDPXSec::KLVOxygenIBDPXSec ( )
KLVOxygenIBDPXSec::KLVOxygenIBDPXSec ( string  config)

Definition at line 40 of file KLVOxygenIBDPXSec.cxx.

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

Definition at line 48 of file KLVOxygenIBDPXSec.cxx.

49 {
50  delete fXsplNue;
51  delete fXsplNuebar;
52 }
TSpline3 * fXsplNuebar
a spline around the 16O+nu_e xsec points listed in the reference paper

Member Function Documentation

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
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 {
223  this->LoadConfig();
224 }
static Config * config
Definition: config.cpp:1054
virtual void Configure(const Registry &config)
Definition: Algorithm.cxx:62
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
bool ValidKinematics(const Interaction *i) const
Is the input kinematical point a physically allowed one?
TSpline3 * fXsplNuebar
a spline around the 16O+nu_e xsec points listed in the reference paper
bool ValidProcess(const Interaction *i) const
Can this cross section algorithm handle the input process?
bool IsNuE(int pdgc)
Definition: PDGUtils.cxx:155
#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
Definition: InitialState.h:64
double ProbeE(RefFrame_t rf) const
bool IsAntiNuE(int pdgc)
Definition: PDGUtils.cxx:170
Initial State information.
Definition: InitialState.h:48
void KLVOxygenIBDPXSec::LoadConfig ( void  )
private

Definition at line 226 of file KLVOxygenIBDPXSec.cxx.

227 {
228  // make splines
230  MakeNuESpline();
231 }
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 }
TSpline3 * fXsplNuebar
a spline around the 16O+nu_e xsec points listed in the reference paper
const double e
static constexpr double cm2
Definition: Units.h:69
static const double kO16NubarThr
cet::LibraryManager dummy("noplugin")
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 }
const double e
static constexpr double cm2
Definition: Units.h:69
cet::LibraryManager dummy("noplugin")
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 }
#define pERROR
Definition: Messenger.h:59
static const double kMaxE
bool IsNuE(int pdgc)
Definition: PDGUtils.cxx:155
static const double kO16NuMinE
#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
Definition: InitialState.h:64
Kinematical phase space.
Definition: KPhaseSpace.h:33
static const double kO16NubarThr
const UInt_t kISkipKinematicChk
if set, skip kinematic validity checks
Definition: Interaction.h:48
bool IsAboveThreshold(void) const
Checks whether the interaction is above the energy threshold.
double ProbeE(RefFrame_t rf) const
bool IsAntiNuE(int pdgc)
Definition: PDGUtils.cxx:170
Initial State information.
Definition: InitialState.h:48
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 }
#define pERROR
Definition: Messenger.h:59
bool IsNuE(int pdgc)
Definition: PDGUtils.cxx:155
const int kPdgTgtO16
Definition: PDGCodes.h:203
#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
Definition: InitialState.h:64
int TgtPdg(void) const
bool IsAntiNuE(int pdgc)
Definition: PDGUtils.cxx:170
const UInt_t kISkipProcessChk
if set, skip process validity checks
Definition: Interaction.h:47
Initial State information.
Definition: InitialState.h:48
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 }
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?
#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

Member Data Documentation

TSpline3* genie::KLVOxygenIBDPXSec::fXsplNue
private

Definition at line 57 of file KLVOxygenIBDPXSec.h.

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.

const double KLVOxygenIBDPXSec::kMaxE = 0.1000
static

Definition at line 34 of file KLVOxygenIBDPXSec.h.

const double KLVOxygenIBDPXSec::kO16NubarThr = 0.0114
static

Definition at line 32 of file KLVOxygenIBDPXSec.h.

const double KLVOxygenIBDPXSec::kO16NuMinE = 0.0150
static

Definition at line 33 of file KLVOxygenIBDPXSec.h.


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