The internal representation for a Defaults_Text object. More...
Public Member Functions | |
Defaults_Textrep (string file) | |
Constructor, construct a Defaults_Textrep instance from an ASCII text-file and command line arguments. More... | |
Defaults_Textrep (string file, int argc, char **argv) | |
Constructor, construct a Defaults_Textrep instance from an ASCII text-file. More... | |
string | get_val (string name) const |
Public Attributes | |
std::map< std::string, std::string > | _map |
Private Member Functions | |
void | doline (string l) |
void | process_args (int argc, char **argv) |
void | read_file (string file) |
The internal representation for a Defaults_Text object.
Definition at line 102 of file Defaults_Text.cc.
hitfit::Defaults_Textrep::Defaults_Textrep | ( | string | file | ) |
Constructor, construct a Defaults_Textrep instance from an ASCII text-file and command line arguments.
file | The name of the input ASCII file to read. See the header file for a description of the format for this and the argument list. Pass an empty string to skip reading a file. |
Definition at line 173 of file Defaults_Text.cc.
References geometryDiff::file, and read_file().
hitfit::Defaults_Textrep::Defaults_Textrep | ( | string | file, |
int | argc, | ||
char ** | argv | ||
) |
Constructor, construct a Defaults_Textrep instance from an ASCII text-file.
file | The name of the input ASCII file to read. See the header file for a description of the format for this and the argument list. Pass an empty string to skip reading a file. |
argc | The length of the argument list. |
argv | The argument list. |
Definition at line 187 of file Defaults_Text.cc.
References dir2webdir::argc, cmsBatch::argv, geometryDiff::file, process_args(), and read_file().
|
private |
Helper function to process a line defining a single parameter.
l | The line to process. |
Definition at line 290 of file Defaults_Text.cc.
References _map, EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::cerr, cmsLHEtoEOSManager::l, Skims_PA_cff::name, AlCaHLTBitMon_QueryRunRegistry::string, digitizers_cfi::strip, and heppy_batch::val.
Referenced by process_args(), and read_file().
string hitfit::Defaults_Textrep::get_val | ( | string | name | ) | const |
Look up parameter name and return its value.
name | The name of the parameter. |
Definition at line 265 of file Defaults_Text.cc.
References EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::cerr, Skims_PA_cff::name, AlCaHLTBitMon_QueryRunRegistry::string, and heppy_batch::val.
|
private |
Look for additional parameter settings in the argument list argc and argv and add the content to data.
argc | The length of the argument list. |
argv | The argument list. |
Definition at line 230 of file Defaults_Text.cc.
References dir2webdir::argc, cmsBatch::argv, doline(), mps_fire::i, and cmsLHEtoEOSManager::l.
Referenced by Defaults_Textrep().
|
private |
Read parameters from ASCII text file file and add the content to data.
file | The ASCII text file to read. |
Definition at line 204 of file Defaults_Text.cc.
References EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::cerr, doline(), f, geometryDiff::file, and cmsLHEtoEOSManager::l.
Referenced by Defaults_Textrep().
std::map<std::string, std::string> hitfit::Defaults_Textrep::_map |
The data, maps from parameter names to values (which are stored as strings)
Definition at line 135 of file Defaults_Text.cc.
Referenced by doline().