23 #include "Framework/Conventions/GBuild.h" 32 using namespace genie;
41 #ifdef __GENIE_DARK_NEUTRINO_ENABLED__ 42 LOG(
"PDG",
pINFO) <<
"Loading Dark sector Info";
44 LOG(
"PDG",
pFATAL) <<
"Could not load Dark Neutrino data";
47 #endif // __GENIE_DARK_NEUTRINO_ENABLED__ 60 LOG(
"PDG",
pINFO) <<
"PDGLibrary late initialization";
82 LOG(
"PDG",
pERROR) <<
"Requested missing particle with PDG: " << pdgc ;
94 const char* altpdgtable = gSystem->Getenv(
"GENIE_PDG_TABLE");
96 if ( ! (gSystem->AccessPathName(altpdgtable) ) ) {
97 LOG(
"PDG",
pINFO) <<
"Load PDG data from $GENIE_PDG_TABLE: " 104 if ( gSystem->Getenv(
"GENIE") ) {
105 string base_dir =
string( gSystem->Getenv(
"GENIE") );
106 base_dir +=
string(
"/data/evgen/catalogues/pdg/") ;
108 string file_name =
"genie_pdg_table.txt" ;
111 file_name = reg ->
GetString(
"PDG-TableName") ;
118 if ( ! (gSystem->AccessPathName(path.c_str()) ) ) {
119 LOG(
"PDG",
pINFO) <<
"Load PDG data from: " << path;
127 if(gSystem->Getenv(
"ROOTSYS")) {
128 string base_dir =
string( gSystem->Getenv(
"ROOTSYS") );
129 string path = base_dir +
string(
"/etc/pdg_table.txt");
131 if ( !(gSystem->AccessPathName(path.c_str())) ) {
132 LOG(
"PDG",
pINFO) <<
"Load PDG data from: " << path;
138 LOG(
"PDG",
pERROR) <<
" *** The PDG extensions will not be loaded!! ***";
146 double med_mass = mass*med_ratio;
154 assert(dm_particle->Mass() == mass);
161 assert(med_particle->Mass() == med_mass);
175 assert(nhl->Mass() == mass);
185 LOG(
"PDG",
pERROR) <<
"The Dark Sector masses not available.";
196 if (!anti_dnu_particle) {
THE MAIN GENIE PROJECT NAMESPACE
void AddDarkMatter(double mass, double med_ratio)
TDatabasePDG * DBase(void)
RgDbl GetDouble(RgKey key) const
TDatabasePDG * fDatabasePDG
const int kPdgAntiDarkNeutrino
Registry * CommonList(const string &file_id, const string &set_name) const
static PDGLibrary * fInstance
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
static PDGLibrary * Instance(void)
const int kPdgDNuMediator
Singleton class to load & serve a TDatabasePDG.
A registry. Provides the container for algorithm configuration parameters.
TParticlePDG * Find(int pdgc, bool must_exist=true)
const int kPdgDarkNeutrino
Most commonly used PDG codes. A set of utility functions to handle PDG codes is provided in PDGUtils...
void DummyMethodAndSilentCompiler()
static AlgConfigPool * Instance()