#include <GlobalOptionMgr.h>
Public Member Functions | |
ALIdouble | getGlobalOption (const ALIstring &sstr) |
int | getGlobalOptionValue (const ALIstring &sstr, ALIdouble &val) |
--— Search a string in theGlobalOptions and return 1 if found More... | |
std::map< ALIstring, ALIdouble, std::less< ALIstring > > & | GlobalOptions () |
void | setDefaultGlobalOptions () |
Set the list of default global options. More... | |
void | setGlobalOption (const ALIstring go, const ALIdouble val, ALIFileIn &filein) |
bool | setGlobalOption (const ALIstring go, const ALIdouble val, bool bExit=true) |
~GlobalOptionMgr () | |
Static Public Member Functions | |
static GlobalOptionMgr * | getInstance () |
Private Member Functions | |
GlobalOptionMgr () | |
Private Attributes | |
std::map< ALIstring, ALIdouble, std::less< ALIstring > > | theGlobalOptions |
global options More... | |
Static Private Attributes | |
static GlobalOptionMgr * | theInstance = nullptr |
Definition at line 18 of file GlobalOptionMgr.h.
|
inlineprivate |
|
inline |
Definition at line 25 of file GlobalOptionMgr.h.
References getInstance(), and setDefaultGlobalOptions().
Definition at line 93 of file GlobalOptionMgr.cc.
References MessageLogger_cfi::cerr, gather_cfg::cout, ALIUtils::debug, end, GlobalOptions(), and heppy_batch::val.
Referenced by GlobalOptions(), and ALIUtils::SetLengthDimensionFactors().
--— Search a string in theGlobalOptions and return 1 if found
Definition at line 120 of file GlobalOptionMgr.cc.
References gather_cfg::cout, ALIUtils::debug, end, and GlobalOptions().
Referenced by Model::CMSLinkDeleteOptOs(), OptOCameraDetector::constructSolidShape(), OptORisleyPrism::constructSolidShape(), OptOXLaser::constructSolidShape(), OptOPinhole::constructSolidShape(), OptOScreen::constructSolidShape(), OptOLens::constructSolidShape(), OptOLaser::constructSolidShape(), OptOTiltmeter::constructSolidShape(), OptOSource::constructSolidShape(), OptODistancemeter3dim::constructSolidShape(), OptODistancemeter::constructSolidShape(), OptOOpticalSquare::constructSolidShape(), OptOPlateSplitter::constructSolidShape(), OptOMirror::constructSolidShape(), OptOCubeSplitter::constructSolidShape(), OptOModifiedRhomboidPrism::constructSolidShape(), OptOCOPS::constructSolidShape(), OptOSensor2D::constructSolidShape(), OpticalObject::constructSolidShape(), Entry::fill(), Entry::fillFromInputFileSigma(), Fit::FillMatricesWithCalibratedParameters(), OpticalObject::findExtraEntryValue(), Fit::fitNextEvent(), Fit::getInstance(), and GlobalOptions().
|
static |
Definition at line 18 of file GlobalOptionMgr.cc.
References GlobalOptionMgr(), and theInstance.
Referenced by Measurement::calculateOriginalSimulatedValue(), MeasurementSensor2D::calculateSimulatedValue(), MeasurementDistancemeter::calculateSimulatedValue(), MeasurementDistancemeter3dim::calculateSimulatedValue(), MeasurementCOPS::calculateSimulatedValue(), MeasurementDiffEntry::calculateSimulatedValue(), Model::CMSLinkDeleteOptOs(), CocoaAnalyzer::CocoaAnalyzer(), OptOCameraDetector::constructSolidShape(), OptORisleyPrism::constructSolidShape(), OptOXLaser::constructSolidShape(), OptOLens::constructSolidShape(), OptOPinhole::constructSolidShape(), OptOScreen::constructSolidShape(), OptOLaser::constructSolidShape(), OptOSource::constructSolidShape(), OptOTiltmeter::constructSolidShape(), OptODistancemeter::constructSolidShape(), OptODistancemeter3dim::constructSolidShape(), OptOOpticalSquare::constructSolidShape(), OptOPlateSplitter::constructSolidShape(), OptOCubeSplitter::constructSolidShape(), OptOMirror::constructSolidShape(), OptOCOPS::constructSolidShape(), OptOModifiedRhomboidPrism::constructSolidShape(), OptOSensor2D::constructSolidShape(), OpticalObject::constructSolidShape(), Fit::CreateMatrices(), EntryAngleAffAngles::displace(), OpticalObject::displaceRmGlobOriginal(), OpticalObject::displaceRmGlobOriginalOriginal(), CocoaDBMgr::DumpCocoaResults(), Entry::fill(), DeviationSensor2D::fillData(), Measurement::fillData(), Entry::fillFromInputFileSigma(), Fit::FillMatricesWithCalibratedParameters(), OpticalObject::findExtraEntryValue(), Fit::fitNextEvent(), Fit::fitParameters(), Fit::getInstance(), FittedEntriesManager::MakeHistos(), Fit::PropagateErrors(), Model::readMeasurementsFromFile(), CocoaDaqReaderText::ReadNextEvent(), Model::readSystemDescription(), ALIUtils::SetAngleDimensionFactors(), MeasurementDistancemeter3dim::setConversionFactor(), MeasurementDistancemeter::setConversionFactor(), MeasurementTiltmeter::setConversionFactor(), Fit::setFittableEntries(), ALIUtils::SetLengthDimensionFactors(), ALIUtils::SetOutputAngleDimensionFactors(), ALIUtils::SetOutputLengthDimensionFactors(), OpticalObject::SetRMGlobFromRMLocal(), Fit::startFit(), OptOUserDefined::userDefinedBehaviour(), Fit::WriteVisualisationFiles(), and ~GlobalOptionMgr().
Definition at line 32 of file GlobalOptionMgr.h.
References getGlobalOption(), getGlobalOptionValue(), setGlobalOption(), theGlobalOptions, and heppy_batch::val.
Referenced by Measurement::calculateOriginalSimulatedValue(), MeasurementSensor2D::calculateSimulatedValue(), MeasurementDistancemeter3dim::calculateSimulatedValue(), MeasurementDistancemeter::calculateSimulatedValue(), MeasurementCOPS::calculateSimulatedValue(), MeasurementDiffEntry::calculateSimulatedValue(), Fit::CreateMatrices(), EntryAngleAffAngles::displace(), OpticalObject::displaceRmGlobOriginal(), OpticalObject::displaceRmGlobOriginalOriginal(), CocoaDBMgr::DumpCocoaResults(), DeviationSensor2D::fillData(), Measurement::fillData(), Fit::fitNextEvent(), Fit::fitParameters(), getGlobalOption(), getGlobalOptionValue(), FittedEntriesManager::MakeHistos(), Fit::PropagateErrors(), Model::readMeasurementsFromFile(), CocoaDaqReaderText::ReadNextEvent(), ALIUtils::SetAngleDimensionFactors(), MeasurementDistancemeter::setConversionFactor(), MeasurementDistancemeter3dim::setConversionFactor(), MeasurementTiltmeter::setConversionFactor(), Fit::setFittableEntries(), setGlobalOption(), ALIUtils::SetLengthDimensionFactors(), ALIUtils::SetOutputAngleDimensionFactors(), ALIUtils::SetOutputLengthDimensionFactors(), OpticalObject::SetRMGlobFromRMLocal(), Fit::startFit(), OptOUserDefined::userDefinedBehaviour(), and Fit::WriteVisualisationFiles().
void GlobalOptionMgr::setDefaultGlobalOptions | ( | ) |
Set the list of default global options.
Definition at line 29 of file GlobalOptionMgr.cc.
References theGlobalOptions.
Referenced by CocoaAnalyzer::CocoaAnalyzer(), and ~GlobalOptionMgr().
void GlobalOptionMgr::setGlobalOption | ( | const ALIstring | go, |
const ALIdouble | val, | ||
ALIFileIn & | filein | ||
) |
Definition at line 145 of file GlobalOptionMgr.cc.
References MessageLogger_cfi::cerr, gather_cfg::cout, ALIUtils::debug, ALIFileIn::ErrorInLine(), cmsRelvalreport::exit, and theGlobalOptions.
Referenced by CocoaAnalyzer::CocoaAnalyzer(), GlobalOptions(), and Model::readSystemDescription().
bool GlobalOptionMgr::setGlobalOption | ( | const ALIstring | go, |
const ALIdouble | val, | ||
bool | bExit = true |
||
) |
Definition at line 165 of file GlobalOptionMgr.cc.
References MessageLogger_cfi::cerr, end, cmsRelvalreport::exit, spr::find(), GlobalOptions(), ALIUtils::setDebugVerbosity(), ALIUtils::setReportVerbosity(), theGlobalOptions, and heppy_batch::val.
global options
Definition at line 46 of file GlobalOptionMgr.h.
Referenced by GlobalOptions(), setDefaultGlobalOptions(), and setGlobalOption().
|
staticprivate |
Definition at line 44 of file GlobalOptionMgr.h.
Referenced by getInstance().