#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 24 of file GlobalOptionMgr.h.
Definition at line 90 of file GlobalOptionMgr.cc.
References EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::cerr, gather_cfg::cout, ALIUtils::debug, dataset::end, GlobalOptions(), and hgcalPerformanceValidation::val.
Referenced by ALIUtils::SetLengthDimensionFactors().
--— Search a string in theGlobalOptions and return 1 if found
Definition at line 115 of file GlobalOptionMgr.cc.
References gather_cfg::cout, ALIUtils::debug, dataset::end, and GlobalOptions().
Referenced by Model::CMSLinkDeleteOptOs(), OptOCameraDetector::constructSolidShape(), OptORisleyPrism::constructSolidShape(), OptOXLaser::constructSolidShape(), OptOPinhole::constructSolidShape(), OptOScreen::constructSolidShape(), OptOLens::constructSolidShape(), OptOSource::constructSolidShape(), OptOLaser::constructSolidShape(), OptOTiltmeter::constructSolidShape(), OptODistancemeter3dim::constructSolidShape(), OptODistancemeter::constructSolidShape(), OptOOpticalSquare::constructSolidShape(), OptOPlateSplitter::constructSolidShape(), OptOModifiedRhomboidPrism::constructSolidShape(), OptOMirror::constructSolidShape(), OptOCubeSplitter::constructSolidShape(), OptOCOPS::constructSolidShape(), OptOSensor2D::constructSolidShape(), OpticalObject::constructSolidShape(), Entry::fill(), Entry::fillFromInputFileSigma(), Fit::FillMatricesWithCalibratedParameters(), OpticalObject::findExtraEntryValue(), Fit::fitNextEvent(), and Fit::getInstance().
|
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(), OptOModifiedRhomboidPrism::constructSolidShape(), OptOCOPS::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(), and Fit::WriteVisualisationFiles().
Definition at line 31 of file GlobalOptionMgr.h.
References theGlobalOptions.
Referenced by Measurement::calculateOriginalSimulatedValue(), MeasurementSensor2D::calculateSimulatedValue(), MeasurementDistancemeter3dim::calculateSimulatedValue(), MeasurementDistancemeter::calculateSimulatedValue(), MeasurementDiffEntry::calculateSimulatedValue(), MeasurementCOPS::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 27 of file GlobalOptionMgr.cc.
References theGlobalOptions.
Referenced by CocoaAnalyzer::CocoaAnalyzer().
void GlobalOptionMgr::setGlobalOption | ( | const ALIstring | go, |
const ALIdouble | val, | ||
ALIFileIn & | filein | ||
) |
Definition at line 137 of file GlobalOptionMgr.cc.
References EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::cerr, gather_cfg::cout, ALIUtils::debug, ALIFileIn::ErrorInLine(), beamvalidation::exit(), and theGlobalOptions.
Referenced by CocoaAnalyzer::CocoaAnalyzer(), and Model::readSystemDescription().
bool GlobalOptionMgr::setGlobalOption | ( | const ALIstring | go, |
const ALIdouble | val, | ||
bool | bExit = true |
||
) |
Definition at line 153 of file GlobalOptionMgr.cc.
References EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::cerr, dataset::end, beamvalidation::exit(), spr::find(), GlobalOptions(), ALIUtils::setDebugVerbosity(), ALIUtils::setReportVerbosity(), theGlobalOptions, and hgcalPerformanceValidation::val.
global options
Definition at line 43 of file GlobalOptionMgr.h.
Referenced by GlobalOptions(), setDefaultGlobalOptions(), and setGlobalOption().
|
staticprivate |
Definition at line 41 of file GlobalOptionMgr.h.
Referenced by getInstance().