#include <EvtLibPXSec.h>
|
TGraph * | GetXSec (const Interaction *in) const |
|
void | LoadXSecs () |
|
void | ClearXSecs () |
|
| XSecAlgorithmI () |
|
| XSecAlgorithmI (string name) |
|
| XSecAlgorithmI (string name, string config) |
|
| Algorithm () |
|
| Algorithm (string name) |
|
| Algorithm (string name, string config) |
|
void | Initialize (void) |
|
void | DeleteConfig (void) |
|
void | DeleteSubstructure (void) |
|
Registry * | ExtractLocalConfig (const Registry &in) const |
|
Registry * | ExtractLowerConfig (const Registry &in, const string &alg_key) const |
| Split an incoming configuration Registry into a block valid for the sub-algo identified by alg_key. More...
|
|
template<class T > |
bool | GetParam (const RgKey &name, T &p, bool is_top_call=true) const |
|
template<class T > |
bool | GetParamDef (const RgKey &name, T &p, const T &def) const |
|
template<class T > |
int | GetParamVect (const std::string &comm_name, std::vector< T > &v, bool is_top_call=true) const |
| Handle to load vectors of parameters. More...
|
|
int | GetParamVectKeys (const std::string &comm_name, std::vector< RgKey > &k, bool is_top_call=true) const |
|
int | AddTopRegistry (Registry *rp, bool owns=true) |
| add registry with top priority, also update ownership More...
|
|
int | AddLowRegistry (Registry *rp, bool owns=true) |
| add registry with lowest priority, also update ownership More...
|
|
int | MergeTopRegistry (const Registry &r) |
|
int | AddTopRegisties (const vector< Registry * > &rs, bool owns=false) |
| Add registries with top priority, also udated Ownerships. More...
|
|
Definition at line 13 of file EvtLibPXSec.h.
EvtLibPXSec::EvtLibPXSec |
( |
| ) |
|
EvtLibPXSec::EvtLibPXSec |
( |
string |
config | ) |
|
EvtLibPXSec::~EvtLibPXSec |
( |
| ) |
|
|
virtual |
void EvtLibPXSec::ClearXSecs |
( |
| ) |
|
|
protected |
Definition at line 78 of file EvtLibPXSec.cxx.
80 for(
auto it:
fXSecs)
delete it.second;
std::map< Key, TGraph * > fXSecs
void EvtLibPXSec::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 64 of file EvtLibPXSec.cxx.
virtual void Configure(const Registry &config)
void EvtLibPXSec::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 71 of file EvtLibPXSec.cxx.
virtual void Configure(const Registry &config)
TGraph * EvtLibPXSec::GetXSec |
( |
const Interaction * |
in | ) |
const |
|
protected |
Definition at line 143 of file EvtLibPXSec.cxx.
149 LOG(
"ELI",
pINFO) <<
"Skipping unknown process " << proc;
164 LOG(
"ELI",
pINFO) <<
"Skipping process without xsec " <<
key;
bool IsWeakCC(void) const
bool IsWeakNC(void) const
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
A class encapsulating an enumeration of interaction types (EM, Weak-CC, Weak-NC) and scattering types...
std::map< Key, TGraph * > fXSecs
const InitialState & InitState(void) const
const ProcessInfo & ProcInfo(void) const
Initial State information.
double EvtLibPXSec::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 45 of file EvtLibPXSec.cxx.
static constexpr double g
static constexpr double cm2
TGraph * GetXSec(const Interaction *in) const
double ProbeE(RefFrame_t rf) const
Initial State information.
void EvtLibPXSec::LoadXSecs |
( |
| ) |
|
|
protected |
Definition at line 85 of file EvtLibPXSec.cxx.
90 GetParam(
"EventLibraryPath", libPath);
95 TFile fin(libPath.c_str());
96 if(fin.IsZombie()) exit(1);
98 TIter next(fin.GetListOfKeys());
99 while(TObject*
dir = next()){
101 const TParticlePDG* tgtPart = pdglib->
DBase()->GetParticle(tgtName.c_str());
103 LOG(
"ELI",
pWARN) <<
"Unknown nucleus " << tgtName
104 <<
" found in " << libPath
113 for(
bool iscc: {
true,
false}){
125 nuName.c_str()).
Data();
127 const Key key(tgtPart->PdgCode(),
pdg, iscc);
129 TGraph*
g = (TGraph*)fin.Get(graphName.c_str());
131 LOG(
"ELI",
pINFO) << graphName <<
" not found in " 132 << libPath <<
" -- skipping";
static constexpr double g
void Expand(std::string &s)
Expand env vars/homedirs/wildcards in s.
TDatabasePDG * DBase(void)
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
std::map< Key, TGraph * > fXSecs
bool IsAntiNeutrino(int pdgc)
static PDGLibrary * Instance(void)
Singleton class to load & serve a TDatabasePDG.
TParticlePDG * Find(int pdgc, bool must_exist=true)
bool GetParam(const RgKey &name, T &p, bool is_top_call=true) const
Compute the cross section for the input interaction.
Implements genie::XSecAlgorithmI.
Definition at line 37 of file EvtLibPXSec.cxx.
40 LOG(
"ELI",
pFATAL) <<
"This point should not be reached" ;
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
std::map<Key, TGraph*> genie::evtlib::EvtLibPXSec::fXSecs |
|
protected |
The documentation for this class was generated from the following files: