Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
genie::SmithMonizUtils Class Reference

Contains auxiliary functions for Smith-Moniz model.
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/SmithMonizUtils.h"

Inheritance diagram for genie::SmithMonizUtils:
genie::Algorithm

Classes

class  Func1D
 

Public Member Functions

 SmithMonizUtils ()
 
 SmithMonizUtils (string config)
 
virtual ~SmithMonizUtils ()
 
void SetInteraction (const Interaction *i)
 
double GetBindingEnergy (void) const
 
double GetFermiMomentum (void) const
 
double GetTheta_k (double v, double qv) const
 
double GetTheta_p (double pv, double v, double qv, double &E_p) const
 
double E_nu_thr_SM (void) const
 
Range1D_t Q2QES_SM_lim (void) const
 
Range1D_t vQES_SM_lim (double Q2) const
 
Range1D_t kFQES_SM_lim (double nu, double Q2) const
 
double PhaseSpaceVolume (KinePhaseSpace_t ps) const
 
void Configure (const Registry &config)
 
void Configure (string config)
 
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 Member Functions

static double rho (double P_Fermi, double T_Fermi, double p)
 

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 QEL_EnuMin_SM (double E_nu) const
 
double Q2lim1_SM (double Q2) const
 
double Q2lim2_SM (double Q2) const
 
double LambdaFUNCTION (double a, double b, double c) const
 
void DMINFC (Func1D< SmithMonizUtils > &F, double A, double B, double EPS, double DELTA, double &X, double &Y, bool &LLM) const
 
double vQES_SM_low_bound (double Q2) const
 
double vQES_SM_upper_bound (double Q2) const
 

Private Attributes

map< int, double > fNucRmvE
 
string fKFTable
 
bool fUseParametrization
 
const InteractionfInteraction
 
double E_nu
 Neutrino energy (GeV) More...
 
double m_lep
 Mass of final charged lepton (GeV) More...
 
double mm_lep
 Squared mass of final charged lepton (GeV) More...
 
double m_ini
 Mass of initial hadron or hadron system (GeV) More...
 
double mm_ini
 Sqared mass of initial hadron or hadron system (GeV) More...
 
double m_fin
 Mass of final hadron or hadron system (GeV) More...
 
double mm_fin
 Squared mass of final hadron or hadron system (GeV) More...
 
double m_tar
 Mass of target nucleus (GeV) More...
 
double mm_tar
 Squared mass of target nucleus (GeV) More...
 
double m_rnu
 Mass of residual nucleus (GeV) More...
 
double mm_rnu
 Squared mass of residual nucleus (GeV) More...
 
double P_Fermi
 Maximum value of Fermi momentum of target nucleon (GeV) More...
 
double E_BIN
 Binding energy (GeV) More...
 
double Enu_in
 Running neutrino energy (GeV) More...
 

Detailed Description

Contains auxiliary functions for Smith-Moniz model.
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 45 of file SmithMonizUtils.h.

Constructor & Destructor Documentation

SmithMonizUtils::SmithMonizUtils ( )

Definition at line 47 of file SmithMonizUtils.cxx.

47  :
48 Algorithm("genie::SmithMonizUtils")
49 {
50 
51 }
SmithMonizUtils::SmithMonizUtils ( string  config)

Definition at line 53 of file SmithMonizUtils.cxx.

53  :
54 Algorithm("genie::SmithMonizUtils", config)
55 {
56 
57 }
Definition: config.py:1
SmithMonizUtils::~SmithMonizUtils ( )
virtual

Definition at line 59 of file SmithMonizUtils.cxx.

60 {
61 
62 }

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 SmithMonizUtils::Configure ( const Registry config)
virtual

methods overloading the Algorithm() interface implementation to build the fragmentation function from configuration data

Reimplemented from genie::Algorithm.

Definition at line 64 of file SmithMonizUtils.cxx.

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

65 {
66  Algorithm::Configure(config);
67  this->LoadConfig();
68 }
virtual void Configure(const Registry &config)
Definition: Algorithm.cxx:70
void SmithMonizUtils::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 70 of file SmithMonizUtils.cxx.

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

71 {
73  this->LoadConfig();
74 }
Definition: config.py:1
virtual void Configure(const Registry &config)
Definition: Algorithm.cxx:70
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
void SmithMonizUtils::DMINFC ( Func1D< SmithMonizUtils > &  F,
double  A,
double  B,
double  EPS,
double  DELTA,
double &  X,
double &  Y,
bool &  LLM 
) const
private

Definition at line 408 of file SmithMonizUtils.cxx.

References genie::units::A, C, novaddt::DELTA, F, ana::Sqrt(), and W.

Referenced by Q2QES_SM_lim(), and QEL_EnuMin_SM().

409 {
410  const double W5 = TMath::Sqrt(5);
411  const double HV = (3-W5)/2;
412  const double HW = (W5-1)/2;
413  const double R1 = 1.0;
414  const double HF = R1/2;
415 
416  int N = -1;
417  if(A!=B) N = TMath::Nint(2.08*TMath::Log(TMath::Abs((A-B)/EPS)));
418  double C = A;
419  double D = B;
420  if(A>B)
421  {
422  C = B;
423  D = A;
424  }
425  bool LLT = true;
426  bool LGE = true;
427  double V, FV, W, FW, H;
428  while(true)
429  {
430  H = D-C;
431  if(N<0)
432  {
433  X = HF*(C+D);
434  Y = F(X);
435  LLM = TMath::Abs(X-A)>DELTA && TMath::Abs(X-B)>DELTA;
436  return;
437  }
438  if(LLT)
439  {
440  V = C+HV*H;
441  FV = F(V);
442  }
443  if(LGE)
444  {
445  W = C+HW*H;
446  FW = F(W);
447  }
448  if(FV<FW)
449  {
450  LLT = true;
451  LGE = false;
452  D = W;
453  W = V;
454  FW = FV;
455  }
456  else
457  {
458  LLT = false;
459  LGE = true;
460  C = V;
461  V = W;
462  FV = FW;
463  }
464  N = N-1;
465  }
466 }
const float DELTA
#define F(x, y, z)
Float_t Y
Definition: plot.C:38
const double C
static const double A
Definition: Units.h:82
Var Sqrt(const Var &v)
Use to take sqrt of a var.
Definition: Var.cxx:326
Float_t X
Definition: plot.C:38
#define W(x)
double SmithMonizUtils::E_nu_thr_SM ( void  ) const

Definition at line 198 of file SmithMonizUtils.cxx.

References LOG, m_fin, m_lep, m_rnu, m_tar, mm_tar, pDEBUG, and QEL_EnuMin_SM().

Referenced by genie::SmithMonizQELCCXSec::Integrate().

199 {
200 
201  Func1D<SmithMonizUtils> QEL_EnuMin_SM_(*this, &SmithMonizUtils::QEL_EnuMin_SM);
202 
203 
204  const int MFC = 10000; // Maximum of function call
205  const double EPSABS = 0;
206  const double EPSREL = 1.0e-08;
207  double E_min= ((m_lep+m_rnu+m_fin)*(m_lep+m_rnu+m_fin)-mm_tar)/(2*m_tar);
208  double Enu_2= 5.0e+00;
209  double Enu_rf;
210  if (QEL_EnuMin_SM(E_min)>0)
211  {
212  // C++ analog of fortran function Enu_rf= DZEROX(E_min,Enu_2,EPS,MFC,QEL_EnuMin_SM,1)
213  ROOT::Math::RootFinder rfgb(ROOT::Math::RootFinder::kGSL_BRENT);
214  rfgb.Solve(QEL_EnuMin_SM_, E_min, Enu_2, MFC, EPSABS, EPSREL); //convergence is reached using tolerance = 2 *( epsrel * abs(x) + epsabs)
215  Enu_rf = rfgb.Root();
216 
217  }
218  else
219  {
220  Enu_rf=-1.0e+01;
221  }
222  E_min = TMath::Max(E_min,Enu_rf);
223  if(E_min<0)
224  {
225  E_min = 0;
226  LOG("SmithMoniz", pDEBUG) << "E_min = " << E_min;
227  }
228  return E_min;
229 
230 }
double m_lep
Mass of final charged lepton (GeV)
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
Definition: Messenger.h:97
double m_rnu
Mass of residual nucleus (GeV)
double m_tar
Mass of target nucleus (GeV)
double QEL_EnuMin_SM(double E_nu) const
double mm_tar
Squared mass of target nucleus (GeV)
double m_fin
Mass of final hadron or hadron system (GeV)
#define pDEBUG
Definition: Messenger.h:64
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
double SmithMonizUtils::GetBindingEnergy ( void  ) const

Definition at line 481 of file SmithMonizUtils.cxx.

References E_BIN.

Referenced by genie::SmithMonizQELCCPXSec::d3sQES_dQ2dvdkF_SM(), and genie::QELEventGeneratorSM::ProcessEventRecord().

482 {
483  return E_BIN;
484 }
double E_BIN
Binding energy (GeV)
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(), 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
double SmithMonizUtils::GetFermiMomentum ( void  ) const

Definition at line 486 of file SmithMonizUtils.cxx.

References P_Fermi.

Referenced by genie::SmithMonizQELCCPXSec::d3sQES_dQ2dvdkF_SM().

487 {
488  return P_Fermi;
489 }
double P_Fermi
Maximum value of Fermi momentum of target nucleon (GeV)
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::DISXSec::LoadConfig(), genie::INukeDeltaPropg::LoadConfig(), genie::COHXSec::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::MECGenerator::LoadConfig(), genie::BYPDF::LoadConfig(), genie::QPMDISPXSec::LoadConfig(), genie::DFRXSec::LoadConfig(), genie::RosenbluthPXSec::LoadConfig(), genie::StrumiaVissaniIBDPXSec::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::BBA03ELFormFactorsModel::LoadConfig(), genie::BBA05ELFormFactorsModel::LoadConfig(), genie::BergerSehgalCOHPiPXSec2015::LoadConfig(), genie::LwlynSmithQELCCPXSec::LoadConfig(), genie::ReinSehgalRESXSec::LoadConfig(), genie::PrimaryLeptonGenerator::LoadConfig(), genie::NuElectronPXSec::LoadConfig(), genie::ReinSehgalCOHPiPXSec::LoadConfig(), genie::PaisQELLambdaPXSec::LoadConfig(), genie::FGMBodekRitchie::LoadConfig(), genie::SpectralFunc1d::LoadConfig(), genie::OutgoingDarkGenerator::LoadConfig(), genie::ReinSehgalRESXSecFast::LoadConfig(), genie::CharmHadronization::LoadConfig(), genie::NievesSimoVacasMECPXSec2016::LoadConfig(), genie::LHAPDF6::LoadConfig(), genie::NuclearModelMap::LoadConfig(), genie::ReinSehgalSPPXSec::LoadConfig(), genie::EventGenerator::LoadConfig(), genie::ReinSehgalRESPXSec::LoadConfig(), genie::LwlynSmithFF::LoadConfig(), genie::QPMDISStrucFuncBase::LoadConfig(), genie::SmithMonizQELCCPXSec::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(), 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::COHElKinematicsGenerator::LoadConfig(), genie::NuEKinematicsGenerator::LoadConfig(), genie::QELXSec::LoadConfig(), genie::RESKinematicsGenerator::LoadConfig(), genie::DMDISXSec::LoadConfig(), genie::BaryonResonanceDecayer::LoadConfig(), genie::SKKinematicsGenerator::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::MECXSec::LoadConfig(), genie::FermiMover::LoadConfig(), genie::AlamSimoAtharVacasSKXSec::LoadConfig(), genie::AhrensDMELPXSec::LoadConfig(), genie::NuElectronXSec::LoadConfig(), genie::QELEventGenerator::LoadConfig(), genie::P33PaschosLalakulichPXSec::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(), genie::SmithMonizQELCCPXSec::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::RESInteractionListGenerator::LoadConfigData(), genie::SKInteractionListGenerator::LoadConfigData(), genie::COHInteractionListGenerator::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
double SmithMonizUtils::GetTheta_k ( double  v,
double  qv 
) const

Definition at line 491 of file SmithMonizUtils.cxx.

References E_nu, and mm_lep.

492 {
493  return TMath::ACos((v + (mm_lep-v*v+qv*qv)/2/E_nu)/qv);
494 }
double mm_lep
Squared mass of final charged lepton (GeV)
double E_nu
Neutrino energy (GeV)
double SmithMonizUtils::GetTheta_p ( double  pv,
double  v,
double  qv,
double &  E_p 
) const

Definition at line 496 of file SmithMonizUtils.cxx.

References E_BIN, mm_fin, mm_ini, and ana::Sqrt().

497 {
498  E_p = TMath::Sqrt(mm_ini+pv*pv)-E_BIN;
499  if (pv != 0)
500  return TMath::ACos(((v-E_BIN)*(2*E_p+v+E_BIN)-qv*qv+mm_ini-mm_fin)/(2*pv*qv));
501  else
502  return 0;
503 }
double E_BIN
Binding energy (GeV)
double mm_fin
Squared mass of final hadron or hadron system (GeV)
double mm_ini
Sqared mass of initial hadron or hadron system (GeV)
Var Sqrt(const Var &v)
Use to take sqrt of a var.
Definition: Var.cxx:326
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
Range1D_t SmithMonizUtils::kFQES_SM_lim ( double  nu,
double  Q2 
) const

Definition at line 385 of file SmithMonizUtils.cxx.

References E_BIN, m_ini, mm_fin, mm_ini, P_Fermi, R, and ana::Sqrt().

Referenced by genie::SmithMonizQELCCPXSec::d2sQES_dQ2dv_SM(), and genie::QELEventGeneratorSM::ProcessEventRecord().

386 {
387  double qv = TMath::Sqrt(nu*nu+Q2);
388  double c_f = (nu-E_BIN)/qv;
389  double d_f = (E_BIN*E_BIN-2*nu*E_BIN-Q2+mm_ini-mm_fin)/(2*qv*m_ini);
390  double Ef_min= m_ini*(c_f*d_f+TMath::Sqrt(1.0-c_f*c_f+d_f*d_f))/(1.0-c_f*c_f);
391  double kF_min= TMath::Sqrt(TMath::Max(Ef_min*Ef_min-mm_ini,0.0));
392  double kF_max= P_Fermi;
393  Range1D_t R;
394  if (kF_min<=kF_max)
395  R = Range1D_t(kF_min,kF_max);
396  else
397  R = Range1D_t(0.5*(kF_min+kF_max),0.5*(kF_min+kF_max));
398  return R;
399 
400 }
double m_ini
Mass of initial hadron or hadron system (GeV)
double Q2(const Interaction *const i)
Definition: KineUtils.cxx:991
double E_BIN
Binding energy (GeV)
A simple [min,max] interval for doubles.
Definition: Range1.h:43
double mm_fin
Squared mass of final hadron or hadron system (GeV)
double mm_ini
Sqared mass of initial hadron or hadron system (GeV)
double P_Fermi
Maximum value of Fermi momentum of target nucleon (GeV)
#define R(x)
Var Sqrt(const Var &v)
Use to take sqrt of a var.
Definition: Var.cxx:326
double SmithMonizUtils::LambdaFUNCTION ( double  a,
double  b,
double  c 
) const
private

Definition at line 402 of file SmithMonizUtils.cxx.

References plot_validation_datamc::c.

Referenced by Q2QES_SM_lim(), and QEL_EnuMin_SM().

403 {
404  return a*a+b*b+c*c-2*(a*b+b*c+a*c);
405 }
const double a
const hit & b
Definition: hits.cxx:21
void SmithMonizUtils::LoadConfig ( void  )
private

Definition at line 76 of file SmithMonizUtils.cxx.

References fKFTable, fNucRmvE, fUseParametrization, genie::Algorithm::GetConfig(), genie::Registry::GetItemMap(), genie::Algorithm::GetParam(), genie::pdg::IonPdgCodeToZ(), it, findDuplicateFiles::key, make_root_from_grid_output::pdg, string, and Z.

Referenced by Configure().

77 {
78 
79 
80  GetParam( "FermiMomentumTable", fKFTable);
81  GetParam( "RFG-UseParametrization", fUseParametrization);
82 
83 
84  // Load removal energy for specific nuclei from either the algorithm's
85  // configuration file or the UserPhysicsOptions file.
86  // If none is used use Wapstra's semi-empirical formula.
87  const std::string keyStart = "RFG-NucRemovalE@Pdg=";
88 
89  RgIMap entries = GetConfig().GetItemMap();
90 
91  for(RgIMap::const_iterator it = entries.begin(); it != entries.end(); ++it){
92  const std::string& key = it->first;
93  int pdg = 0;
94  int Z = 0;
95  if (0 == key.compare(0, keyStart.size(), keyStart.c_str())) {
96  pdg = atoi(key.c_str() + keyStart.size());
97  Z = pdg::IonPdgCodeToZ(pdg);
98  }
99  if (0 != pdg && 0 != Z) {
100  ostringstream key_ss ;
101  key_ss << keyStart << pdg;
102  RgKey rgkey = key_ss.str();
103  double eb ;
104  GetParam( rgkey, eb ) ;
105  eb = TMath::Max(eb, 0.);
106  fNucRmvE.insert(map<int,double>::value_type(Z,eb));
107  }
108  }
109 
110 }
set< int >::iterator it
map< int, double > fNucRmvE
virtual const Registry & GetConfig(void) const
Definition: Algorithm.cxx:254
Float_t Z
Definition: plot.C:38
const RgIMap & GetItemMap(void) const
Definition: Registry.h:162
string RgKey
int IonPdgCodeToZ(int pdgc)
Definition: PDGUtils.cxx:53
bool GetParam(const RgKey &name, T &p, bool is_top_call=true) const
map< RgKey, RegistryItemI * > RgIMap
Definition: Registry.h:46
enum BeamMode string
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
double SmithMonizUtils::PhaseSpaceVolume ( KinePhaseSpace_t  ps) const

Definition at line 515 of file SmithMonizUtils.cxx.

References genie::kPSQ2fE, genie::kPSQ2vfE, genie::Range1D_t::max, genie::Range1D_t::min, genie::utils::kinematics::Q2(), Q2QES_SM_lim(), and vQES_SM_lim().

Referenced by genie::QELEventGeneratorSM::ProcessEventRecord().

516 {
517  double vol = 0.0;
518  if (ps == kPSQ2fE)
519  {
520  Range1D_t rQ2 = Q2QES_SM_lim();
521  vol = rQ2.max - rQ2.min;
522  return vol;
523  }
524  else if (ps == kPSQ2vfE)
525  {
526  Range1D_t rQ2 = Q2QES_SM_lim();
527  const int kNQ2 = 101;
528  double dQ2 = (rQ2.max-rQ2.min)/(kNQ2-1);
529  for(int iq2=0; iq2<kNQ2; iq2++) {
530  double Q2 = (rQ2.min + iq2*dQ2);
531  Range1D_t rvlims = vQES_SM_lim(Q2);
532  double dv = (rvlims.max-rvlims.min);
533  vol += (dQ2*dv);
534  }
535  return vol;
536  }
537  else
538  return 0;
539 }
Range1D_t Q2QES_SM_lim(void) const
double Q2(const Interaction *const i)
Definition: KineUtils.cxx:991
A simple [min,max] interval for doubles.
Definition: Range1.h:43
Range1D_t vQES_SM_lim(double Q2) const
double max
Definition: Range1.h:54
double min
Definition: Range1.h:53
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
double SmithMonizUtils::Q2lim1_SM ( double  Q2) const
private

Definition at line 255 of file SmithMonizUtils.cxx.

References a, b, E, E_BIN, Enu_in, m_tar, mm_fin, mm_ini, mm_lep, mm_tar, P_Fermi, std::sqrt(), and ana::Sqrt().

Referenced by Q2QES_SM_lim(), and QEL_EnuMin_SM().

256 {
257  double s = 2*Enu_in*m_tar+mm_tar;
258  double nu_max = (s-mm_tar-mm_lep*(s-mm_tar)/(Q2+mm_lep)-mm_tar*(Q2+mm_lep)/(s-mm_tar))/(2*m_tar);
259  double E = sqrt(P_Fermi*P_Fermi+mm_ini);
260  double b = (E-E_BIN)*(E-E_BIN)-P_Fermi*P_Fermi;
261  double a = 0.5*(Q2+mm_fin-b);
262  double nu_1 = (a*(E-E_BIN)-P_Fermi*TMath::Sqrt(a*a+Q2*b))/b;
263  return nu_1-nu_max;
264 
265 }
double mm_lep
Squared mass of final charged lepton (GeV)
double Q2(const Interaction *const i)
Definition: KineUtils.cxx:991
double E_BIN
Binding energy (GeV)
T sqrt(T number)
Definition: d0nt_math.hpp:156
double mm_fin
Squared mass of final hadron or hadron system (GeV)
double mm_ini
Sqared mass of initial hadron or hadron system (GeV)
const XML_Char * s
Definition: expat.h:262
Float_t E
Definition: plot.C:20
const double a
double P_Fermi
Maximum value of Fermi momentum of target nucleon (GeV)
double m_tar
Mass of target nucleus (GeV)
double Enu_in
Running neutrino energy (GeV)
Var Sqrt(const Var &v)
Use to take sqrt of a var.
Definition: Var.cxx:326
const hit & b
Definition: hits.cxx:21
double mm_tar
Squared mass of target nucleus (GeV)
double SmithMonizUtils::Q2lim2_SM ( double  Q2) const
private

Definition at line 268 of file SmithMonizUtils.cxx.

References a, b, E, E_BIN, m_fin, m_rnu, m_tar, mm_fin, mm_ini, mm_tar, P_Fermi, std::sqrt(), and ana::Sqrt().

Referenced by Q2QES_SM_lim().

269 {
270  double nu_min = ((m_rnu+m_fin)*(m_rnu+m_fin)+Q2-mm_tar)/(2*m_tar);
271  double E = sqrt(P_Fermi*P_Fermi+mm_ini);
272  double b = (E-E_BIN)*(E-E_BIN)-P_Fermi*P_Fermi;
273  double a = (Q2+mm_fin-b)*0.5;
274  double nu_2 = (a*(E-E_BIN)+P_Fermi*TMath::Sqrt(a*a+Q2*b))/b;
275  return nu_min-nu_2;
276 
277 }
double Q2(const Interaction *const i)
Definition: KineUtils.cxx:991
double E_BIN
Binding energy (GeV)
T sqrt(T number)
Definition: d0nt_math.hpp:156
double mm_fin
Squared mass of final hadron or hadron system (GeV)
double mm_ini
Sqared mass of initial hadron or hadron system (GeV)
Float_t E
Definition: plot.C:20
const double a
double P_Fermi
Maximum value of Fermi momentum of target nucleon (GeV)
double m_rnu
Mass of residual nucleus (GeV)
double m_tar
Mass of target nucleus (GeV)
Var Sqrt(const Var &v)
Use to take sqrt of a var.
Definition: Var.cxx:326
const hit & b
Definition: hits.cxx:21
double mm_tar
Squared mass of target nucleus (GeV)
double m_fin
Mass of final hadron or hadron system (GeV)
Range1D_t SmithMonizUtils::Q2QES_SM_lim ( void  ) const

Definition at line 280 of file SmithMonizUtils.cxx.

References plot_validation_datamc::c, DMINFC(), E_BIN, E_nu, Enu_in, exit(), LambdaFUNCTION(), LOG, m_fin, m_rnu, m_tar, mm_lep, mm_tar, P_Fermi, pFATAL, Q2lim1_SM(), Q2lim2_SM(), R, ana::Sqrt(), and tmp.

Referenced by genie::QELEventGeneratorSM::ComputeMaxDiffv(), genie::QELEventGeneratorSM::ComputeMaxXSec(), genie::QELEventGeneratorSM::ComputeMaxXSec2(), genie::utils::gsl::d2Xsec_dQ2dv::DoEval(), PhaseSpaceVolume(), and genie::QELEventGeneratorSM::ProcessEventRecord().

281 {
282 
283 
284  const int MFC = 1000; // Maximum of function call
285  const double EPS = 1.0e-08;
286  const double Delta= 1.0e-14;
287  const double EPSABS = 0;
288  const double EPSREL = 1.0e-08;
289 
290  Enu_in = E_nu;
291  double s = 2*E_nu*m_tar+mm_tar;
292  double W2 = (m_rnu+m_fin)*(m_rnu+m_fin);
293  double c = 0.5*(W2+mm_lep-mm_tar*(W2-mm_lep)/s);
294  double sqrtD = TMath::Sqrt(LambdaFUNCTION(1.0, mm_lep/s, W2/s));
295  double tmp = 0.5*(s-mm_tar);
296  double Q2_min = tmp*(1.0-sqrtD)-c;
297  double Q2_max = tmp*(1.0+sqrtD)-c;
298  // if the nucleus is hydrogen or deuterium then there is no need in further calculation
299  if (E_BIN == 0 && P_Fermi == 0)
300  {
301  Q2_min= TMath::Max(Q2_min,0.0);
302  Range1D_t R(Q2_min,Q2_max);
303  return R;
304  }
305  double F_MIN, Q2_0;
306  bool LLM;
307  // C++ analog of fortran function DMINFC(Q2lim1_SM,Q2_min,Q2_max,EPS,Delta,Q2_0,F_MIN,LLM)
308  Func1D<SmithMonizUtils> Q2lim1_SM_(*this, &SmithMonizUtils::Q2lim1_SM);
309  DMINFC(Q2lim1_SM_,Q2_min,Q2_max,EPS,Delta,Q2_0,F_MIN,LLM);
310  if (F_MIN>0)
311  {
312  LOG("SmithMoniz", pFATAL)
313  << "No overlapped area for energy " << E_nu << "\n" <<
314  "Q2_min=" << Q2_min << " Q2_max=" << Q2_max << "\n" <<
315  "Q2_0=" << Q2_0 << " F_MIN=" << F_MIN;
316  exit(1);
317  }
318  if (Q2lim1_SM(Q2_min)>0)
319  {
320  //C++ analog of fortran function Q2_RF=DZEROX(Q2_min,Q2_0,EPS,MFC,Q2lim1_SM,1)
321  ROOT::Math::RootFinder rfgb(ROOT::Math::RootFinder::kGSL_BRENT);
322  rfgb.Solve(Q2lim1_SM_, Q2_min, Q2_0, MFC, EPSABS, EPSREL); //convergence is reached using tolerance = 2 *( epsrel * abs(x) + epsabs)
323  double Q2_RF = rfgb.Root();
324  Q2_min= TMath::Max(Q2_min,Q2_RF);
325  }
326  if(Q2lim1_SM(Q2_max)>0)
327  {
328  // C++ analog of fortran function Q2_RF=DZEROX(Q2_0,Q2_max,Eps,MFC,Q2lim1_SM,1)
329  ROOT::Math::RootFinder rfgb(ROOT::Math::RootFinder::kGSL_BRENT);
330  rfgb.Solve(Q2lim1_SM_, Q2_0, Q2_max, MFC, EPSABS, EPSREL); //convergence is reached using tolerance = 2 *( epsrel * abs(x) + epsabs)
331  double Q2_RF = rfgb.Root();
332  Q2_max= TMath::Min(Q2_max,Q2_RF);
333  }
334  Func1D<SmithMonizUtils> Q2lim2_SM_(*this, &SmithMonizUtils::Q2lim2_SM);
335  if (Q2lim2_SM(Q2_min)>0)
336  {
337  if(Q2lim2_SM(Q2_max)>0)
338  {
339  LOG("SmithMoniz", pFATAL) << "No overlapped area for energy " << E_nu;
340  exit(1);
341  }
342  else
343  {
344  // C++ analog of fortran function Q2_RF = DZEROX(Q2_min,Q2_max,Eps,MFC,Q2lim2_SM,1)
345  ROOT::Math::RootFinder rfgb(ROOT::Math::RootFinder::kGSL_BRENT);
346  rfgb.Solve(Q2lim2_SM_, Q2_min,Q2_max, MFC, EPSABS, EPSREL); //convergence is reached using tolerance = 2 *( epsrel * abs(x) + epsabs)
347  double Q2_RF = rfgb.Root();
348  Q2_min= TMath::Max(Q2_min,Q2_RF);
349  }
350  }
351 
352  Q2_min= TMath::Max(Q2_min,0.0);
353  Range1D_t R(Q2_min,Q2_max);
354  return R;
355 
356 }
double mm_lep
Squared mass of final charged lepton (GeV)
double E_BIN
Binding energy (GeV)
A simple [min,max] interval for doubles.
Definition: Range1.h:43
#define pFATAL
Definition: Messenger.h:57
double E_nu
Neutrino energy (GeV)
Float_t tmp
Definition: plot.C:36
double Q2lim1_SM(double Q2) const
const XML_Char * s
Definition: expat.h:262
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
Definition: Messenger.h:97
double Q2lim2_SM(double Q2) const
double P_Fermi
Maximum value of Fermi momentum of target nucleon (GeV)
double m_rnu
Mass of residual nucleus (GeV)
#define R(x)
double m_tar
Mass of target nucleus (GeV)
double Enu_in
Running neutrino energy (GeV)
Var Sqrt(const Var &v)
Use to take sqrt of a var.
Definition: Var.cxx:326
exit(0)
double mm_tar
Squared mass of target nucleus (GeV)
double LambdaFUNCTION(double a, double b, double c) const
void DMINFC(Func1D< SmithMonizUtils > &F, double A, double B, double EPS, double DELTA, double &X, double &Y, bool &LLM) const
double m_fin
Mass of final hadron or hadron system (GeV)
double SmithMonizUtils::QEL_EnuMin_SM ( double  E_nu) const
private

Definition at line 233 of file SmithMonizUtils.cxx.

References plot_validation_datamc::c, DMINFC(), Enu_in, epsilon, LambdaFUNCTION(), m_fin, m_rnu, m_tar, mm_lep, mm_tar, Q2lim1_SM(), ana::Sqrt(), and tmp.

Referenced by E_nu_thr_SM().

234 {
235  const double EPS = 1.0e-06;
236  const double Delta= 1.0e-14;
237  const double Precision = std::numeric_limits<double>::epsilon();
238  Enu_in = Enu;
239  double s = 2*Enu*m_tar+mm_tar;
240  double W2 = (m_rnu+m_fin)*(m_rnu+m_fin);
241  double c = 0.5*(W2+mm_lep-mm_tar*(W2-mm_lep)/s);
242  double sqrtD = TMath::Sqrt(TMath::Max(Precision,LambdaFUNCTION(1.0, mm_lep/s, W2/s)));
243  double tmp = 0.5*(s-mm_tar);
244  double Q2_lim1= tmp*(1.0-sqrtD)-c;
245  double Q2_lim2= tmp*(1.0+sqrtD)-c;
246  // C++ analog of fortran function DMINFC(Q2lim1_SM,Q2_lim1,Q2_lim2,EPS,Delta,Q2_0,F_MIN,LLM)
247  Func1D<SmithMonizUtils> Q2lim1_SM_(*this, &SmithMonizUtils::Q2lim1_SM);
248  double Q2_0,F_MIN;
249  bool LLM;
250  DMINFC(Q2lim1_SM_,Q2_lim1,Q2_lim2,EPS,Delta,Q2_0,F_MIN,LLM);
251  return F_MIN;
252 }
double mm_lep
Squared mass of final charged lepton (GeV)
Float_t tmp
Definition: plot.C:36
double Q2lim1_SM(double Q2) const
const XML_Char * s
Definition: expat.h:262
double m_rnu
Mass of residual nucleus (GeV)
double m_tar
Mass of target nucleus (GeV)
double Enu_in
Running neutrino energy (GeV)
Var Sqrt(const Var &v)
Use to take sqrt of a var.
Definition: Var.cxx:326
double epsilon
double mm_tar
Squared mass of target nucleus (GeV)
double LambdaFUNCTION(double a, double b, double c) const
void DMINFC(Func1D< SmithMonizUtils > &F, double A, double B, double EPS, double DELTA, double &X, double &Y, bool &LLM) const
double m_fin
Mass of final hadron or hadron system (GeV)
double SmithMonizUtils::rho ( double  P_Fermi,
double  T_Fermi,
double  p 
)
static

Definition at line 469 of file SmithMonizUtils.cxx.

Referenced by genie::SmithMonizQELCCPXSec::d3sQES_dQ2dvdkF_SM().

470 {
471 
472  if (T_Fermi==0) //Pure Fermi gaz with T_Fermi=0
473  if(p<=P_Fermi) return 1.0;
474  else return 0.0;
475  else //Fermi-Dirac distribution
476  return 1.0/(1.0 + TMath::Exp(-(P_Fermi-p)/T_Fermi));
477 
478 
479 }
const char * p
Definition: xmltok.h:285
double P_Fermi
Maximum value of Fermi momentum of target nucleon (GeV)
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
void SmithMonizUtils::SetInteraction ( const Interaction i)

Definition at line 113 of file SmithMonizUtils.cxx.

References genie::Target::A(), genie::units::A, ana::assert(), genie::utils::nuclear::BindEnergyPerNucleon(), genie::utils::nuclear::BindEnergyPerNucleonParametrization(), E_BIN, E_nu, exit(), genie::utils::nuclear::FermiMomentumForIsoscalarNucleonParametrization(), genie::PDGLibrary::Find(), genie::FermiMomentumTable::FindClosestKF(), fInteraction, fKFTable, fNucRmvE, genie::Interaction::FSPrimLepton(), fUseParametrization, genie::FermiMomentumTablePool::GetTable(), genie::Target::HitNucIsSet(), genie::Target::HitNucMass(), genie::Target::HitNucPdg(), genie::Interaction::InitState(), genie::PDGLibrary::Instance(), genie::FermiMomentumTablePool::Instance(), genie::pdg::IonPdgCode(), genie::pdg::IsProton(), it, genie::kRfLab, LOG, m_fin, m_ini, m_lep, m_rnu, m_tar, genie::utils::res::Mass(), genie::Target::Mass(), mm_fin, mm_ini, mm_lep, mm_rnu, mm_tar, P_Fermi, pFATAL, genie::InitialState::ProbeE(), genie::pdg::SwitchProtonNeutron(), genie::InitialState::Tgt(), Z, and genie::Target::Z().

Referenced by genie::SmithMonizQELCCPXSec::d2sQES_dQ2dv_SM(), genie::utils::gsl::d2Xsec_dQ2dv::d2Xsec_dQ2dv(), genie::SmithMonizQELCCXSec::Integrate(), and genie::QELEventGeneratorSM::ProcessEventRecord().

114 {
115  fInteraction = interaction;
116  // Get kinematics & init-state parameters
117  // unused // const Kinematics & kinematics = interaction -> Kine();
118  const InitialState & init_state = interaction -> InitState();
119  const Target & target = init_state.Tgt();
120  PDGLibrary * pdglib = PDGLibrary::Instance();
121 
122  E_nu = interaction->InitState().ProbeE(kRfLab); // Neutrino energy (GeV)
123 
124  assert(target.HitNucIsSet());
125  // get lepton&nuclear masses (init & final state nucleus)
126  m_lep = interaction->FSPrimLepton()->Mass(); // Mass of final charged lepton (GeV)
127  mm_lep = TMath::Power(m_lep, 2);
128  int nucl_pdg_ini = target.HitNucPdg();
129  m_ini = target.HitNucMass();
130  mm_ini = TMath::Power(m_ini, 2);
131  int nucl_pdg_fin = genie::pdg::SwitchProtonNeutron(nucl_pdg_ini);
132  TParticlePDG * nucl_fin = pdglib->Find( nucl_pdg_fin );
133  m_fin = nucl_fin -> Mass(); // Mass of final hadron or hadron system (GeV)
134  mm_fin = TMath::Power(m_fin, 2);
135  m_tar = target.Mass(); // Mass of target nucleus (GeV)
136  mm_tar = TMath::Power(m_tar, 2);
137 
138  // For hydrogen and deuterium RFG is not applied
139  if (target.A()<3)
140  {
141  E_BIN = P_Fermi = m_rnu = mm_rnu = 0;
142  return;
143  }
144 
145  bool is_p = pdg::IsProton(nucl_pdg_ini);
146  int Zi = target.Z();
147  int Ai = target.A();
148  int Zf = (is_p) ? Zi-1 : Zi;
149  int Af = Ai-1;
150  TParticlePDG * nucl_f = pdglib->Find( pdg::IonPdgCode(Af, Zf) );
151  if(!nucl_f) {
152  LOG("SmithMoniz", pFATAL)
153  << "Unknwown nuclear target! No target with code: "
154  << pdg::IonPdgCode(Af, Zf) << " in PDGLibrary!";
155  exit(1);
156  }
157 
158  m_rnu = nucl_f -> Mass(); // Mass of residual nucleus (GeV)
159  mm_rnu = TMath::Power(m_rnu, 2);
160 
161  int Z = target.Z();
162  int A = target.A();
163  int N = A-Z;
164 
165  // Maximum value of Fermi momentum of target nucleon (GeV)
166  if (A<6 || !fUseParametrization)
167  {
168  //-- look up the Fermi momentum for this Target
170  const FermiMomentumTable * kft = kftp->GetTable(fKFTable);
171  P_Fermi = kft->FindClosestKF(pdg::IonPdgCode(A, Z), nucl_pdg_ini);
172  }
173  else
174  {
175  //-- define the Fermi momentum for this Target
176  //
178  //-- correct the Fermi momentum for the struck nucleon
179  if(is_p) P_Fermi *= TMath::Power( 2.*Z/A, 1./3);
180  else
181  P_Fermi *= TMath::Power( 2.*N/A, 1./3);
182  }
183 
184  // Neutrino binding energy (GeV)
185  if (target.A()<6 || !fUseParametrization)
186  {
187  map<int,double>::const_iterator it = fNucRmvE.find(Z);
188  if(it != fNucRmvE.end()) E_BIN = it->second;
190  }
191  else
193 
194 
195 }
double mm_lep
Squared mass of final charged lepton (GeV)
const XML_Char * target
Definition: expat.h:268
double m_ini
Mass of initial hadron or hadron system (GeV)
set< int >::iterator it
double E_BIN
Binding energy (GeV)
int HitNucPdg(void) const
Definition: Target.cxx:321
int A(void) const
Definition: Target.h:71
double HitNucMass(void) const
Definition: Target.cxx:250
double m_lep
Mass of final charged lepton (GeV)
#define pFATAL
Definition: Messenger.h:57
double mm_fin
Squared mass of final hadron or hadron system (GeV)
static FermiMomentumTablePool * Instance(void)
int SwitchProtonNeutron(int pdgc)
Definition: PDGUtils.cxx:319
double E_nu
Neutrino energy (GeV)
map< int, double > fNucRmvE
double mm_ini
Sqared mass of initial hadron or hadron system (GeV)
double Mass(Resonance_t res)
resonance mass (GeV)
A table of Fermi momentum constants.
double Mass(void) const
Definition: Target.cxx:241
Float_t Z
Definition: plot.C:38
double mm_rnu
Squared mass of residual nucleus (GeV)
const Interaction * fInteraction
double BindEnergyPerNucleon(const Target &target)
bool IsProton(int pdgc)
Definition: PDGUtils.cxx:299
Singleton class to load & serve tables of Fermi momentum constants.
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
Definition: Messenger.h:97
const FermiMomentumTable * GetTable(string name)
double P_Fermi
Maximum value of Fermi momentum of target nucleon (GeV)
double BindEnergyPerNucleonParametrization(const Target &target)
A Neutrino Interaction Target. Is a transparent encapsulation of quite different physical systems suc...
Definition: Target.h:41
double m_rnu
Mass of residual nucleus (GeV)
int Z(void) const
Definition: Target.h:69
double m_tar
Mass of target nucleus (GeV)
double FermiMomentumForIsoscalarNucleonParametrization(const Target &target)
static const double A
Definition: Units.h:82
static PDGLibrary * Instance(void)
Definition: PDGLibrary.cxx:43
Singleton class to load & serve a TDatabasePDG.
Definition: PDGLibrary.h:30
bool HitNucIsSet(void) const
Definition: Target.cxx:300
TParticlePDG * Find(int pdgc)
Definition: PDGLibrary.cxx:61
int IonPdgCode(int A, int Z)
Definition: PDGUtils.cxx:69
exit(0)
assert(nhit_max >=nhit_nbins)
double FindClosestKF(int target_pdgc, int nucleon_pdgc) const
const Target & Tgt(void) const
Definition: InitialState.h:67
double mm_tar
Squared mass of target nucleus (GeV)
double m_fin
Mass of final hadron or hadron system (GeV)
Initial State information.
Definition: InitialState.h:49
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::EmpiricalMECPXSec2015::LoadConfig(), genie::COHElasticPXSec::LoadConfig(), genie::DISHadronicSystemGenerator::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::MartiniEricsonChanfrayMarteauMECPXSec2016::LoadConfig(), genie::QELEventGeneratorSM::LoadConfig(), genie::ReinSehgalRESPXSec::LoadConfig(), genie::LwlynSmithFF::LoadConfig(), genie::SmithMonizQELCCPXSec::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
Range1D_t SmithMonizUtils::vQES_SM_lim ( double  Q2) const

Definition at line 359 of file SmithMonizUtils.cxx.

References a, b, E, E_BIN, E_nu, m_fin, m_rnu, m_tar, mm_fin, mm_ini, mm_lep, mm_tar, P_Fermi, R, and ana::Sqrt().

Referenced by genie::QELEventGeneratorSM::ComputeMaxDiffv(), genie::QELEventGeneratorSM::ComputeMaxXSec(), genie::QELEventGeneratorSM::ComputeMaxXSec2(), genie::utils::gsl::d2Xsec_dQ2dv::DoEval(), PhaseSpaceVolume(), genie::QELEventGeneratorSM::ProcessEventRecord(), vQES_SM_low_bound(), and vQES_SM_upper_bound().

360 {
361  double s = 2*E_nu*m_tar+mm_tar;
362  double nu_min= ((m_rnu+m_fin)*(m_rnu+m_fin)+Q2-mm_tar)/(2*m_tar);
363  double nu_max= (s-mm_tar-mm_lep*(s-mm_tar)/(Q2+mm_lep)-mm_tar*(Q2+mm_lep)/(s-mm_tar))/(2*m_tar);
364  double E = TMath::Sqrt(P_Fermi*P_Fermi+mm_ini);
365  double b = (E-E_BIN)*(E-E_BIN)-P_Fermi*P_Fermi;
366  double a = (Q2+mm_fin-b)*0.5;
367  double tmp1 = a*(E-E_BIN);
368  double tmp2 = P_Fermi*TMath::Sqrt(a*a+Q2*b);
369  double nu_1 = (tmp1-tmp2)/b;
370  double nu_2 = (tmp1+tmp2)/b;
371  nu_min= TMath::Max(nu_min,nu_1);
372  nu_max= TMath::Min(nu_max,nu_2);
373  Range1D_t R;
374  if (E_BIN == 0 && P_Fermi == 0)
375  nu_max=nu_min;
376  if (nu_min<=nu_max)
377  R = Range1D_t(nu_min,nu_max);
378  else
379  R = Range1D_t(0.5*(nu_min+nu_max),0.5*(nu_min+nu_max));
380  return R;
381 
382 }
double mm_lep
Squared mass of final charged lepton (GeV)
double Q2(const Interaction *const i)
Definition: KineUtils.cxx:991
double E_BIN
Binding energy (GeV)
A simple [min,max] interval for doubles.
Definition: Range1.h:43
double mm_fin
Squared mass of final hadron or hadron system (GeV)
double E_nu
Neutrino energy (GeV)
double mm_ini
Sqared mass of initial hadron or hadron system (GeV)
const XML_Char * s
Definition: expat.h:262
Float_t E
Definition: plot.C:20
const double a
double P_Fermi
Maximum value of Fermi momentum of target nucleon (GeV)
double m_rnu
Mass of residual nucleus (GeV)
#define R(x)
double m_tar
Mass of target nucleus (GeV)
Var Sqrt(const Var &v)
Use to take sqrt of a var.
Definition: Var.cxx:326
const hit & b
Definition: hits.cxx:21
double mm_tar
Squared mass of target nucleus (GeV)
double m_fin
Mass of final hadron or hadron system (GeV)
double SmithMonizUtils::vQES_SM_low_bound ( double  Q2) const
private

Definition at line 505 of file SmithMonizUtils.cxx.

References genie::Range1D_t::min, and vQES_SM_lim().

506 {
507  return vQES_SM_lim(Q2).min;
508 }
double Q2(const Interaction *const i)
Definition: KineUtils.cxx:991
Range1D_t vQES_SM_lim(double Q2) const
double min
Definition: Range1.h:53
double SmithMonizUtils::vQES_SM_upper_bound ( double  Q2) const
private

Definition at line 510 of file SmithMonizUtils.cxx.

References genie::Range1D_t::max, and vQES_SM_lim().

511 {
512  return -1.0*vQES_SM_lim(Q2).max;
513 }
double Q2(const Interaction *const i)
Definition: KineUtils.cxx:991
Range1D_t vQES_SM_lim(double Q2) const
double max
Definition: Range1.h:54

Member Data Documentation

double genie::SmithMonizUtils::E_BIN
private

Binding energy (GeV)

Definition at line 111 of file SmithMonizUtils.h.

Referenced by GetBindingEnergy(), GetTheta_p(), kFQES_SM_lim(), Q2lim1_SM(), Q2lim2_SM(), Q2QES_SM_lim(), SetInteraction(), and vQES_SM_lim().

double genie::SmithMonizUtils::E_nu
private

Neutrino energy (GeV)

Definition at line 99 of file SmithMonizUtils.h.

Referenced by GetTheta_k(), Q2QES_SM_lim(), SetInteraction(), and vQES_SM_lim().

double genie::SmithMonizUtils::Enu_in
mutableprivate

Running neutrino energy (GeV)

Definition at line 112 of file SmithMonizUtils.h.

Referenced by Q2lim1_SM(), Q2QES_SM_lim(), and QEL_EnuMin_SM().

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.

AlgId genie::Algorithm::fID
protectedinherited

algorithm name and configuration set

Definition at line 156 of file Algorithm.h.

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

const Interaction* genie::SmithMonizUtils::fInteraction
private

Definition at line 94 of file SmithMonizUtils.h.

Referenced by SetInteraction().

string genie::SmithMonizUtils::fKFTable
private

Definition at line 91 of file SmithMonizUtils.h.

Referenced by LoadConfig(), and SetInteraction().

map<int, double> genie::SmithMonizUtils::fNucRmvE
private

Definition at line 90 of file SmithMonizUtils.h.

Referenced by LoadConfig(), and SetInteraction().

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.

AlgStatus_t genie::Algorithm::fStatus
protectedinherited

algorithm execution status

Definition at line 166 of file Algorithm.h.

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

bool genie::SmithMonizUtils::fUseParametrization
private

Definition at line 92 of file SmithMonizUtils.h.

Referenced by LoadConfig(), and SetInteraction().

double genie::SmithMonizUtils::m_fin
private

Mass of final hadron or hadron system (GeV)

Definition at line 104 of file SmithMonizUtils.h.

Referenced by E_nu_thr_SM(), Q2lim2_SM(), Q2QES_SM_lim(), QEL_EnuMin_SM(), SetInteraction(), and vQES_SM_lim().

double genie::SmithMonizUtils::m_ini
private

Mass of initial hadron or hadron system (GeV)

Definition at line 102 of file SmithMonizUtils.h.

Referenced by kFQES_SM_lim(), and SetInteraction().

double genie::SmithMonizUtils::m_lep
private

Mass of final charged lepton (GeV)

Definition at line 100 of file SmithMonizUtils.h.

Referenced by E_nu_thr_SM(), and SetInteraction().

double genie::SmithMonizUtils::m_rnu
private

Mass of residual nucleus (GeV)

Definition at line 108 of file SmithMonizUtils.h.

Referenced by E_nu_thr_SM(), Q2lim2_SM(), Q2QES_SM_lim(), QEL_EnuMin_SM(), SetInteraction(), and vQES_SM_lim().

double genie::SmithMonizUtils::m_tar
private

Mass of target nucleus (GeV)

Definition at line 106 of file SmithMonizUtils.h.

Referenced by E_nu_thr_SM(), Q2lim1_SM(), Q2lim2_SM(), Q2QES_SM_lim(), QEL_EnuMin_SM(), SetInteraction(), and vQES_SM_lim().

double genie::SmithMonizUtils::mm_fin
private

Squared mass of final hadron or hadron system (GeV)

Definition at line 105 of file SmithMonizUtils.h.

Referenced by GetTheta_p(), kFQES_SM_lim(), Q2lim1_SM(), Q2lim2_SM(), SetInteraction(), and vQES_SM_lim().

double genie::SmithMonizUtils::mm_ini
private

Sqared mass of initial hadron or hadron system (GeV)

Definition at line 103 of file SmithMonizUtils.h.

Referenced by GetTheta_p(), kFQES_SM_lim(), Q2lim1_SM(), Q2lim2_SM(), SetInteraction(), and vQES_SM_lim().

double genie::SmithMonizUtils::mm_lep
private

Squared mass of final charged lepton (GeV)

Definition at line 101 of file SmithMonizUtils.h.

Referenced by GetTheta_k(), Q2lim1_SM(), Q2QES_SM_lim(), QEL_EnuMin_SM(), SetInteraction(), and vQES_SM_lim().

double genie::SmithMonizUtils::mm_rnu
private

Squared mass of residual nucleus (GeV)

Definition at line 109 of file SmithMonizUtils.h.

Referenced by SetInteraction().

double genie::SmithMonizUtils::mm_tar
private

Squared mass of target nucleus (GeV)

Definition at line 107 of file SmithMonizUtils.h.

Referenced by E_nu_thr_SM(), Q2lim1_SM(), Q2lim2_SM(), Q2QES_SM_lim(), QEL_EnuMin_SM(), SetInteraction(), and vQES_SM_lim().

double genie::SmithMonizUtils::P_Fermi
private

Maximum value of Fermi momentum of target nucleon (GeV)

Definition at line 110 of file SmithMonizUtils.h.

Referenced by GetFermiMomentum(), kFQES_SM_lim(), Q2lim1_SM(), Q2lim2_SM(), Q2QES_SM_lim(), SetInteraction(), and vQES_SM_lim().


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