30 if(wordexp(input.c_str(), &exp_result, 0) != 0)
32 std::cout <<
"ExpandEnvironmentals - ERROR - Your string '" << input <<
"' cannot be understood!" << std::endl;
35 const std::string output(exp_result.we_wordv[0]);
56 set_CharFlag(
"AlignmentMille",
"$E1039_RESOURCE/alignment/run6/align_mille.txt");
57 set_CharFlag(
"AlignmentHodo",
"$E1039_RESOURCE/alignment/run6/alignment_hodo.txt");
58 set_CharFlag(
"AlignmentProp",
"$E1039_RESOURCE/alignment/run6/alignment_prop.txt");
59 set_CharFlag(
"Calibration",
"$E1039_RESOURCE/alignment/run6/calibration.txt");
61 set_CharFlag(
"MySQLURL",
"mysql://e906-db1.fnal.gov:3306");
62 set_CharFlag(
"Geometry",
"user_e1039_geom_plane.param_G9_run5_2");
67 set_CharFlag(
"fMagFile",
"$GEOMETRY_ROOT/magnetic_fields/Fmag.root");
68 set_CharFlag(
"kMagFile",
"$GEOMETRY_ROOT/magnetic_fields/Kmag.root");
165 if(setname ==
"cosmic")
virtual void set_DoubleFlag(const std::string &name, const double flag)
virtual void set_BoolFlag(const std::string &name, const bool flag)
void init(int runNo=0, bool verbose=false)
initialize the constants by the runNo - not implemented yet
virtual void PrintDoubleFlags() const
virtual void PrintFloatFlags() const
void Print() const
print all the parameters
virtual void set_IntFlag(const std::string &name, const int flag)
std::map< std::string, std::string > charflag
static recoConsts * instance()
virtual void PrintCharFlags() const
virtual void PrintIntFlags() const
std::string ExpandEnvironmentals(const std::string &input)
virtual void PrintBoolFlags() const
static recoConsts * __instance
void set_defaults()
set the default value for all the constants needed - user is supposed to add a default value here to ...
virtual void set_CharFlag(const std::string &name, const std::string &flag)
overide the virtual function to expand the environmental variables
void initfile(const std::string &filename, bool verbose=false)
initialize by reading a file
virtual void ReadFromFile(const std::string &name, bool verbose=false)