Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
genie::SmithMonizQELCCPXSec Class Reference

Computes neutrino-nucleon(nucleus) QELCC differential cross section. Is a concrete implementation of the XSecAlgorithmI interface. More...

#include "/cvmfs/nova.opensciencegrid.org/externals/genie/v3_00_06_p01/Linux64bit+3.10-2.17-e17-debug/GENIE-Generator/src/Physics/QuasiElastic/XSection/SmithMonizQELCCPXSec.h"

Inheritance diagram for genie::SmithMonizQELCCPXSec:
genie::XSecAlgorithmI genie::Algorithm

Public Member Functions

 SmithMonizQELCCPXSec ()
 
 SmithMonizQELCCPXSec (string config)
 
virtual ~SmithMonizQELCCPXSec ()
 
double XSec (const Interaction *i, KinePhaseSpace_t kps) 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 param_set)
 
virtual bool ValidKinematics (const Interaction *i) const
 Is the input kinematical point a physically allowed one? More...
 
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...
 

Protected Member Functions

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 >
bool GetParamVect (const std::string &comm_name, std::vector< T > &v, unsigned int max, 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

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

Private Member Functions

void LoadConfig (void)
 
double d3sQES_dQ2dvdkF_SM (const Interaction *interaction) const
 
double dsQES_dQ2_SM (const Interaction *interaction) const
 
double d2sQES_dQ2dv_SM (const Interaction *i) const
 

Private Attributes

SmithMonizUtilssm_utils
 
double fXSecScale
 external xsec scaling factor More...
 
QELFormFactors fFormFactors
 
const QELFormFactorsModelIfFormFactorsModel
 
const XSecIntegratorIfXSecIntegrator
 
double fVud2
 |Vud|^2(square of magnitude ud-element of CKM-matrix) More...
 
int fn_NT
 
double fQ2
 
double fv
 
double fE_nu
 
double fE_lep
 
double fmm_ini
 
double fmm_fin
 
double fm_tar
 
double fmm_tar
 
double fk1
 
double fk2
 
double fk7
 
double fqv
 
double fqqv
 
double fcosT_k
 
double fF_V
 
double fF_M
 
double fF_A
 
double fF_P
 
double fFF_V
 
double fFF_M
 
double fFF_A
 
double fW_1
 
double fW_2
 
double fW_3
 
double fW_4
 
double fW_5
 

Detailed Description

Computes neutrino-nucleon(nucleus) QELCC differential cross section. Is a concrete implementation of the XSecAlgorithmI interface.

[1] R.A.Smith and E.J.Moniz, Nuclear Physics B43, (1972) 605-622
[2] K.S. Kuzmin, V.V. Lyubushkin, V.A.Naumov Eur. Phys. J. C54, (2008) 517-538

Author
Igor Kakorin kakor.nosp@m.in@j.nosp@m.inr.r.nosp@m.u, Joint Institute for Nuclear Research
adapted from fortran code provided by Konstantin Kuzmin kkuzm.nosp@m.in@t.nosp@m.heor..nosp@m.jinr.nosp@m..ru,
Joint Institute for Nuclear Research, Institute for Theoretical and Experimental Physics
Vladimir Lyubushkin,
Joint Institute for Nuclear Research
Vadim Naumov vnaum.nosp@m.ov@t.nosp@m.heor..nosp@m.jinr.nosp@m..ru,
Joint Institute for Nuclear Research
based on code of Costas Andreopoulos <costas.andreopoulos stfc.ac.uk>
University of Liverpool & STFC Rutherford Appleton Lab

May 05, 2017

Copyright (c) 2003-2017, GENIE Neutrino MC Generator Collaboration For the full text of the license visit http://copyright.genie-mc.org or see $GENIE/LICENSE

Definition at line 44 of file SmithMonizQELCCPXSec.h.

Constructor & Destructor Documentation

SmithMonizQELCCPXSec::SmithMonizQELCCPXSec ( )

Definition at line 49 of file SmithMonizQELCCPXSec.cxx.

49  :
50 XSecAlgorithmI("genie::SmithMonizQELCCPXSec")
51 {
52 
53 }
SmithMonizQELCCPXSec::SmithMonizQELCCPXSec ( string  config)

Definition at line 55 of file SmithMonizQELCCPXSec.cxx.

55  :
56 XSecAlgorithmI("genie::SmithMonizQELCCPXSec", config)
57 {
58 
59 }
Definition: config.py:1
SmithMonizQELCCPXSec::~SmithMonizQELCCPXSec ( )
virtual

Definition at line 61 of file SmithMonizQELCCPXSec.cxx.

62 {
63 
64 }

Member Function Documentation

int Algorithm::AddLowRegistry ( Registry rp,
bool  owns = true 
)
protectedinherited

add registry with lowest priority, also update ownership

Definition at line 601 of file Algorithm.cxx.

Referenced by genie::EventGenerator::Configure().

601  {
602 
603  fConfVect.push_back( rp ) ;
604  fOwnerships.push_back( own ) ;
605 
606  if ( fConfig ) {
607  delete fConfig ;
608  fConfig = 0 ;
609  }
610 
611  return fConfVect.size() ;
612 
613 }
vector< Registry * > fConfVect
Definition: Algorithm.h:161
vector< bool > fOwnerships
ownership for every registry in fConfVect
Definition: Algorithm.h:164
Registry * fConfig
Summary configuration derived from fConvVect, not necessarily allocated.
Definition: Algorithm.h:194
int Algorithm::AddTopRegisties ( const vector< Registry * > &  rs,
bool  owns = false 
)
protectedinherited

Add registries with top priority, also udated Ownerships.

Definition at line 653 of file Algorithm.cxx.

653  {
654 
655  fConfVect.insert( fConfVect.begin(), rs.begin(), rs.end() ) ;
656 
657  fOwnerships.insert( fOwnerships.begin(), rs.size(), own ) ;
658 
659  if ( fConfig ) {
660  delete fConfig ;
661  fConfig = 0 ;
662  }
663 
664  return fConfVect.size() ;
665 
666 }
vector< Registry * > fConfVect
Definition: Algorithm.h:161
vector< bool > fOwnerships
ownership for every registry in fConfVect
Definition: Algorithm.h:164
Registry * fConfig
Summary configuration derived from fConvVect, not necessarily allocated.
Definition: Algorithm.h:194
int Algorithm::AddTopRegistry ( Registry rp,
bool  owns = true 
)
protectedinherited

add registry with top priority, also update ownership

Definition at line 585 of file Algorithm.cxx.

Referenced by genie::EventGeneratorListAssembler::AssembleGeneratorList().

585  {
586 
587  fConfVect.insert( fConfVect.begin(), rp ) ;
588  fOwnerships.insert( fOwnerships.begin(), own ) ;
589 
590  if ( fConfig ) {
591  delete fConfig ;
592  fConfig = 0 ;
593  }
594 
595  return fConfVect.size() ;
596 
597 }
vector< Registry * > fConfVect
Definition: Algorithm.h:161
vector< bool > fOwnerships
ownership for every registry in fConfVect
Definition: Algorithm.h:164
Registry * fConfig
Summary configuration derived from fConvVect, not necessarily allocated.
Definition: Algorithm.h:194
void Algorithm::AdoptConfig ( void  )
inherited

Clone the configuration registry looked up from the configuration pool and take its ownership

Definition at line 394 of file Algorithm.cxx.

References Configure(), GetConfig(), LOG, and pNOTICE.

Referenced by genie::Algorithm::AllowReconfig().

394  {
395 
396  LOG("Algorithm", pNOTICE)
397  << this->Id().Key() << " is taking ownership of its configuration";
398 
399  // if(fOwnsConfig) {
400  // LOG("Algorithm", pWARN)
401  // << this->Id().Key() << " already owns its configuration!";
402  // return;
403  // }
404 
405  this->Configure( GetConfig() );
406 }
virtual const Registry & GetConfig(void) const
Definition: Algorithm.cxx:254
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
Definition: Messenger.h:97
virtual void Configure(const Registry &config)
Definition: Algorithm.cxx:70
virtual const AlgId & Id(void) const
Get algorithm ID.
Definition: Algorithm.h:98
#define pNOTICE
Definition: Messenger.h:62
string Key(void) const
Definition: AlgId.h:47
void Algorithm::AdoptSubstructure ( void  )
inherited

Take ownership of the algorithms subtructure (sub-algorithms,...) by copying them from the AlgFactory pool to the local pool Also bring all the configuration variables to the top level config Registry. This can be used to group together a series of algorithms & their configurations and extract (a clone of) this group from the shared pools. Having a series of algorithms/configurations behaving as a monolithic block, with a single point of configuration (the top level) is to be used when bits & pieces of GENIE are used in isolation for data fitting or reweighting

Definition at line 408 of file Algorithm.cxx.

References genie::AlgFactory::AdoptAlgorithm(), genie::Algorithm::AdoptSubstructure(), GetConfig(), genie::AlgFactory::Instance(), genie::kRgAlg, LOG, pDEBUG, pNOTICE, and genie::RegistryItemI::TypeInfo().

Referenced by genie::Algorithm::AdoptSubstructure(), genie::Algorithm::AllowReconfig(), main(), and testReconfigInOwnedModules().

409 {
410 // Take ownership of the algorithms subtructure (sub-algorithms,..) by copying
411 // them from the AlgFactory pool to the local pool. Also bring all the
412 // configuration variables to the top level. See the header for more details.
413 // A secial naming convention is required for configuration parameter keys
414 // for parameters belonging to sub-algorithms (or sub-algorithms of these
415 // sub-algorithms and so on...).
416 // The convention is: "sub-alg-key/sub-sub-alg-key/.../original name"
417 // This is a recursive method: The AdoptSubtructure()of all sub-algorithms is
418 // invoked.
419 //
420  LOG("Algorithm", pNOTICE)
421  << "Algorithm: " << this->Id().Key() << " is adopting its substructure";
422 
423 // Registry deep_config;
424 // deep_config.UnLock();
425 // deep_config.SetName(this->Id().Key());
426 
427  // deep_config.SetName(this->Id().Config() + ";D");
428  // fID.SetConfig(this->Id().Config() + ";D");
429 
430  if(fOwnsSubstruc) this->DeleteSubstructure();
431 
432  fOwnedSubAlgMp = new AlgMap;
433  fOwnsSubstruc = true;
434 
435  AlgFactory * algf = AlgFactory::Instance();
436 
437  const RgIMap & rgmap = GetConfig().GetItemMap();
438 
439  RgIMapConstIter iter = rgmap.begin();
440  for( ; iter != rgmap.end(); ++iter) {
441 
442  RgKey reg_key = iter->first;
443  RegistryItemI * ri = iter->second;
444 
445  if(ri->TypeInfo() == kRgAlg) {
446  LOG("Algorithm", pDEBUG)
447  << "Found sub-algorithm pointed to by " << reg_key;
448  RgAlg reg_alg = fConfig->GetAlg(reg_key);
449  AlgId id(reg_alg);
450 
451  LOG("Algorithm", pDEBUG) << "Adopting sub-algorithm = " << id.Key();
452  Algorithm * subalg = algf->AdoptAlgorithm(id.Name(),id.Config());
453  subalg->AdoptSubstructure();
454 
455  LOG("Algorithm", pDEBUG) << "Adding sub-algorithm to local pool";
456  AlgMapPair key_alg_pair(reg_key, subalg);
457  fOwnedSubAlgMp->insert(key_alg_pair);
458 
459  }
460 
461  }
462 
463 
464  if ( fConfig ) {
465  delete fConfig ;
466  fConfig = 0 ;
467  }
468 
469 }
::xsd::cxx::tree::id< char, ncname > id
Definition: Database.h:165
void DeleteSubstructure(void)
Definition: Algorithm.cxx:496
AlgMap * fOwnedSubAlgMp
local pool for owned sub-algs (taken out of the factory pool)
Definition: Algorithm.h:167
bool fOwnsSubstruc
true if it owns its substructure (sub-algs,...)
Definition: Algorithm.h:155
Algorithm abstract base class.
Definition: Algorithm.h:54
map< string, Algorithm * > AlgMap
Definition: Algorithm.h:49
Registry item pABC.
Definition: RegistryItemI.h:30
virtual const Registry & GetConfig(void) const
Definition: Algorithm.cxx:254
virtual RgType_t TypeInfo(void) const =0
map< RgKey, RegistryItemI * >::const_iterator RgIMapConstIter
Definition: Registry.h:50
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
Definition: Messenger.h:97
const RgIMap & GetItemMap(void) const
Definition: Registry.h:162
void AdoptSubstructure(void)
Definition: Algorithm.cxx:408
pair< string, Algorithm * > AlgMapPair
Definition: Algorithm.h:52
Algorithm * AdoptAlgorithm(const AlgId &algid) const
Definition: AlgFactory.cxx:127
Algorithm ID (algorithm name + configuration set name)
Definition: AlgId.h:35
virtual const AlgId & Id(void) const
Get algorithm ID.
Definition: Algorithm.h:98
static AlgFactory * Instance()
Definition: AlgFactory.cxx:75
string RgKey
Registry * fConfig
Summary configuration derived from fConvVect, not necessarily allocated.
Definition: Algorithm.h:194
#define pNOTICE
Definition: Messenger.h:62
The GENIE Algorithm Factory.
Definition: AlgFactory.h:40
string Key(void) const
Definition: AlgId.h:47
RgAlg GetAlg(RgKey key) const
Definition: Registry.cxx:503
#define pDEBUG
Definition: Messenger.h:64
map< RgKey, RegistryItemI * > RgIMap
Definition: Registry.h:46
virtual bool genie::Algorithm::AllowReconfig ( void  ) const
inlinevirtualinherited
AlgCmp_t Algorithm::Compare ( const Algorithm alg) const
virtualinherited

Compare with input algorithm.

Definition at line 294 of file Algorithm.cxx.

References genie::AlgId::Config(), genie::Algorithm::Id(), genie::kAlgCmpDiffAlg, genie::kAlgCmpDiffConfig, genie::kAlgCmpIdentical, genie::kAlgCmpUnknown, and genie::AlgId::Name().

Referenced by genie::Algorithm::AllowReconfig().

295 {
296 // Compares itself with the input algorithm
297 
298  string alg1 = this->Id().Name();
299  string config1 = this->Id().Config();
300  string alg2 = algo->Id().Name();
301  string config2 = algo->Id().Config();
302 
303  if(alg1 == alg2)
304  {
305  if(config1 == config2) return kAlgCmpIdentical;
306  else return kAlgCmpDiffConfig;
307  }
308  else return kAlgCmpDiffAlg;
309 
310  return kAlgCmpUnknown;
311 }
string Name(void) const
Definition: AlgId.h:45
virtual const AlgId & Id(void) const
Get algorithm ID.
Definition: Algorithm.h:98
string Config(void) const
Definition: AlgId.h:46
void SmithMonizQELCCPXSec::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 111 of file SmithMonizQELCCPXSec.cxx.

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

112 {
113  Algorithm::Configure(config);
114  this->LoadConfig();
115 }
virtual void Configure(const Registry &config)
Definition: Algorithm.cxx:70
void SmithMonizQELCCPXSec::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 117 of file SmithMonizQELCCPXSec.cxx.

References genie::Algorithm::Configure(), LoadConfig(), r(), and genie::Registry::Set().

118 {
120 
121  Registry r( "SmithMonizQELCCPXSec_specific", false ) ;
122  r.Set("sm_utils_algo", RgAlg("genie::SmithMonizUtils","Default") ) ;
123 
125 
126  this->LoadConfig();
127 }
Definition: config.py:1
virtual void Configure(const Registry &config)
Definition: Algorithm.cxx:70
A registry. Provides the container for algorithm configuration parameters.
Definition: Registry.h:66
TRandom3 r(0)
double SmithMonizQELCCPXSec::d2sQES_dQ2dv_SM ( const Interaction i) const
private

Definition at line 202 of file SmithMonizQELCCPXSec.cxx.

References genie::QELFormFactors::Calculate(), d3sQES_dQ2dvdkF_SM(), genie::QELFormFactors::F1V(), genie::QELFormFactors::FA(), fcosT_k, fE_lep, fE_nu, fF_A, fF_M, fF_P, fF_V, fFF_A, fFF_M, fFF_V, fFormFactors, genie::PDGLibrary::Find(), fk1, fk2, fk7, fm_tar, fmm_fin, fmm_ini, fmm_tar, fn_NT, genie::QELFormFactors::Fp(), fQ2, fqqv, fqv, genie::Interaction::FSPrimLepton(), fv, fVud2, fW_1, fW_2, fW_3, fW_4, fW_5, fXSecScale, genie::Kinematics::GetKV(), genie::Target::HitNucMass(), genie::Target::HitNucPdg(), MECModelEnuComparisons::i, genie::PDGLibrary::Instance(), genie::pdg::IsNeutrino(), genie::pdg::IsProton(), genie::SmithMonizUtils::kFQES_SM_lim(), kinematics(), genie::kKVPn, genie::kKVQ2, genie::kKVv, genie::constants::kNucleonMass2, kPi, genie::kRfLab, genie::utils::res::Mass(), genie::Target::Mass(), genie::Range1D_t::max, genie::Range1D_t::min, genie::Target::N(), genie::InitialState::ProbeE(), genie::InitialState::ProbePdg(), R, genie::SmithMonizUtils::SetInteraction(), genie::Kinematics::SetKV(), sm_utils, ana::Sqrt(), genie::pdg::SwitchProtonNeutron(), confusionMatrixTree::t, genie::InitialState::Tgt(), W, genie::QELFormFactors::xiF2V(), xsec, and genie::Target::Z().

Referenced by XSec().

203 {
204  Kinematics * kinematics = interaction -> KinePtr();
205  sm_utils->SetInteraction(interaction);
206  fQ2 = kinematics->GetKV(kKVQ2);
207  fv = kinematics->GetKV(kKVv);
209 
210  const InitialState & init_state = interaction -> InitState();
211  const Target & target = init_state.Tgt();
212  PDGLibrary * pdglib = PDGLibrary::Instance();
213 
214  // One of the xsec terms changes sign for antineutrinos
215  bool is_neutrino = pdg::IsNeutrino(init_state.ProbePdg());
216  fn_NT = (is_neutrino) ? +1 : -1;
217 
218  int nucl_pdg_ini = target.HitNucPdg();
219  double m_ini = target.HitNucMass();
220  fmm_ini = TMath::Power(m_ini, 2);
221  int nucl_pdg_fin = genie::pdg::SwitchProtonNeutron(nucl_pdg_ini);
222  TParticlePDG * nucl_fin = pdglib->Find( nucl_pdg_fin );
223  double m_fin = nucl_fin -> Mass(); // Mass of final hadron or hadron system (GeV)
224  fmm_fin = TMath::Power(m_fin, 2);
225  fm_tar = target.Mass(); // Mass of target nucleus (GeV)
226  fmm_tar = TMath::Power(fm_tar, 2);
227 
228  fE_nu = init_state.ProbeE(kRfLab);
229  fE_lep = fE_nu-fv;
230  double m_lep = interaction->FSPrimLepton()->Mass();
231  double mm_lep = m_lep*m_lep;
232  double P_lep = TMath::Sqrt(fE_lep*fE_lep-mm_lep);
233  double k6 = (fQ2+mm_lep)/(2*fE_nu);
234  double cosT_lep= (fE_lep-k6)/P_lep;
235 
236  //|\vec{q}|
237  fqqv = fv*fv+fQ2;
238  fqv = TMath::Sqrt(fqqv);
239  fcosT_k = (fv+k6)/fqv;
240 
242  fk2 = mm_lep/(2*fmm_tar);
243  fk7 = P_lep*cosT_lep;
244 
245 
246  // Calculate the QEL form factors
247  fFormFactors.Calculate(interaction);
248  fF_V = fFormFactors.F1V();
249  fF_M = fFormFactors.xiF2V();
250  fF_A = fFormFactors.FA();
251  fF_P = fFormFactors.Fp();
252  fFF_V = fF_V*fF_V;
253  fFF_M = fF_M*fF_M;
254  fFF_A = fF_A*fF_A;
255 
256  double t = fQ2/(4*kNucleonMass2);
257  fW_1 = fFF_A*(1+t)+t*(fF_V+fF_M)*(fF_V+fF_M); //Ref.[1], \tilde{T}_1
258  fW_2 = fFF_A+fFF_V+t*fFF_M; //Ref.[1], \tilde{T}_2
259  fW_3 =-2*fF_A*(fF_V+fF_M); //Ref.[1], \tilde{T}_8
260  fW_4 =-0.5*fF_V*fF_M-fF_A*fF_P+t*fF_P*fF_P-0.25*(1-t)*fFF_M; //Ref.[1], \tilde{T}_\alpha
261  fW_5 = fFF_V+t*fFF_M+fFF_A;
262 
263 // Gaussian quadratures integrate over Fermi momentum
264  double R[48]= { 0.16276744849602969579e-1,0.48812985136049731112e-1,
265  0.81297495464425558994e-1,1.13695850110665920911e-1,
266  1.45973714654896941989e-1,1.78096882367618602759e-1,
267  2.10031310460567203603e-1,2.41743156163840012328e-1,
268  2.73198812591049141487e-1,3.04364944354496353024e-1,
269  3.35208522892625422616e-1,3.65696861472313635031e-1,
270  3.95797649828908603285e-1,4.25478988407300545365e-1,
271  4.54709422167743008636e-1,4.83457973920596359768e-1,
272  5.11694177154667673586e-1,5.39388108324357436227e-1,
273  5.66510418561397168404e-1,5.93032364777572080684e-1,
274  6.18925840125468570386e-1,6.44163403784967106798e-1,
275  6.68718310043916153953e-1,6.92564536642171561344e-1,
276  7.15676812348967626225e-1,7.38030643744400132851e-1,
277  7.59602341176647498703e-1,7.80369043867433217604e-1,
278  8.00308744139140817229e-1,8.19400310737931675539e-1,
279  8.37623511228187121494e-1,8.54959033434601455463e-1,
280  8.71388505909296502874e-1,8.86894517402420416057e-1,
281  9.01460635315852341319e-1,9.15071423120898074206e-1,
282  9.27712456722308690965e-1,9.39370339752755216932e-1,
283  9.50032717784437635756e-1,9.59688291448742539300e-1,
284  9.68326828463264212174e-1,9.75939174585136466453e-1,
285  9.82517263563014677447e-1,9.88054126329623799481e-1,
286  9.92543900323762624572e-1,9.95981842987209290650e-1,
287  9.98364375863181677724e-1,9.99689503883230766828e-1};
288 
289  double W[48]= { 0.00796792065552012429e-1,0.01853960788946921732e-1,
290  0.02910731817934946408e-1,0.03964554338444686674e-1,
291  0.05014202742927517693e-1,0.06058545504235961683e-1,
292  0.07096470791153865269e-1,0.08126876925698759217e-1,
293  0.09148671230783386633e-1,0.10160770535008415758e-1,
294  0.11162102099838498591e-1,0.12151604671088319635e-1,
295  0.13128229566961572637e-1,0.14090941772314860916e-1,
296  0.15038721026994938006e-1,0.15970562902562291381e-1,
297  0.16885479864245172450e-1,0.17782502316045260838e-1,
298  0.18660679627411467395e-1,0.19519081140145022410e-1,
299  0.20356797154333324595e-1,0.21172939892191298988e-1,
300  0.21966644438744349195e-1,0.22737069658329374001e-1,
301  0.23483399085926219842e-1,0.24204841792364691282e-1,
302  0.24900633222483610288e-1,0.25570036005349361499e-1,
303  0.26212340735672413913e-1,0.26826866725591762198e-1,
304  0.27412962726029242823e-1,0.27970007616848334440e-1,
305  0.28497411065085385646e-1,0.28994614150555236543e-1,
306  0.29461089958167905970e-1,0.29896344136328385984e-1,
307  0.30299915420827593794e-1,0.30671376123669149014e-1,
308  0.31010332586313837423e-1,0.31316425596861355813e-1,
309  0.31589330770727168558e-1,0.31828758894411006535e-1,
310  0.32034456231992663218e-1,0.32206204794030250669e-1,
311  0.32343822568575928429e-1,0.32447163714064269364e-1,
312  0.32516118713868835987e-1,0.32550614492363166242e-1};
313 
314  double Sum = 0;
315  for(int i = 0;i<48;i++)
316  {
317  double kF = 0.5*(-R[i]*(rkF.max-rkF.min)+rkF.min+rkF.max);
318  kinematics->SetKV(kKVPn, kF);
319  Sum+=d3sQES_dQ2dvdkF_SM(interaction)*W[47-i];
320  kF = 0.5*(R[i]*(rkF.max-rkF.min)+rkF.min+rkF.max);
321  kinematics->SetKV(kKVPn, kF);
322  Sum+=d3sQES_dQ2dvdkF_SM(interaction)*W[47-i];
323  }
324 
325  double xsec = 0.5*Sum*(rkF.max-rkF.min);
326 
327  int nucpdgc = target.HitNucPdg();
328  int NNucl = (pdg::IsProton(nucpdgc)) ? target.Z() : target.N();
329 
330  xsec *= NNucl; // nuclear xsec
331 
332  // Apply given scaling factor
333  xsec *= fXSecScale;
334 
335  return xsec;
336 
337 }
void SetInteraction(const Interaction *i)
const double kPi
bool IsNeutrino(int pdgc)
Definition: PDGUtils.cxx:108
const XML_Char * target
Definition: expat.h:268
int HitNucPdg(void) const
Definition: Target.cxx:321
double fXSecScale
external xsec scaling factor
A simple [min,max] interval for doubles.
Definition: Range1.h:43
double HitNucMass(void) const
Definition: Target.cxx:250
Generated/set kinematical variables for an event.
Definition: Kinematics.h:40
int SwitchProtonNeutron(int pdgc)
Definition: PDGUtils.cxx:319
double d3sQES_dQ2dvdkF_SM(const Interaction *interaction) const
double Mass(Resonance_t res)
resonance mass (GeV)
double Mass(void) const
Definition: Target.cxx:241
Range1D_t kFQES_SM_lim(double nu, double Q2) const
bool IsProton(int pdgc)
Definition: PDGUtils.cxx:299
A Neutrino Interaction Target. Is a transparent encapsulation of quite different physical systems suc...
Definition: Target.h:41
int ProbePdg(void) const
Definition: InitialState.h:65
#define R(x)
int Z(void) const
Definition: Target.h:69
double GetKV(KineVar_t kv) const
Definition: Kinematics.cxx:333
static const double kNucleonMass2
Definition: Constants.h:90
double xiF2V(void) const
Get the computed form factor xi*F2V.
Double_t xsec[nknots]
Definition: testXsec.C:47
void Calculate(const Interaction *interaction)
Compute the form factors for the input interaction using the attached model.
void SetKV(KineVar_t kv, double value)
Definition: Kinematics.cxx:345
double max
Definition: Range1.h:54
int N(void) const
Definition: Target.h:70
static PDGLibrary * Instance(void)
Definition: PDGLibrary.cxx:43
Singleton class to load & serve a TDatabasePDG.
Definition: PDGLibrary.h:30
Var Sqrt(const Var &v)
Use to take sqrt of a var.
Definition: Var.cxx:326
double fVud2
|Vud|^2(square of magnitude ud-element of CKM-matrix)
TParticlePDG * Find(int pdgc)
Definition: PDGLibrary.cxx:61
double min
Definition: Range1.h:53
double F1V(void) const
Get the computed form factor F1V.
const Target & Tgt(void) const
Definition: InitialState.h:67
double Fp(void) const
Get the computed form factor Fp.
void kinematics()
Definition: kinematics.C:10
#define W(x)
double ProbeE(RefFrame_t rf) const
double FA(void) const
Get the computed form factor FA.
Initial State information.
Definition: InitialState.h:49
double SmithMonizQELCCPXSec::d3sQES_dQ2dvdkF_SM ( const Interaction interaction) const
private

Definition at line 156 of file SmithMonizQELCCPXSec.cxx.

References a2, a3, a4, fcosT_k, fE_lep, fE_nu, fk1, fk2, fk7, fm_tar, fmm_fin, fmm_ini, fmm_tar, fn_NT, fQ2, fqqv, fqv, fv, fW_1, fW_2, fW_3, fW_4, fW_5, genie::SmithMonizUtils::GetBindingEnergy(), genie::SmithMonizUtils::GetFermiMomentum(), genie::Kinematics::GetKV(), genie::constants::kGF2, kinematics(), genie::kKVPn, genie::constants::kMw2, genie::constants::kNucleonMass, genie::constants::kNucleonMass2, kPi, genie::SmithMonizUtils::rho(), sm_utils, ana::Sqrt(), and xsec.

Referenced by d2sQES_dQ2dv_SM().

157 {
158  // Get kinematics & init-state parameters
159  const Kinematics & kinematics = interaction -> Kine();
160 
161  double kF = kinematics.GetKV(kKVPn);
162  double kkF = kF*kF;
163  double P_Fermi, E_nuBIN;
164 
165  E_nuBIN = sm_utils->GetBindingEnergy();
166 
167  double E_p = TMath::Sqrt(fmm_ini+kkF)-E_nuBIN;
168  double cosT_p = ((fv-E_nuBIN)*(2*E_p+fv+E_nuBIN)-fqqv+fmm_ini-fmm_fin)/(2*kF*fqv); //\cos\theta_p
169  double pF = TMath::Sqrt(kkF+(2*kF*fqv)*cosT_p+fqqv);
170  double b2_flux = (E_p-kF*fcosT_k*cosT_p)*(E_p-kF*fcosT_k*cosT_p);
171  double c2_flux = kkF*(1-cosT_p*cosT_p)*(1-fcosT_k*fcosT_k);
172 
173  P_Fermi = sm_utils->GetFermiMomentum();
174  double FV_SM = 4.0*TMath::Pi()/3*TMath::Power(P_Fermi, 3);
175  double factor = fk1*(fm_tar*kF/(FV_SM*fqv*TMath::Sqrt(b2_flux-c2_flux)))*SmithMonizUtils::rho(P_Fermi, 0.0, kF)*(1-SmithMonizUtils::rho(P_Fermi, 0.01, pF));
176 
177  double a2 = kkF/kNucleonMass2;
178  double a3 = a2*cosT_p*cosT_p;
179  double a6 = kF*cosT_p/kNucleonMass;
180  double a7 = E_p/kNucleonMass;
181  double a4 = a7*a7;
182  double a5 = 2*a7*a6;
183 
184  double k3 = fv/fqv;
185  double k4 = (3*a3-a2)/fqqv;
186  double k5 = (a7-a6*k3)*fm_tar/kNucleonMass;
187 
188  double T_1 = 1.0*fW_1+(a2-a3)*0.5*fW_2; //Ref.[1], W_1
189  double T_2 = ((a2-a3)*fQ2/(2*fqqv)+a4-k3*(a5-k3*a3))*fW_2; //Ref.[1], W_2
190  double T_3 = k5*fW_3; //Ref.[1], W_8
191  double T_4 = fmm_tar*(0.5*fW_2*k4+1.0*fW_4/kNucleonMass2+a6*fW_5/(kNucleonMass*fqv)); //Ref.[1], W_\alpha
192  double T_5 = k5*fW_5+fm_tar*(a5/fqv-fv*k4)*fW_2;
193 
194  double xsec = kGF2*factor*((fE_lep-fk7)*(T_1+fk2*T_4)/fm_tar+(fE_lep+fk7)*T_2/(2*fm_tar)
195  +fn_NT*T_3*((fE_nu+fE_lep)*(fE_lep-fk7)/(2*fmm_tar)-fk2)-fk2*T_5)
196  *(kMw2/(kMw2+fQ2))*(kMw2/(kMw2+fQ2))/fE_nu/kPi;
197  return xsec;
198 
199 
200 }
const double kPi
TH1F * a3
Definition: f2_nu.C:606
TH1F * a2
Definition: f2_nu.C:545
static const double kMw2
Definition: Constants.h:94
static const double kNucleonMass
Definition: Constants.h:78
Generated/set kinematical variables for an event.
Definition: Kinematics.h:40
double GetBindingEnergy(void) const
double GetKV(KineVar_t kv) const
Definition: Kinematics.cxx:333
static const double kNucleonMass2
Definition: Constants.h:90
Double_t xsec[nknots]
Definition: testXsec.C:47
static double rho(double P_Fermi, double T_Fermi, double p)
Var Sqrt(const Var &v)
Use to take sqrt of a var.
Definition: Var.cxx:326
TH1F * a4
Definition: f2_nu.C:666
static const double kGF2
Definition: Constants.h:60
void kinematics()
Definition: kinematics.C:10
double GetFermiMomentum(void) const
void Algorithm::DeleteConfig ( void  )
protectedinherited

Definition at line 471 of file Algorithm.cxx.

References MECModelEnuComparisons::i.

Referenced by genie::Algorithm::AllowReconfig().

472 {
473  // there is nothing to delete if the configuration is not owned but is
474  // rather looked up from the configuration pool
475  //
476 
477  for ( unsigned int i = 0 ; i < fConfVect.size() ; ++i ) {
478  if ( fOwnerships[i] ) {
479  delete fConfVect[i] ;
480  }
481  }
482 
483  fConfVect.clear() ;
484  fOwnerships.clear() ;
485 
486  // delete owned configuration registry
487 
488  if(fConfig) {
489  delete fConfig;
490  fConfig=0;
491  }
492 
493 }
vector< Registry * > fConfVect
Definition: Algorithm.h:161
vector< bool > fOwnerships
ownership for every registry in fConfVect
Definition: Algorithm.h:164
Registry * fConfig
Summary configuration derived from fConvVect, not necessarily allocated.
Definition: Algorithm.h:194
void Algorithm::DeleteSubstructure ( void  )
protectedinherited

Definition at line 496 of file Algorithm.cxx.

Referenced by genie::Algorithm::AllowReconfig().

497 {
498  // there is nothing to delete if the sub-algorithms are not owned but rather
499  // taken from the AlgFactory's pool
500  //
501  if(!fOwnsSubstruc) return;
502 
503  // delete local algorithm pool
504  //
505  AlgMapIter iter = fOwnedSubAlgMp->begin();
506  for( ; iter != fOwnedSubAlgMp->end(); ++iter) {
507  Algorithm * alg = iter->second;
508  if(alg) {
509  delete alg;
510  alg=0;
511  }
512  }
513  delete fOwnedSubAlgMp;
514  fOwnedSubAlgMp = 0;
515 }
AlgMap * fOwnedSubAlgMp
local pool for owned sub-algs (taken out of the factory pool)
Definition: Algorithm.h:167
bool fOwnsSubstruc
true if it owns its substructure (sub-algs,...)
Definition: Algorithm.h:155
Algorithm abstract base class.
Definition: Algorithm.h:54
map< string, Algorithm * >::iterator AlgMapIter
Definition: Algorithm.h:50
double SmithMonizQELCCPXSec::dsQES_dQ2_SM ( const Interaction interaction) const
private

Definition at line 339 of file SmithMonizQELCCPXSec.cxx.

References genie::Target::A(), genie::units::A, ana::assert(), C, genie::QELFormFactors::Calculate(), E, genie::QELFormFactors::F1V(), genie::QELFormFactors::FA(), fFormFactors, genie::QELFormFactors::Fp(), genie::Interaction::FSPrimLepton(), fVud2, fXSecScale, genie::Target::HitNucMass(), genie::Target::HitNucPdg(), genie::pdg::IsAntiNuE(), genie::pdg::IsNeutrino(), genie::Target::IsNeutron(), genie::pdg::IsNuE(), genie::Target::IsProton(), genie::pdg::IsProton(), genie::constants::kAem, genie::constants::kElectronMass, genie::constants::kGF2, kinematics(), genie::constants::kMw2, genie::constants::kNeutronMass2, kPi, genie::constants::kProtonMass, genie::constants::kProtonMass2, genie::kRfHitNucRest, mp, genie::Target::N(), genie::InitialState::ProbeE(), genie::InitialState::ProbePdg(), genie::Kinematics::q2(), genie::utils::kinematics::Q2(), q2, submit_cafana::rc, canMan::sign(), genie::InitialState::Tgt(), genie::QELFormFactors::xiF2V(), xsec, and genie::Target::Z().

Referenced by XSec().

340 {
341  // Get kinematics & init-state parameters
342  const Kinematics & kinematics = interaction -> Kine();
343  const InitialState & init_state = interaction -> InitState();
344  const Target & target = init_state.Tgt();
345 
346  double E = init_state.ProbeE(kRfHitNucRest);
347  double E2 = TMath::Power(E,2);
348  double ml = interaction->FSPrimLepton()->Mass();
349  double M = target.HitNucMass();
350  double q2 = kinematics.q2();
351 
352  // One of the xsec terms changes sign for antineutrinos
353  bool is_neutrino = pdg::IsNeutrino(init_state.ProbePdg());
354  int sign = (is_neutrino) ? -1 : 1;
355 
356  // Calculate the QEL form factors
357  fFormFactors.Calculate(interaction);
358 
359  double F1V = fFormFactors.F1V();
360  double xiF2V = fFormFactors.xiF2V();
361  double FA = fFormFactors.FA();
362  double Fp = fFormFactors.Fp();
363 
364 
365  // Calculate auxiliary parameters
366  double ml2 = TMath::Power(ml, 2);
367  double M2 = TMath::Power(M, 2);
368  double M4 = TMath::Power(M2, 2);
369  double FA2 = TMath::Power(FA, 2);
370  double Fp2 = TMath::Power(Fp, 2);
371  double F1V2 = TMath::Power(F1V, 2);
372  double xiF2V2 = TMath::Power(xiF2V, 2);
373  double Gfactor = M2*kGF2*fVud2*(kMw2/(kMw2-q2))*(kMw2/(kMw2-q2)) / (8*kPi*E2);
374  double s_u = 4*E*M + q2 - ml2;
375  double q2_M2 = q2/M2;
376 
377  // Compute free nucleon differential cross section
378  double A = (0.25*(ml2-q2)/M2) * (
379  (4-q2_M2)*FA2 - (4+q2_M2)*F1V2 - q2_M2*xiF2V2*(1+0.25*q2_M2)
380  -4*q2_M2*F1V*xiF2V - (ml2/M2)*(
381  (F1V2+xiF2V2+2*F1V*xiF2V)+(FA2+4*Fp2+4*FA*Fp)+(q2_M2-4)*Fp2));
382  double B = -1 * q2_M2 * FA*(F1V+xiF2V);
383  double C = 0.25*(FA2 + F1V2 - 0.25*q2_M2*xiF2V2);
384 
385  double xsec = Gfactor * (A + sign*B*s_u/M2 + C*s_u*s_u/M4);
386 
387  // Apply given scaling factor
388  xsec *= fXSecScale;
389 
390  // Deuterium and tritium is a special case
391  if (target.A()>1 && target.A()<4)
392  {
393  double Q2 = -q2;
394  double fQES_Pauli = 1.0-0.529*TMath::Exp((Q2*(228.0-531.0*Q2)-48.0)*Q2);
395  xsec *= fQES_Pauli;
396  }
397 
398  int nucpdgc = target.HitNucPdg();
399  int NNucl = (pdg::IsProton(nucpdgc)) ? target.Z() : target.N();
400 
401  xsec *= NNucl; // nuclear xsec
402 
403  // Apply radiative correction to the cross section for IBD processes
404  // Refs:
405  // 1) I.S. Towner, Phys. Rev. C 58 (1998) 1288;
406  // 2) J.F. Beacom, S.J. Parke, Phys. Rev. D 64 (2001) 091302;
407  // 3) A. Kurylov, M.J. Ramsey-Musolf, P. Vogel, Phys. Rev. C 65 (2002) 055501;
408  // 4) A. Kurylov, M.J. Ramsey-Musolf, P. Vogel, Phys. Rev. C 67 (2003) 035502.
409  double rc = 1.0;
410  if ( (target.IsProton() && pdg::IsAntiNuE(init_state.ProbePdg())) || (target.IsNeutron() && pdg::IsNuE(init_state.ProbePdg()) ))
411  {
412  const double mp = kProtonMass;
413  const double mp2 = kProtonMass2;
414  const double mn2 = kNeutronMass2;
415  const double Ee = E + ( (q2 - mn2 + mp2) / 2.0 / mp );
416  assert(Ee > 0.0); // must be non-zero and positive
417  rc = 6.0 + (1.5 * TMath::Log(kProtonMass / 2.0 / Ee));
418  rc += 1.2 * TMath::Power((kElectronMass / Ee), 1.5);
419  rc *= kAem / kPi;
420  rc += 1.0;
421  }
422 
423  xsec *= rc;
424  return xsec;
425 }
const double kPi
bool IsNeutrino(int pdgc)
Definition: PDGUtils.cxx:108
const XML_Char * target
Definition: expat.h:268
static const double kMw2
Definition: Constants.h:94
double Q2(const Interaction *const i)
Definition: KineUtils.cxx:991
int HitNucPdg(void) const
Definition: Target.cxx:321
bool IsNeutron(void) const
Definition: Target.cxx:284
double fXSecScale
external xsec scaling factor
int A(void) const
Definition: Target.h:71
double HitNucMass(void) const
Definition: Target.cxx:250
Generated/set kinematical variables for an event.
Definition: Kinematics.h:40
bool IsNuE(int pdgc)
Definition: PDGUtils.cxx:150
static const double kElectronMass
Definition: Constants.h:71
static const double kAem
Definition: Constants.h:57
Double_t q2[12][num]
Definition: f2_nu.C:137
const double C
double q2(bool selected=false) const
Definition: Kinematics.cxx:151
bool IsProton(int pdgc)
Definition: PDGUtils.cxx:299
Float_t E
Definition: plot.C:20
A Neutrino Interaction Target. Is a transparent encapsulation of quite different physical systems suc...
Definition: Target.h:41
int ProbePdg(void) const
Definition: InitialState.h:65
TString mp
Definition: loadincs.C:4
int Z(void) const
Definition: Target.h:69
double xiF2V(void) const
Get the computed form factor xi*F2V.
Double_t xsec[nknots]
Definition: testXsec.C:47
TParticlePDG * FSPrimLepton(void) const
final state primary lepton
void Calculate(const Interaction *interaction)
Compute the form factors for the input interaction using the attached model.
static const double A
Definition: Units.h:82
int N(void) const
Definition: Target.h:70
double fVud2
|Vud|^2(square of magnitude ud-element of CKM-matrix)
assert(nhit_max >=nhit_nbins)
double F1V(void) const
Get the computed form factor F1V.
const Target & Tgt(void) const
Definition: InitialState.h:67
static const double kProtonMass2
Definition: Constants.h:88
static const double kGF2
Definition: Constants.h:60
double Fp(void) const
Get the computed form factor Fp.
static const double kNeutronMass2
Definition: Constants.h:89
void kinematics()
Definition: kinematics.C:10
bool IsProton(void) const
Definition: Target.cxx:279
double ProbeE(RefFrame_t rf) const
double FA(void) const
Get the computed form factor FA.
bool IsAntiNuE(int pdgc)
Definition: PDGUtils.cxx:165
static const double kProtonMass
Definition: Constants.h:76
def sign(x)
Definition: canMan.py:197
Initial State information.
Definition: InitialState.h:49
Registry * Algorithm::ExtractLocalConfig ( const Registry in) const
protectedinherited

Split an incoming configuration Registry into a block valid for this algorithm Ownership of the returned registry belongs to the algo

Definition at line 518 of file Algorithm.cxx.

References genie::RegistryItemI::Clone(), genie::Registry::GetItemMap(), genie::Registry::Name(), and confusionMatrixTree::out.

Referenced by genie::Algorithm::AllowReconfig().

518  {
519 
520  const RgIMap & rgmap = in.GetItemMap();
521  Registry * out = new Registry( in.Name(), false );
522 
523  for( RgIMapConstIter reg_iter = rgmap.begin();
524  reg_iter != rgmap.end(); ++reg_iter ) {
525 
526  RgKey reg_key = reg_iter->first;
527  if( reg_key.find( '/' ) != string::npos) continue;
528 
529  // at this point
530  // this key is referred to the local algorithm
531  // it has to be copied in out;
532 
533  RegistryItemI * ri = reg_iter->second;
534  RgIMapPair key_item_pair( reg_key, ri->Clone() );
535  out -> Set(key_item_pair);
536 
537  }
538 
539  if ( out -> NEntries() <= 0 ) {
540  delete out ;
541  out = 0 ;
542  }
543 
544  return out ;
545 }
Registry item pABC.
Definition: RegistryItemI.h:30
string Name(void) const
get the registry name
Definition: Registry.cxx:612
map< RgKey, RegistryItemI * >::const_iterator RgIMapConstIter
Definition: Registry.h:50
const RgIMap & GetItemMap(void) const
Definition: Registry.h:162
pair< RgKey, RegistryItemI * > RgIMapPair
Definition: Registry.h:47
string RgKey
A registry. Provides the container for algorithm configuration parameters.
Definition: Registry.h:66
virtual RegistryItemI * Clone(void) const =0
map< RgKey, RegistryItemI * > RgIMap
Definition: Registry.h:46
Registry * Algorithm::ExtractLowerConfig ( const Registry in,
const string alg_key 
) const
protectedinherited

Split an incoming configuration Registry into a block valid for the sub-algo identified by alg_key.

Definition at line 549 of file Algorithm.cxx.

References genie::RegistryItemI::Clone(), genie::Registry::GetItemMap(), genie::Registry::Name(), and confusionMatrixTree::out.

Referenced by genie::Algorithm::AllowReconfig().

549  {
550 
551  const RgIMap & rgmap = in.GetItemMap();
552  Registry * out = new Registry( in.Name(), false );
553 
554  for( RgIMapConstIter reg_iter = rgmap.begin();
555  reg_iter != rgmap.end(); ++reg_iter ) {
556 
557  RgKey reg_key = reg_iter->first;
558  if( reg_key.find(alg_key+"/") == string::npos) continue;
559 
560  // at this point
561  // this key is referred to the sub-algorithm
562  // indicated by alg_key: it has to be copied in out;
563 
564  int new_key_start = reg_key.find_first_of('/')+1;
565  RgKey new_reg_key = reg_key.substr( new_key_start, reg_key.length() );
566 
567  RegistryItemI * ri = reg_iter->second;
568  RgIMapPair key_item_pair(new_reg_key, ri->Clone());
569  out -> Set(key_item_pair);
570 
571  }
572 
573  if ( out -> NEntries() <= 0 ) {
574  delete out ;
575  out = 0 ;
576  }
577 
578  return out ;
579 
580 }
Registry item pABC.
Definition: RegistryItemI.h:30
string Name(void) const
get the registry name
Definition: Registry.cxx:612
map< RgKey, RegistryItemI * >::const_iterator RgIMapConstIter
Definition: Registry.h:50
const RgIMap & GetItemMap(void) const
Definition: Registry.h:162
pair< RgKey, RegistryItemI * > RgIMapPair
Definition: Registry.h:47
string RgKey
A registry. Provides the container for algorithm configuration parameters.
Definition: Registry.h:66
virtual RegistryItemI * Clone(void) const =0
map< RgKey, RegistryItemI * > RgIMap
Definition: Registry.h:46
void Algorithm::FindConfig ( void  )
virtualinherited

Lookup configuration from the config pool Similar logic from void Configure(string)

Definition at line 135 of file Algorithm.cxx.

References gen_hdf5record::config, exit(), genie::AlgConfigPool::FindRegistry(), genie::Registry::GetItemMap(), genie::Registry::GetString(), MECModelEnuComparisons::i, genie::AlgConfigPool::Instance(), it, genie::Registry::ItemIsLocal(), parse_dependency_file_t::list, LOG, pDEBUG, pFATAL, time_estimates::pool, pWARN, moon_position_table_new3::second, genie::utils::str::Split(), string, and APDHVSetting::temp.

136 {
137 // Finds its configration Registry from the ConfigPool and gets a pointer to
138 // it. If the Registry comes from the ConfigPool then the Algorithm does not
139 // own its configuration (the ConfigPool singleton keeps the ownership and the
140 // responsibility to -eventually- delete all the Registries it instantiates
141 // by parsing the XML config files).
142 
143  DeleteConfig() ;
144 
146 
147  Registry * config = 0 ;
148 
149  // load the Default config if config is not the default
150  if ( fID.Config() != "Default" ) {
151  config = pool -> FindRegistry( fID.Name(), "Default" );
152  if ( config ) {
153  if ( config -> NEntries() > 0 ) {
154  AddTopRegistry( config, false ) ;
155  LOG("Algorithm", pDEBUG) << "\n" << *config;
156  }
157  }
158  }
159 
160  // Load the right config
161  config = pool->FindRegistry(this);
162 
163  if(!config)
164  // notify & keep whatever config Registry was used before.
165  LOG("Algorithm", pWARN)
166  << "No Configuration available for "
167  << this->Id().Key() << " at the ConfigPool";
168  else {
169  if ( config -> NEntries() > 0 ) {
170  AddTopRegistry( config, false ) ;
171  LOG("Algorithm", pDEBUG) << "\n" << config;
172  }
173  }
174 
175  const string common_key_root = "Common" ;
176  std::map<string, string> common_lists;
177 
178  // Load Common Parameters if key that start with "Common" is found
179  for ( unsigned int i = 0 ; i < fConfVect.size() ; ++i ) {
180  const Registry & temp = * fConfVect[i] ;
181  for ( RgIMapConstIter it = temp.GetItemMap().begin() ; it != temp.GetItemMap().end() ; ++it ) {
182 
183  // check if it is a "Common" entry
184  if ( it -> first.find( common_key_root ) == 0 ) {
185  // retrieve the type of the common entry
186  std::string type = it -> first.substr(common_key_root.size() ) ;
187 
188  if ( temp.ItemIsLocal( it -> first ) ) {
189 
190  string temp_list = temp.GetString( it -> first ) ;
191  if ( temp_list.length() > 0 ) {
192  common_lists[type] = temp_list ;
193  }
194  }
195  }
196 
197  }
198 
199  } // loop over the local registries
200 
201 
202  for ( std::map<string, string>::const_iterator it = common_lists.begin() ;
203  it != common_lists.end() ; ++it ) {
204 
205  vector<string> list = str::Split( it -> second , "," ) ;
206 
207  for ( unsigned int i = 0; i < list.size(); ++i ) {
208 
209  config = pool -> CommonList( it -> first, list[i] ) ;
210 
211  if ( ! config ) {
212  LOG("Algorithm", pFATAL)
213  << "No Commom parameters available for " << it -> first << " list "
214  << list[i] << " at the ConfigPool";
215 
216  exit( 78 ) ;
217  }
218  else {
219  AddLowRegistry( config, false ) ;
220  LOG("Algorithm", pDEBUG) << "Loading "
221  << it -> first << " registry "
222  << list[i] << " \n" << config;
223  }
224 
225  }
226 
227  }
228 
229 
230  // Load Tunable from CommonParameters
231  // only if the option is specified in RunOpt
232  config = pool -> CommonList( "Param", "Tunable" ) ;
233  if ( config ) {
234  if ( config -> NEntries() > 0 ) {
235  AddTopRegistry( config, false ) ;
236  LOG("Algorithm", pDEBUG) << "Loading Tunable registry \n" << config;
237  }
238  }
239  else {
240  // notify & keep whatever config Registry was used before.
241  LOG("Algorithm", pWARN)
242  << "No Tunable parameter set available at the ConfigPool";
243  }
244 
245  if ( fConfig ) {
246  delete fConfig ;
247  fConfig = 0 ;
248  }
249 
250 }
set< int >::iterator it
A singleton class holding all configuration registries built while parsing all loaded XML configurati...
Definition: AlgConfigPool.h:41
#define pFATAL
Definition: Messenger.h:57
Definition: config.py:1
AlgId fID
algorithm name and configuration set
Definition: Algorithm.h:156
map< RgKey, RegistryItemI * >::const_iterator RgIMapConstIter
Definition: Registry.h:50
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
Definition: Messenger.h:97
const RgIMap & GetItemMap(void) const
Definition: Registry.h:162
string Name(void) const
Definition: AlgId.h:45
bool ItemIsLocal(RgKey key) const
local or global?
Definition: Registry.cxx:193
int AddTopRegistry(Registry *rp, bool owns=true)
add registry with top priority, also update ownership
Definition: Algorithm.cxx:585
#define pWARN
Definition: Messenger.h:61
void DeleteConfig(void)
Definition: Algorithm.cxx:471
virtual const AlgId & Id(void) const
Get algorithm ID.
Definition: Algorithm.h:98
RgStr GetString(RgKey key) const
Definition: Registry.cxx:496
vector< Registry * > fConfVect
Definition: Algorithm.h:161
vector< string > Split(string input, string delim)
Definition: StringUtils.cxx:42
A registry. Provides the container for algorithm configuration parameters.
Definition: Registry.h:66
exit(0)
Registry * fConfig
Summary configuration derived from fConvVect, not necessarily allocated.
Definition: Algorithm.h:194
Registry * FindRegistry(string key) const
int AddLowRegistry(Registry *rp, bool owns=true)
add registry with lowest priority, also update ownership
Definition: Algorithm.cxx:601
string Key(void) const
Definition: AlgId.h:47
static AlgConfigPool * Instance()
#define pDEBUG
Definition: Messenger.h:64
string Config(void) const
Definition: AlgId.h:46
enum BeamMode string
const Registry & Algorithm::GetConfig ( void  ) const
virtualinherited

Get configuration registry Evaluate the summary of the configuration and returns it The summary of a configuration is a merge of all the registries known to the algorithm (see Configure() methods) but every parameter is appearing only once and in case of repetitions, only the parameter from the registry with the highest prioriry is considered.

Definition at line 254 of file Algorithm.cxx.

References febshutoff_auto::end, genie::Algorithm::GetConfig(), MECModelEnuComparisons::i, LOG, pDEBUG, r(), and moon_position_table_new3::second.

Referenced by genie::EventGeneratorListAssembler::AssembleGeneratorList(), GetAlgorithms(), genie::Algorithm::GetConfig(), genie::GRV98LO::GRV98LO(), genie::NewQELXSec::Integrate(), genie::LHAPDF5::LHAPDF5(), genie::IBDXSecMap::LoadConfig(), genie::Decayer::LoadConfig(), genie::PythiaHadronization::LoadConfig(), genie::FGMBodekRitchie::LoadConfig(), genie::NuclearModelMap::LoadConfig(), genie::SmithMonizUtils::LoadConfig(), main(), genie::AlgFactory::Print(), TestPythiaTauDecays(), testReconfigInOwnedModules(), and genie::P33PaschosLalakulichPXSec::XSec().

254  {
255 
256  if ( fConfig ) return * fConfig ;
257 
258  const_cast<Algorithm*>( this ) -> fConfig = new Registry( fID.Key() + "_summary", false ) ;
259 
260  // loop and append
261  // understand the append mechanism
262  for ( unsigned int i = 0 ; i < fConfVect.size(); ++i ) {
263  fConfig -> Append( * fConfVect[i] ) ;
264  }
265 
266  if ( fOwnsSubstruc ) {
267 
268  for ( AlgMapConstIter iter = fOwnedSubAlgMp -> begin() ;
269  iter != fOwnedSubAlgMp -> end() ; ++iter ) {
270 
271  Algorithm * subalg = iter -> second ;
272 
273  LOG("Algorithm", pDEBUG) << "Appending config from " << iter -> first << " -> " << subalg -> Id() ;
274  const Registry & r = subalg->GetConfig();
275  RgKey prefix = iter -> first + "/";
276  fConfig -> Append(r,prefix);
277 
278  }
279 
280  } //if owned substructure
281 
282  return * fConfig ;
283 }
AlgMap * fOwnedSubAlgMp
local pool for owned sub-algs (taken out of the factory pool)
Definition: Algorithm.h:167
bool fOwnsSubstruc
true if it owns its substructure (sub-algs,...)
Definition: Algorithm.h:155
Algorithm abstract base class.
Definition: Algorithm.h:54
AlgId fID
algorithm name and configuration set
Definition: Algorithm.h:156
virtual const Registry & GetConfig(void) const
Definition: Algorithm.cxx:254
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
Definition: Messenger.h:97
const XML_Char * prefix
Definition: expat.h:380
map< string, Algorithm * >::const_iterator AlgMapConstIter
Definition: Algorithm.h:51
virtual const AlgId & Id(void) const
Get algorithm ID.
Definition: Algorithm.h:98
vector< Registry * > fConfVect
Definition: Algorithm.h:161
string RgKey
A registry. Provides the container for algorithm configuration parameters.
Definition: Registry.h:66
TRandom3 r(0)
Registry * fConfig
Summary configuration derived from fConvVect, not necessarily allocated.
Definition: Algorithm.h:194
string Key(void) const
Definition: AlgId.h:47
#define pDEBUG
Definition: Messenger.h:64
Registry * Algorithm::GetOwnedConfig ( void  )
inherited

Returns the pointer of the summary registry, see previous method Gives access to the summary so it could be changed. The usage of this method is deprecated as it is mantained only for back compatibility. If you need to add or chage a parter (or more), use the AddTopRegistry() instead

Definition at line 287 of file Algorithm.cxx.

References GetConfig().

Referenced by genie::TransverseEnhancementFFModel::LoadConfig(), and genie::EffectiveSF::LoadConfig().

288 {
289 
290  GetConfig() ;
291  return fConfig;
292 }
virtual const Registry & GetConfig(void) const
Definition: Algorithm.cxx:254
Registry * fConfig
Summary configuration derived from fConvVect, not necessarily allocated.
Definition: Algorithm.h:194
template<class T >
bool genie::Algorithm::GetParam ( const RgKey name,
T p,
bool  is_top_call = true 
) const
protectedinherited

Ideal access to a parameter value from the vector of registries Returns true if the value is found and the parameters is set

Referenced by genie::CollinsSpillerFragm::BuildFunction(), genie::PetersonFragm::BuildFunction(), genie::INukeDeltaPropg::LoadConfig(), genie::COHXSec::LoadConfig(), genie::DISXSec::LoadConfig(), genie::HadronTransporter::LoadConfig(), genie::DFRKinematicsGenerator::LoadConfig(), genie::RSHelicityAmplModelNCn::LoadConfig(), genie::RSHelicityAmplModelNCp::LoadConfig(), genie::BaryonResonanceDecayer::LoadConfig(), genie::RESKinematicsGenerator::LoadConfig(), genie::DMDISXSec::LoadConfig(), genie::DipoleAxialFormFactorModel::LoadConfig(), genie::DipoleELFormFactorsModel::LoadConfig(), genie::COHKinematicsGenerator::LoadConfig(), genie::VertexGenerator::LoadConfig(), genie::H3AMNuGammaPXSec::LoadConfig(), genie::RSPPResonanceSelector::LoadConfig(), genie::IBDXSecMap::LoadConfig(), genie::Decayer::LoadConfig(), genie::DISHadronicSystemGenerator::LoadConfig(), genie::EmpiricalMECPXSec2015::LoadConfig(), genie::COHElasticPXSec::LoadConfig(), genie::KuzminNaumov2016AxialFormFactorModel::LoadConfig(), genie::SlowRsclCharmDISPXSecLO::LoadConfig(), genie::UnstableParticleDecayer::LoadConfig(), genie::AhrensNCELPXSec::LoadConfig(), genie::AlamSimoAtharVacasSKPXSec2014::LoadConfig(), genie::PythiaHadronization::LoadConfig(), genie::ReinDFRPXSec::LoadConfig(), genie::RosenbluthPXSec::LoadConfig(), genie::StrumiaVissaniIBDPXSec::LoadConfig(), genie::MECGenerator::LoadConfig(), genie::BYPDF::LoadConfig(), genie::QPMDISPXSec::LoadConfig(), genie::DFRXSec::LoadConfig(), genie::KNOPythiaHadronization::LoadConfig(), genie::P33PaschosLalakulichPXSec::LoadConfig(), genie::AhrensDMELPXSec::LoadConfig(), genie::MECXSec::LoadConfig(), genie::AivazisCharmPXSecLO::LoadConfig(), genie::BergerSehgalFMCOHPiPXSec2015::LoadConfig(), genie::ZExpAxialFormFactorModel::LoadConfig(), genie::QPMDMDISPXSec::LoadConfig(), genie::BergerSehgalCOHPiPXSec2015::LoadConfig(), genie::BBA03ELFormFactorsModel::LoadConfig(), genie::BBA05ELFormFactorsModel::LoadConfig(), genie::LwlynSmithQELCCPXSec::LoadConfig(), genie::ReinSehgalRESXSec::LoadConfig(), genie::PrimaryLeptonGenerator::LoadConfig(), genie::NuElectronPXSec::LoadConfig(), genie::FGMBodekRitchie::LoadConfig(), genie::SpectralFunc1d::LoadConfig(), genie::ReinSehgalCOHPiPXSec::LoadConfig(), genie::PaisQELLambdaPXSec::LoadConfig(), genie::OutgoingDarkGenerator::LoadConfig(), genie::ReinSehgalRESXSecFast::LoadConfig(), genie::CharmHadronization::LoadConfig(), genie::NievesSimoVacasMECPXSec2016::LoadConfig(), genie::LHAPDF6::LoadConfig(), genie::ReinSehgalSPPXSec::LoadConfig(), genie::EventGenerator::LoadConfig(), genie::NuclearModelMap::LoadConfig(), genie::ReinSehgalRESPXSec::LoadConfig(), genie::LwlynSmithFF::LoadConfig(), genie::QPMDISStrucFuncBase::LoadConfig(), LoadConfig(), genie::BBA07ELFormFactorsModel::LoadConfig(), genie::HAIntranuke::LoadConfig(), genie::NievesQELCCPXSec::LoadConfig(), genie::HAIntranuke2018::LoadConfig(), genie::LocalFGM::LoadConfig(), genie::HNIntranuke2018::LoadConfig(), genie::BSKLNBaseRESPXSec2014::LoadConfig(), genie::EffectiveSF::LoadConfig(), genie::ReinSehgalSPPPXSec::LoadConfig(), genie::KNOHadronization::LoadConfig(), genie::SmithMonizUtils::LoadConfig(), genie::MECInteractionListGenerator::LoadConfigData(), genie::PhysInteractionSelector::LoadConfigData(), genie::RESInteractionListGenerator::LoadConfigData(), genie::PauliBlocker::LoadModelType(), genie::BYStrucFunc::ReadBYParams(), and genie::LHAPDF5::SetPDFSetFromConfig().

template<class T >
bool genie::Algorithm::GetParamDef ( const RgKey name,
T p,
const T def 
) const
protectedinherited

Ideal access to a parameter value from the vector of registries, With default value. Returns true if the value is set from the registries, false if the value is the default

Referenced by genie::IMDXSec::LoadConfig(), genie::COHXSec::LoadConfig(), genie::DISXSec::LoadConfig(), genie::RESXSec::LoadConfig(), genie::DFRKinematicsGenerator::LoadConfig(), genie::COHXSecAR::LoadConfig(), genie::BaryonResonanceDecayer::LoadConfig(), genie::SKKinematicsGenerator::LoadConfig(), genie::COHElKinematicsGenerator::LoadConfig(), genie::NuEKinematicsGenerator::LoadConfig(), genie::QELXSec::LoadConfig(), genie::RESKinematicsGenerator::LoadConfig(), genie::DMDISXSec::LoadConfig(), genie::COHKinematicsGenerator::LoadConfig(), genie::IBDKinematicsGenerator::LoadConfig(), genie::NuEInteractionListGenerator::LoadConfig(), genie::QELKinematicsGenerator::LoadConfig(), genie::DMELXSec::LoadConfig(), genie::DISHadronicSystemGenerator::LoadConfig(), genie::DISKinematicsGenerator::LoadConfig(), genie::NucBindEnergyAggregator::LoadConfig(), genie::DMELKinematicsGenerator::LoadConfig(), genie::DMDISKinematicsGenerator::LoadConfig(), genie::QPMDISPXSec::LoadConfig(), genie::DFRXSec::LoadConfig(), genie::AlamSimoAtharVacasSKXSec::LoadConfig(), genie::AhrensDMELPXSec::LoadConfig(), genie::NuElectronXSec::LoadConfig(), genie::QELEventGenerator::LoadConfig(), genie::P33PaschosLalakulichPXSec::LoadConfig(), genie::MECXSec::LoadConfig(), genie::FermiMover::LoadConfig(), genie::QPMDMDISPXSec::LoadConfig(), genie::LwlynSmithQELCCPXSec::LoadConfig(), genie::ReinSehgalRESXSec::LoadConfig(), genie::FGMBodekRitchie::LoadConfig(), genie::ReinSehgalRESXSecFast::LoadConfig(), genie::KovalenkoQELCharmPXSec::LoadConfig(), genie::SmithMonizQELCCXSec::LoadConfig(), genie::ReinSehgalSPPXSec::LoadConfig(), genie::ReinSehgalRESPXSec::LoadConfig(), genie::QELEventGeneratorSM::LoadConfig(), genie::QPMDISStrucFuncBase::LoadConfig(), LoadConfig(), genie::NievesQELCCPXSec::LoadConfig(), genie::HAIntranuke::LoadConfig(), genie::LocalFGM::LoadConfig(), genie::HNIntranuke2018::LoadConfig(), genie::HAIntranuke2018::LoadConfig(), genie::BSKLNBaseRESPXSec2014::LoadConfig(), genie::EffectiveSF::LoadConfig(), genie::KNOHadronization::LoadConfig(), genie::NewQELXSec::LoadConfig(), genie::DFRInteractionListGenerator::LoadConfigData(), genie::MECInteractionListGenerator::LoadConfigData(), genie::QELInteractionListGenerator::LoadConfigData(), genie::SKInteractionListGenerator::LoadConfigData(), genie::COHInteractionListGenerator::LoadConfigData(), genie::RESInteractionListGenerator::LoadConfigData(), genie::DMELInteractionListGenerator::LoadConfigData(), genie::RSPPInteractionListGenerator::LoadConfigData(), genie::DISInteractionListGenerator::LoadConfigData(), and genie::DMDISInteractionListGenerator::LoadConfigData().

template<class T >
bool genie::Algorithm::GetParamVect ( const std::string comm_name,
std::vector< T > &  v,
unsigned int  max,
bool  is_top_call = true 
) const
protectedinherited

Handle to load vectors of parameters It looks for different registry item with name comm_name0, comm_name1, etc...

virtual AlgStatus_t genie::Algorithm::GetStatus ( void  ) const
inlinevirtualinherited

Get algorithm status.

Definition at line 101 of file Algorithm.h.

References genie::Algorithm::fStatus.

101 { return fStatus; }
AlgStatus_t fStatus
algorithm execution status
Definition: Algorithm.h:166
virtual const AlgId& genie::Algorithm::Id ( void  ) const
inlinevirtualinherited

Get algorithm ID.

Definition at line 98 of file Algorithm.h.

References genie::Algorithm::fID.

Referenced by genie::KineGeneratorWithCache::AccessCacheBranch(), genie::QELEventGeneratorSM::AccessCacheBranch2(), genie::QELEventGeneratorSM::AccessCacheBranchDiffv(), genie::InteractionListAssembler::AssembleInteractionList(), genie::XSecAlgorithmMap::BuildMap(), genie::InteractionGeneratorMap::BuildMap(), genie::XSecSplineList::BuildSplineKey(), genie::DISXSec::CacheBranchName(), genie::ReinSehgalRESXSecWithCache::CacheBranchName(), genie::DMDISXSec::CacheBranchName(), genie::ReinSehgalRESXSecWithCacheFast::CacheBranchName(), genie::Algorithm::Compare(), genie::RESKinematicsGenerator::ComputeMaxXSec(), genie::COHElKinematicsGenerator::ComputeMaxXSec(), genie::SKKinematicsGenerator::ComputeMaxXSec(), genie::COHKinematicsGenerator::ComputeMaxXSec(), genie::Algorithm::Configure(), genie::GEVGDriver::CreateSplines(), genie::QPMDISPXSec::DISRESJoinSuppressionFactor(), genie::QPMDMDISPXSec::DMDISRESJoinSuppressionFactor(), genie::AlgConfigPool::FindRegistry(), genie::AlgFactory::ForceReconfiguration(), genie::GEVGDriver::GenerateEvent(), GetAlgorithms(), genie::LwlynSmithQELCCPXSec::Integral(), genie::NievesQELCCPXSec::Integral(), genie::COHXSec::Integrate(), genie::QPMDISPXSec::LoadConfig(), genie::QPMDMDISPXSec::LoadConfig(), genie::EventGenerator::LoadConfig(), genie::EventGeneratorListAssembler::LoadGenerator(), main(), genie::COHKinematicsGenerator::MaxXSec_AlvarezRuso(), genie::XSecAlgorithmMap::Print(), genie::InteractionGeneratorMap::Print(), genie::AlgFactory::Print(), genie::COHHadronicSystemGenerator::ProcessEventRecord(), genie::COHPrimaryLeptonGenerator::ProcessEventRecord(), genie::COHKinematicsGenerator::ProcessEventRecord(), genie::MECGenerator::ProcessEventRecord(), genie::EventGenerator::ProcessEventRecord(), genie::KNOPythiaHadronization::SelectHadronizer(), TestPythiaTauDecays(), and genie::GEVGDriver::UseSplines().

98 { return fID; }
AlgId fID
algorithm name and configuration set
Definition: Algorithm.h:156
void Algorithm::Initialize ( void  )
protectedinherited

Definition at line 343 of file Algorithm.cxx.

Referenced by genie::Algorithm::AllowReconfig().

344 {
345 // Algorithm initialization
346 //
347  fAllowReconfig = true;
348  fOwnsSubstruc = false;
349  fConfig = 0;
350  fOwnedSubAlgMp = 0;
351 }
AlgMap * fOwnedSubAlgMp
local pool for owned sub-algs (taken out of the factory pool)
Definition: Algorithm.h:167
bool fOwnsSubstruc
true if it owns its substructure (sub-algs,...)
Definition: Algorithm.h:155
Registry * fConfig
Summary configuration derived from fConvVect, not necessarily allocated.
Definition: Algorithm.h:194
double SmithMonizQELCCPXSec::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 82 of file SmithMonizQELCCPXSec.cxx.

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

83 {
84  return fXSecIntegrator->Integrate(this,in);
85 
86 }
const XSecIntegratorI * fXSecIntegrator
ifstream in
Definition: comparison.C:7
virtual double Integrate(const XSecAlgorithmI *model, const Interaction *interaction) const =0
void SmithMonizQELCCPXSec::LoadConfig ( void  )
private

Definition at line 129 of file SmithMonizQELCCPXSec.cxx.

References ana::assert(), fFormFactors, fFormFactorsModel, fVud2, fXSecIntegrator, fXSecScale, genie::Algorithm::GetParam(), genie::Algorithm::GetParamDef(), genie::QELFormFactors::SetModel(), sm_utils, and genie::Algorithm::SubAlg().

Referenced by Configure().

130 {
131 
132  // Cross section scaling factor
133  GetParamDef( "QEL-CC-XSecScale", fXSecScale, 1. ) ;
134 
135  double Vud;
136  GetParam( "CKM-Vud", Vud ) ;
137  fVud2 = TMath::Power( Vud, 2 );
138 
139  // load QEL form factors model
140  fFormFactorsModel = dynamic_cast<const QELFormFactorsModelI *> (
141  this->SubAlg("FormFactorsAlg"));
143  fFormFactors.SetModel(fFormFactorsModel); // <-- attach algorithm
144 
145  // load XSec Integrators
147  dynamic_cast<const XSecIntegratorI *> (this->SubAlg("XSec-Integrator"));
149 
150  sm_utils = const_cast<genie::SmithMonizUtils *>(
151  dynamic_cast<const genie::SmithMonizUtils *>(
152  this -> SubAlg( "sm_utils_algo" ) ) ) ;
153 
154 }
Cross Section Integrator Interface.
double fXSecScale
external xsec scaling factor
void SetModel(const QELFormFactorsModelI *model)
Attach an algorithm.
Pure abstract base class. Defines the QELFormFactorsModelI interface to be implemented by any algorit...
const QELFormFactorsModelI * fFormFactorsModel
const XSecIntegratorI * fXSecIntegrator
Contains auxiliary functions for Smith-Moniz model. Is a concrete implementation of the XSecAlgorit...
double fVud2
|Vud|^2(square of magnitude ud-element of CKM-matrix)
assert(nhit_max >=nhit_nbins)
bool GetParamDef(const RgKey &name, T &p, const T &def) const
bool GetParam(const RgKey &name, T &p, bool is_top_call=true) const
const Algorithm * SubAlg(const RgKey &registry_key) const
Definition: Algorithm.cxx:353
int Algorithm::MergeTopRegistry ( const Registry r)
protectedinherited

Merge with top level registry if first reg of the vector is owned Otherwise an owned copy is added as a top registry

Definition at line 618 of file Algorithm.cxx.

618  {
619 
620  if ( fOwnerships.empty() ) {
621 
622  // this algorithm is not configured right now, the incoming registry is the only configuration
623  Registry * p = new Registry( r ) ;
624  AddTopRegistry( p ) ;
625 
626  return 1 ;
627  }
628 
629  if ( fOwnerships[0] ) {
630  //the top registry is owned: it can be changed with no consequences for other algorithms
631  fConfVect[0] -> Merge( r ) ;
632  }
633  else {
634  // The top registry is not owned so it cannot be changed
635  // The registry will be added with top priority
636 
637  Registry * p = new Registry( r ) ;
638  AddTopRegistry( p ) ;
639  }
640 
641  // The configuration has changed so the summary is not updated anymore and must be deleted
642  if ( fConfig ) {
643  delete fConfig ;
644  fConfig = 0 ;
645  }
646 
647  return fConfVect.size() ;
648 }
const char * p
Definition: xmltok.h:285
int AddTopRegistry(Registry *rp, bool owns=true)
add registry with top priority, also update ownership
Definition: Algorithm.cxx:585
vector< Registry * > fConfVect
Definition: Algorithm.h:161
A registry. Provides the container for algorithm configuration parameters.
Definition: Registry.h:66
vector< bool > fOwnerships
ownership for every registry in fConfVect
Definition: Algorithm.h:164
Registry * fConfig
Summary configuration derived from fConvVect, not necessarily allocated.
Definition: Algorithm.h:194
void Algorithm::Print ( ostream &  stream) const
virtualinherited

Print algorithm info.

Definition at line 323 of file Algorithm.cxx.

References GetConfig(), and r().

Referenced by genie::Algorithm::AllowReconfig(), and genie::operator<<().

324 {
325  // print algorithm name & parameter-set
326  stream << "\nAlgorithm Key: " << this->fID.Key();
327  stream << " - Owns Substruc: " << ((fOwnsSubstruc) ? "[true]" : "[false]");
328 
329  // print algorithm configuration
330  const Registry & r = this->GetConfig();
331  stream << r;
332 
333  if(fOwnsSubstruc) {
334  AlgMapConstIter iter = fOwnedSubAlgMp->begin();
335  for(; iter!=fOwnedSubAlgMp->end(); ++iter) {
336  Algorithm * alg = iter->second;
337  stream << "<Next algorithm is owned by : " << this->fID.Key() << ">";
338  stream << *alg;
339  }
340  }
341 }
AlgMap * fOwnedSubAlgMp
local pool for owned sub-algs (taken out of the factory pool)
Definition: Algorithm.h:167
bool fOwnsSubstruc
true if it owns its substructure (sub-algs,...)
Definition: Algorithm.h:155
Algorithm abstract base class.
Definition: Algorithm.h:54
AlgId fID
algorithm name and configuration set
Definition: Algorithm.h:156
virtual const Registry & GetConfig(void) const
Definition: Algorithm.cxx:254
map< string, Algorithm * >::const_iterator AlgMapConstIter
Definition: Algorithm.h:51
A registry. Provides the container for algorithm configuration parameters.
Definition: Registry.h:66
TRandom3 r(0)
string Key(void) const
Definition: AlgId.h:47
void Algorithm::SetId ( const AlgId id)
virtualinherited

Set algorithm ID.

Definition at line 313 of file Algorithm.cxx.

Referenced by genie::Algorithm::AllowReconfig().

314 {
315  fID.Copy(id);
316 }
AlgId fID
algorithm name and configuration set
Definition: Algorithm.h:156
void Copy(const AlgId &id)
Definition: AlgId.cxx:78
void Algorithm::SetId ( string  name,
string  config 
)
virtualinherited

Definition at line 318 of file Algorithm.cxx.

319 {
320  fID.SetId(name, config);
321 }
const XML_Char * name
Definition: expat.h:151
Definition: config.py:1
AlgId fID
algorithm name and configuration set
Definition: Algorithm.h:156
void SetId(string name, string config="")
Definition: AlgId.cxx:70
const Algorithm * Algorithm::SubAlg ( const RgKey registry_key) const
inherited

Access the sub-algorithm pointed to by the input key, either from the local pool or from AlgFactory's pool

Definition at line 353 of file Algorithm.cxx.

References ana::assert(), genie::AlgFactory::GetAlgorithm(), genie::AlgFactory::Instance(), LOG, pERROR, and pINFO.

Referenced by genie::Algorithm::AllowReconfig(), genie::utils::gsl::FullQELdXSec::FullQELdXSec(), genie::NewQELXSec::Integrate(), genie::HadronTransporter::LoadConfig(), genie::NucleonDecayPrimaryVtxGenerator::LoadConfig(), genie::IBDXSecMap::LoadConfig(), genie::COHElasticPXSec::LoadConfig(), genie::DISHadronicSystemGenerator::LoadConfig(), genie::EmpiricalMECPXSec2015::LoadConfig(), genie::SlowRsclCharmDISPXSecLO::LoadConfig(), genie::AhrensNCELPXSec::LoadConfig(), genie::AlamSimoAtharVacasSKPXSec2014::LoadConfig(), genie::UnstableParticleDecayer::LoadConfig(), genie::ReinDFRPXSec::LoadConfig(), genie::PythiaHadronization::LoadConfig(), genie::BYPDF::LoadConfig(), genie::QPMDISPXSec::LoadConfig(), genie::AlvarezRusoCOHPiPXSec::LoadConfig(), genie::RosenbluthPXSec::LoadConfig(), genie::StrumiaVissaniIBDPXSec::LoadConfig(), genie::MECGenerator::LoadConfig(), genie::NNBarOscPrimaryVtxGenerator::LoadConfig(), genie::FermiMover::LoadConfig(), genie::AhrensDMELPXSec::LoadConfig(), genie::IMDAnnihilationPXSec::LoadConfig(), genie::QELEventGenerator::LoadConfig(), genie::KNOPythiaHadronization::LoadConfig(), genie::AivazisCharmPXSecLO::LoadConfig(), genie::RESHadronicSystemGenerator::LoadConfig(), genie::P33PaschosLalakulichPXSec::LoadConfig(), genie::BergerSehgalFMCOHPiPXSec2015::LoadConfig(), genie::QPMDMDISPXSec::LoadConfig(), genie::BergerSehgalCOHPiPXSec2015::LoadConfig(), genie::LwlynSmithQELCCPXSec::LoadConfig(), genie::NuElectronPXSec::LoadConfig(), genie::PaisQELLambdaPXSec::LoadConfig(), genie::ReinSehgalCOHPiPXSec::LoadConfig(), genie::NievesSimoVacasMECPXSec2016::LoadConfig(), genie::CharmHadronization::LoadConfig(), genie::KovalenkoQELCharmPXSec::LoadConfig(), genie::EventGenerator::LoadConfig(), genie::NuclearModelMap::LoadConfig(), genie::SmithMonizQELCCXSec::LoadConfig(), genie::BardinIMDRadCorPXSec::LoadConfig(), genie::LwlynSmithFF::LoadConfig(), genie::ReinSehgalRESPXSec::LoadConfig(), genie::QELEventGeneratorSM::LoadConfig(), genie::MartiniEricsonChanfrayMarteauMECPXSec2016::LoadConfig(), LoadConfig(), genie::QPMDISStrucFuncBase::LoadConfig(), genie::HAIntranuke::LoadConfig(), genie::NievesQELCCPXSec::LoadConfig(), genie::HAIntranuke2018::LoadConfig(), genie::HNIntranuke2018::LoadConfig(), genie::BSKLNBaseRESPXSec2014::LoadConfig(), genie::ReinSehgalSPPPXSec::LoadConfig(), genie::KNOHadronization::LoadConfig(), and genie::EventGeneratorListAssembler::LoadGenerator().

354 {
355 // Returns the sub-algorithm pointed to this algorithm's XML config file using
356 // the the values of the key.
357 // This method asserts the existence of these keys in the XML config.
358 // Note: Since only 1 parameter is used, the key value should contain both the
359 // algorithm name and its configuration set according to the usual scheme:
360 // namespace::algorithm_name/configuration_set
361 //
362  LOG("Algorithm", pINFO)
363  << "Fetching sub-alg within alg: " << this->Id().Key()
364  << " pointed to by key: " << registry_key;
365 
366  //-- if the algorithm owns its substructure:
367  // return the sub-algorithm from the local pool
368  //
369  if(fOwnsSubstruc) {
370  AlgMapConstIter iter = fOwnedSubAlgMp->find(registry_key);
371  if(iter!=fOwnedSubAlgMp->end()) return iter->second;
372  LOG("Algorithm", pERROR)
373  << "Owned sub-alg pointed to by key: " << registry_key
374  << " was not found within alg: " << this->Id().Key();
375  return 0;
376  }
377 
378  //-- if the algorithm does not own its substructure:
379  // return the sub-algorithm from the AlgFactory's pool
380  RgAlg alg ;
381  GetParam( registry_key, alg ) ;
382 
383  LOG("Algorithm", pINFO)
384  << "Registry key: " << registry_key << " points to algorithm: " << alg;
385 
386  // retrieve the Algorithm object from the the Algorithm factory
387  AlgFactory * algf = AlgFactory::Instance();
388  const Algorithm * algbase = algf->GetAlgorithm(alg.name, alg.config);
389  assert(algbase);
390 
391  return algbase;
392 }
#define pERROR
Definition: Messenger.h:60
AlgMap * fOwnedSubAlgMp
local pool for owned sub-algs (taken out of the factory pool)
Definition: Algorithm.h:167
bool fOwnsSubstruc
true if it owns its substructure (sub-algs,...)
Definition: Algorithm.h:155
Algorithm abstract base class.
Definition: Algorithm.h:54
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
Definition: Messenger.h:97
const Algorithm * GetAlgorithm(const AlgId &algid)
Definition: AlgFactory.cxx:86
#define pINFO
Definition: Messenger.h:63
map< string, Algorithm * >::const_iterator AlgMapConstIter
Definition: Algorithm.h:51
virtual const AlgId & Id(void) const
Get algorithm ID.
Definition: Algorithm.h:98
static AlgFactory * Instance()
Definition: AlgFactory.cxx:75
assert(nhit_max >=nhit_nbins)
bool GetParam(const RgKey &name, T &p, bool is_top_call=true) const
The GENIE Algorithm Factory.
Definition: AlgFactory.h:40
string Key(void) const
Definition: AlgId.h:47
bool XSecAlgorithmI::ValidKinematics ( const Interaction i) const
virtualinherited

Is the input kinematical point a physically allowed one?

Reimplemented in genie::KovalenkoQELCharmPXSec, genie::PaisQELLambdaPXSec, genie::NuElectronPXSec, genie::KLVOxygenIBDPXSec, genie::IMDAnnihilationPXSec, genie::StrumiaVissaniIBDPXSec, genie::H3AMNuGammaPXSec, genie::GLRESPXSec, and genie::IBDXSecMap.

Definition at line 46 of file XSecAlgorithmI.cxx.

References genie::KPhaseSpace::IsAboveThreshold(), genie::KPhaseSpace::IsAllowed(), genie::kISkipKinematicChk, LOG, genie::Interaction::PhaseSpace(), and pINFO.

Referenced by genie::IBDXSecMap::ValidKinematics(), genie::COHElasticPXSec::XSec(), genie::SlowRsclCharmDISPXSecLO::XSec(), genie::AlamSimoAtharVacasSKPXSec2014::XSec(), genie::ReinDFRPXSec::XSec(), genie::AhrensNCELPXSec::XSec(), genie::RosenbluthPXSec::XSec(), genie::AivazisCharmPXSecLO::XSec(), genie::QPMDISPXSec::XSec(), genie::AlvarezRusoCOHPiPXSec::XSec(), genie::P33PaschosLalakulichPXSec::XSec(), genie::AhrensDMELPXSec::XSec(), genie::BergerSehgalFMCOHPiPXSec2015::XSec(), genie::LwlynSmithQELCCPXSec::XSec(), genie::QPMDMDISPXSec::XSec(), genie::BergerSehgalCOHPiPXSec2015::XSec(), genie::ReinSehgalCOHPiPXSec::XSec(), genie::BardinIMDRadCorPXSec::XSec(), genie::ReinSehgalRESPXSec::XSec(), genie::BSKLNBaseRESPXSec2014::XSec(), genie::NievesQELCCPXSec::XSec(), and genie::ReinSehgalSPPPXSec::XSec().

47 {
48 // can offer common implementation for all concrete x-section models because
49 // the input interaction is aware of its kinematic limits
50 
51  if ( interaction->TestBit(kISkipKinematicChk) ) return true;
52 
53  const KPhaseSpace& kps = interaction->PhaseSpace();
54 
55  if ( ! kps.IsAboveThreshold() ) {
56  LOG("XSecBase", pINFO) << "*** Below energy threshold";
57  return false;
58  }
59  if ( ! kps.IsAllowed() ) {
60  LOG("XSecBase", pINFO) << "*** Not in allowed kinematical space";
61  return false;
62  }
63  return true;
64 }
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
Definition: Messenger.h:97
Kinematical phase space.
Definition: KPhaseSpace.h:34
#define pINFO
Definition: Messenger.h:63
const UInt_t kISkipKinematicChk
if set, skip kinematic validity checks
Definition: Interaction.h:48
bool IsAllowed(void) const
Check whether the current kinematics is in the allowed phase space.
bool IsAboveThreshold(void) const
Checks whether the interaction is above the energy threshold.
bool SmithMonizQELCCPXSec::ValidProcess ( const Interaction i) const
virtual

Can this cross section algorithm handle the input process?

Implements genie::XSecAlgorithmI.

Definition at line 88 of file SmithMonizQELCCPXSec.cxx.

References genie::Target::HitNucPdg(), genie::Interaction::InitState(), genie::pdg::IsAntiNeutrino(), genie::pdg::IsNeutrino(), genie::pdg::IsNeutron(), genie::pdg::IsProton(), genie::ProcessInfo::IsQuasiElastic(), genie::ProcessInfo::IsWeakCC(), genie::kISkipProcessChk, genie::InitialState::ProbePdg(), genie::Interaction::ProcInfo(), and genie::InitialState::Tgt().

89 {
90  if(interaction->TestBit(kISkipProcessChk)) return true;
91 
92  const InitialState & init_state = interaction->InitState();
93  const ProcessInfo & proc_info = interaction->ProcInfo();
94 
95  if(!proc_info.IsQuasiElastic()) return false;
96 
97  int nuc = init_state.Tgt().HitNucPdg();
98  int nu = init_state.ProbePdg();
99 
100  bool isP = pdg::IsProton(nuc);
101  bool isN = pdg::IsNeutron(nuc);
102  bool isnu = pdg::IsNeutrino(nu);
103  bool isnub = pdg::IsAntiNeutrino(nu);
104 
105  bool prcok = proc_info.IsWeakCC() && ((isP&&isnub) || (isN&&isnu));
106  if(!prcok) return false;
107 
108  return true;
109 }
bool IsWeakCC(void) const
bool IsNeutrino(int pdgc)
Definition: PDGUtils.cxx:108
int HitNucPdg(void) const
Definition: Target.cxx:321
bool IsQuasiElastic(void) const
Definition: ProcessInfo.cxx:67
bool IsNeutron(int pdgc)
Definition: PDGUtils.cxx:304
bool IsProton(int pdgc)
Definition: PDGUtils.cxx:299
A class encapsulating an enumeration of interaction types (EM, Weak-CC, Weak-NC) and scattering types...
Definition: ProcessInfo.h:44
bool IsAntiNeutrino(int pdgc)
Definition: PDGUtils.cxx:116
int ProbePdg(void) const
Definition: InitialState.h:65
const Target & Tgt(void) const
Definition: InitialState.h:67
const UInt_t kISkipProcessChk
if set, skip process validity checks
Definition: Interaction.h:47
Initial State information.
Definition: InitialState.h:49
double SmithMonizQELCCPXSec::XSec ( const Interaction i,
KinePhaseSpace_t  k 
) const
virtual

Compute the cross section for the input interaction.

Implements genie::XSecAlgorithmI.

Definition at line 66 of file SmithMonizQELCCPXSec.cxx.

References d2sQES_dQ2dv_SM(), dsQES_dQ2_SM(), genie::kPSQ2fE, and genie::kPSQ2vfE.

68 {
69 
70  if(kps == kPSQ2fE) {
71  return this->dsQES_dQ2_SM(interaction);
72  }
73 
74  if(kps == kPSQ2vfE) {
75  return this->d2sQES_dQ2dv_SM(interaction);
76  }
77 
78  return 0;
79 
80 }
double d2sQES_dQ2dv_SM(const Interaction *i) const
double dsQES_dQ2_SM(const Interaction *interaction) const

Member Data Documentation

bool genie::Algorithm::fAllowReconfig
protectedinherited
vector<Registry*> genie::Algorithm::fConfVect
protectedinherited

ideally these members should go private Registry will be access only through the GetParam method configurations registries from various sources the order of the vector is the precedence in case of repeated parameters position 0 -> Highest precedence

Definition at line 161 of file Algorithm.h.

double genie::SmithMonizQELCCPXSec::fcosT_k
mutableprivate

Definition at line 88 of file SmithMonizQELCCPXSec.h.

Referenced by d2sQES_dQ2dv_SM(), and d3sQES_dQ2dvdkF_SM().

double genie::SmithMonizQELCCPXSec::fE_lep
mutableprivate

Definition at line 78 of file SmithMonizQELCCPXSec.h.

Referenced by d2sQES_dQ2dv_SM(), and d3sQES_dQ2dvdkF_SM().

double genie::SmithMonizQELCCPXSec::fE_nu
mutableprivate

Definition at line 77 of file SmithMonizQELCCPXSec.h.

Referenced by d2sQES_dQ2dv_SM(), and d3sQES_dQ2dvdkF_SM().

double genie::SmithMonizQELCCPXSec::fF_A
mutableprivate

Definition at line 91 of file SmithMonizQELCCPXSec.h.

Referenced by d2sQES_dQ2dv_SM().

double genie::SmithMonizQELCCPXSec::fF_M
mutableprivate

Definition at line 90 of file SmithMonizQELCCPXSec.h.

Referenced by d2sQES_dQ2dv_SM().

double genie::SmithMonizQELCCPXSec::fF_P
mutableprivate

Definition at line 92 of file SmithMonizQELCCPXSec.h.

Referenced by d2sQES_dQ2dv_SM().

double genie::SmithMonizQELCCPXSec::fF_V
mutableprivate

Definition at line 89 of file SmithMonizQELCCPXSec.h.

Referenced by d2sQES_dQ2dv_SM().

double genie::SmithMonizQELCCPXSec::fFF_A
mutableprivate

Definition at line 95 of file SmithMonizQELCCPXSec.h.

Referenced by d2sQES_dQ2dv_SM().

double genie::SmithMonizQELCCPXSec::fFF_M
mutableprivate

Definition at line 94 of file SmithMonizQELCCPXSec.h.

Referenced by d2sQES_dQ2dv_SM().

double genie::SmithMonizQELCCPXSec::fFF_V
mutableprivate

Definition at line 93 of file SmithMonizQELCCPXSec.h.

Referenced by d2sQES_dQ2dv_SM().

QELFormFactors genie::SmithMonizQELCCPXSec::fFormFactors
mutableprivate

Definition at line 70 of file SmithMonizQELCCPXSec.h.

Referenced by d2sQES_dQ2dv_SM(), dsQES_dQ2_SM(), and LoadConfig().

const QELFormFactorsModelI* genie::SmithMonizQELCCPXSec::fFormFactorsModel
private

Definition at line 71 of file SmithMonizQELCCPXSec.h.

Referenced by LoadConfig().

AlgId genie::Algorithm::fID
protectedinherited

algorithm name and configuration set

Definition at line 156 of file Algorithm.h.

Referenced by genie::Algorithm::Id().

double genie::SmithMonizQELCCPXSec::fk1
mutableprivate

Definition at line 83 of file SmithMonizQELCCPXSec.h.

Referenced by d2sQES_dQ2dv_SM(), and d3sQES_dQ2dvdkF_SM().

double genie::SmithMonizQELCCPXSec::fk2
mutableprivate

Definition at line 84 of file SmithMonizQELCCPXSec.h.

Referenced by d2sQES_dQ2dv_SM(), and d3sQES_dQ2dvdkF_SM().

double genie::SmithMonizQELCCPXSec::fk7
mutableprivate

Definition at line 85 of file SmithMonizQELCCPXSec.h.

Referenced by d2sQES_dQ2dv_SM(), and d3sQES_dQ2dvdkF_SM().

double genie::SmithMonizQELCCPXSec::fm_tar
mutableprivate

Definition at line 81 of file SmithMonizQELCCPXSec.h.

Referenced by d2sQES_dQ2dv_SM(), and d3sQES_dQ2dvdkF_SM().

double genie::SmithMonizQELCCPXSec::fmm_fin
mutableprivate

Definition at line 80 of file SmithMonizQELCCPXSec.h.

Referenced by d2sQES_dQ2dv_SM(), and d3sQES_dQ2dvdkF_SM().

double genie::SmithMonizQELCCPXSec::fmm_ini
mutableprivate

Definition at line 79 of file SmithMonizQELCCPXSec.h.

Referenced by d2sQES_dQ2dv_SM(), and d3sQES_dQ2dvdkF_SM().

double genie::SmithMonizQELCCPXSec::fmm_tar
mutableprivate

Definition at line 82 of file SmithMonizQELCCPXSec.h.

Referenced by d2sQES_dQ2dv_SM(), and d3sQES_dQ2dvdkF_SM().

int genie::SmithMonizQELCCPXSec::fn_NT
mutableprivate

Definition at line 74 of file SmithMonizQELCCPXSec.h.

Referenced by d2sQES_dQ2dv_SM(), and d3sQES_dQ2dvdkF_SM().

AlgMap* genie::Algorithm::fOwnedSubAlgMp
protectedinherited

local pool for owned sub-algs (taken out of the factory pool)

Definition at line 167 of file Algorithm.h.

vector<bool> genie::Algorithm::fOwnerships
protectedinherited

ownership for every registry in fConfVect

Definition at line 164 of file Algorithm.h.

bool genie::Algorithm::fOwnsSubstruc
protectedinherited

true if it owns its substructure (sub-algs,...)

Definition at line 155 of file Algorithm.h.

double genie::SmithMonizQELCCPXSec::fQ2
mutableprivate

Definition at line 75 of file SmithMonizQELCCPXSec.h.

Referenced by d2sQES_dQ2dv_SM(), and d3sQES_dQ2dvdkF_SM().

double genie::SmithMonizQELCCPXSec::fqqv
mutableprivate

Definition at line 87 of file SmithMonizQELCCPXSec.h.

Referenced by d2sQES_dQ2dv_SM(), and d3sQES_dQ2dvdkF_SM().

double genie::SmithMonizQELCCPXSec::fqv
mutableprivate

Definition at line 86 of file SmithMonizQELCCPXSec.h.

Referenced by d2sQES_dQ2dv_SM(), and d3sQES_dQ2dvdkF_SM().

AlgStatus_t genie::Algorithm::fStatus
protectedinherited

algorithm execution status

Definition at line 166 of file Algorithm.h.

Referenced by genie::Algorithm::GetStatus().

double genie::SmithMonizQELCCPXSec::fv
mutableprivate

Definition at line 76 of file SmithMonizQELCCPXSec.h.

Referenced by d2sQES_dQ2dv_SM(), and d3sQES_dQ2dvdkF_SM().

double genie::SmithMonizQELCCPXSec::fVud2
private

|Vud|^2(square of magnitude ud-element of CKM-matrix)

Definition at line 73 of file SmithMonizQELCCPXSec.h.

Referenced by d2sQES_dQ2dv_SM(), dsQES_dQ2_SM(), and LoadConfig().

double genie::SmithMonizQELCCPXSec::fW_1
mutableprivate

Definition at line 96 of file SmithMonizQELCCPXSec.h.

Referenced by d2sQES_dQ2dv_SM(), and d3sQES_dQ2dvdkF_SM().

double genie::SmithMonizQELCCPXSec::fW_2
mutableprivate

Definition at line 97 of file SmithMonizQELCCPXSec.h.

Referenced by d2sQES_dQ2dv_SM(), and d3sQES_dQ2dvdkF_SM().

double genie::SmithMonizQELCCPXSec::fW_3
mutableprivate

Definition at line 98 of file SmithMonizQELCCPXSec.h.

Referenced by d2sQES_dQ2dv_SM(), and d3sQES_dQ2dvdkF_SM().

double genie::SmithMonizQELCCPXSec::fW_4
mutableprivate

Definition at line 99 of file SmithMonizQELCCPXSec.h.

Referenced by d2sQES_dQ2dv_SM(), and d3sQES_dQ2dvdkF_SM().

double genie::SmithMonizQELCCPXSec::fW_5
mutableprivate

Definition at line 100 of file SmithMonizQELCCPXSec.h.

Referenced by d2sQES_dQ2dv_SM(), and d3sQES_dQ2dvdkF_SM().

const XSecIntegratorI* genie::SmithMonizQELCCPXSec::fXSecIntegrator
private

Definition at line 72 of file SmithMonizQELCCPXSec.h.

Referenced by Integral(), and LoadConfig().

double genie::SmithMonizQELCCPXSec::fXSecScale
private

external xsec scaling factor

Definition at line 69 of file SmithMonizQELCCPXSec.h.

Referenced by d2sQES_dQ2dv_SM(), dsQES_dQ2_SM(), and LoadConfig().

SmithMonizUtils* genie::SmithMonizQELCCPXSec::sm_utils
mutableprivate

Definition at line 62 of file SmithMonizQELCCPXSec.h.

Referenced by d2sQES_dQ2dv_SM(), d3sQES_dQ2dvdkF_SM(), and LoadConfig().


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