|
|
#include <Entry.h>
Definition at line 18 of file Entry.h.
◆ Entry()
◆ ~Entry()
◆ addFittedDisplacementToValue()
void Entry::addFittedDisplacementToValue |
( |
const ALIdouble |
val | ) |
|
◆ displace()
◆ displaceOriginal()
void Entry::displaceOriginal |
( |
ALIdouble |
disp | ) |
|
|
virtual |
◆ displaceOriginalOriginal()
void Entry::displaceOriginalOriginal |
( |
ALIdouble |
disp | ) |
|
|
virtual |
◆ fill()
void Entry::fill |
( |
const std::vector< ALIstring > & |
wordlist | ) |
|
Definition at line 31 of file Entry.cc.
40 if (wordlist.size() != 4) {
43 std::cerr << std::endl <<
" There should be four words: name value sigma quality " << std::endl;
67 if (entryData !=
nullptr &&
fre == 1) {
75 if (entryData !=
nullptr &&
fre == 1) {
81 if (entryData !=
nullptr &&
fre == 1) {
References EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::cerr, gather_cfg::cout, ALIUtils::debug, ALIUtils::dumpVS(), ALIFileIn::ErrorInLine(), beamvalidation::exit(), fillFromInputFileQuality(), fillFromInputFileSigma(), fillFromInputFileValue(), fillFromReportOutFileQuality(), fillFromReportOutFileSigma(), fillFromReportOutFileValue(), EntryMgr::findEntryByLongName(), EntryMgr::findEntryByShortName(), statics::fre, GlobalOptionMgr::getGlobalOptionValue(), EntryMgr::getInstance(), GlobalOptionMgr::getInstance(), ALIFileIn::getInstance(), longName(), OpticalObject::longName(), name(), OptOCurrent(), and Model::SDFName().
Referenced by OpticalObject::fillExtraEntry().
◆ fillFromInputFileQuality()
void Entry::fillFromInputFileQuality |
( |
const std::vector< ALIstring > & |
wordlist | ) |
|
|
private |
Definition at line 155 of file Entry.cc.
159 }
else if (wordlist[3] ==
ALIstring(
"cal")) {
165 }
else if (wordlist[3] ==
ALIstring(
"fix")) {
169 std::cerr <<
" quality should be 'unk' or 'cal' or 'fix', instead of " << wordlist[3] << std::endl;
References EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::cerr, gather_cfg::cout, ALIUtils::debug, ALIFileIn::ErrorInLine(), beamvalidation::exit(), ALIFileIn::getInstance(), name(), OpticalObject::name(), OptOCurrent(), quality_, Model::SDFName(), sigma_, and sigmaOriginalOriginal_.
Referenced by fill().
◆ fillFromInputFileSigma()
void Entry::fillFromInputFileSigma |
( |
const std::vector< ALIstring > & |
wordlist | ) |
|
|
private |
Definition at line 114 of file Entry.cc.
128 std::cerr <<
"!!! parameter for sigma not found: " << wordlist[0] <<
" " << wordlist[1] <<
" " << wordlist[2]
136 sig = atof(wordlist[2].c_str());
References EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::cerr, gather_cfg::cout, ALIUtils::debug, ALIFileIn::ErrorInLine(), beamvalidation::exit(), GlobalOptionMgr::getGlobalOptionValue(), ParameterMgr::getInstance(), GlobalOptionMgr::getInstance(), ALIFileIn::getInstance(), ParameterMgr::getParameterValue(), ALIUtils::IsNumber(), Model::SDFName(), sigma_, SigmaDimensionFactor(), and sigmaOriginalOriginal_.
Referenced by fill().
◆ fillFromInputFileValue()
void Entry::fillFromInputFileValue |
( |
const std::vector< ALIstring > & |
wordlist | ) |
|
|
private |
Definition at line 89 of file Entry.cc.
97 std::cerr <<
"!!! parameter for value not found: " << wordlist[1].c_str() << std::endl;
103 val = atof(wordlist[1].c_str());
References EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::cerr, gather_cfg::cout, ALIUtils::debug, ALIFileIn::ErrorInLine(), beamvalidation::exit(), ParameterMgr::getInstance(), ALIFileIn::getInstance(), ParameterMgr::getParameterValue(), ALIUtils::IsNumber(), Model::SDFName(), heppy_batch::val, value_, ValueDimensionFactor(), and valueOriginalOriginal_.
Referenced by fill().
◆ fillFromReportOutFileQuality()
void Entry::fillFromReportOutFileQuality |
( |
const EntryData * |
entryData | ) |
|
|
private |
◆ fillFromReportOutFileSigma()
void Entry::fillFromReportOutFileSigma |
( |
const EntryData * |
entryData | ) |
|
|
private |
◆ fillFromReportOutFileValue()
void Entry::fillFromReportOutFileValue |
( |
EntryData * |
entryData | ) |
|
|
private |
Definition at line 186 of file Entry.cc.
198 }
else if (
type_ ==
"angles" ||
type_ ==
"angle") {
References gather_cfg::cout, ALIUtils::debug, EntryMgr::getDimOutAngleVal(), EntryMgr::getDimOutLengthVal(), EntryMgr::getInstance(), name(), OpticalObject::name(), OptOCurrent(), EntryData::setValueDisplacement(), type_, value_, EntryData::valueDisplacement(), EntryData::valueOriginal(), and valueOriginalOriginal_.
Referenced by fill().
◆ fillName()
void Entry::fillName |
( |
const ALIstring & |
name | ) |
|
|
virtual |
◆ fillNull()
◆ fitPos()
ALIint Entry::fitPos |
( |
| ) |
const |
|
inline |
◆ getDimType()
◆ lastAdditionToValueDisplacementByFitting()
ALIdouble Entry::lastAdditionToValueDisplacementByFitting |
( |
| ) |
const |
|
inline |
◆ longName()
◆ name()
Definition at line 50 of file Entry.h.
References name_.
Referenced by config.CFG::__str__(), addFittedDisplacementToValue(), MeasurementDiffEntry::calculateSimulatedValue(), EntryAngleAffAngles::checkDiff(), validation.Sample::digest(), EntryLengthAffCentre::displace(), EntryAngleAffAngles::displace(), displace(), EntryLengthAffCentre::displaceOriginal(), EntryAngleAffAngles::displaceOriginal(), displaceOriginal(), EntryLengthAffCentre::displaceOriginalOriginal(), EntryAngleAffAngles::displaceOriginalOriginal(), displaceOriginalOriginal(), fill(), fillFromInputFileQuality(), fillFromReportOutFileValue(), EntryLengthAffCentre::FillName(), EntryAngleAffAngles::FillName(), fillName(), VIDSelectorBase.VIDSelectorBase::initialize(), setName(), CocoaToDDLMgr::specPar(), EntryAngleAffAngles::valueDisplaced(), EntryLengthAffCentre::valueDisplaced(), and valueDisplaced().
◆ OptOCurrent()
Definition at line 59 of file Entry.h.
References OptOCurrent_.
Referenced by addFittedDisplacementToValue(), EntryAngleAffAngles::displace(), EntryLengthAffCentre::displace(), displace(), EntryAngleAffAngles::displaceOriginal(), EntryLengthAffCentre::displaceOriginal(), displaceOriginal(), EntryAngleAffAngles::displaceOriginalOriginal(), EntryLengthAffCentre::displaceOriginalOriginal(), displaceOriginalOriginal(), fill(), fillFromInputFileQuality(), fillFromReportOutFileValue(), EntryAngleAffAngles::valueDisplaced(), EntryLengthAffCentre::valueDisplaced(), and valueDisplaced().
◆ OutputSigmaDimensionFactor()
virtual ALIdouble Entry::OutputSigmaDimensionFactor |
( |
| ) |
const |
|
inlinevirtual |
◆ OutputValueDimensionFactor()
virtual ALIdouble Entry::OutputValueDimensionFactor |
( |
| ) |
const |
|
inlinevirtual |
◆ quality()
ALIint Entry::quality |
( |
| ) |
const |
|
inline |
◆ resetValueDisplacementByFitting()
void Entry::resetValueDisplacementByFitting |
( |
| ) |
|
◆ setFitPos()
void Entry::setFitPos |
( |
const ALIint |
fitpos | ) |
|
|
inline |
◆ setLastAdditionToValueDisplacementByFitting()
void Entry::setLastAdditionToValueDisplacementByFitting |
( |
const ALIdouble |
val | ) |
|
|
inline |
◆ setName()
void Entry::setName |
( |
const ALIstring & |
name | ) |
|
|
inline |
◆ setOptOCurrent()
◆ setQuality()
void Entry::setQuality |
( |
ALIuint |
qual | ) |
|
|
inline |
◆ setSigma()
◆ setType()
◆ setValue()
◆ sigma()
◆ SigmaDimensionFactor()
virtual ALIdouble Entry::SigmaDimensionFactor |
( |
| ) |
const |
|
inlinevirtual |
◆ sigmaOriginalOriginal()
ALIdouble Entry::sigmaOriginalOriginal |
( |
| ) |
const |
|
inline |
◆ startingDisplacement()
virtual ALIdouble Entry::startingDisplacement |
( |
| ) |
|
|
inlinevirtual |
◆ substractToHalfFittedDisplacementToValue()
void Entry::substractToHalfFittedDisplacementToValue |
( |
| ) |
|
◆ type()
◆ value()
Definition at line 53 of file Entry.h.
References value_.
Referenced by Types.int32::__nonzero__(), Types.uint32::__nonzero__(), Types.int64::__nonzero__(), Types.uint64::__nonzero__(), Types.double::__nonzero__(), Types.bool::__nonzero__(), Types.string::__nonzero__(), average.Average::average(), Types.string::configValue(), Types.FileInPath::configValue(), Mixins.UsingBlock::dumpPython(), OpticalObject::fillExtraEntry(), OpticalObject::getEntryCentre(), OpticalObject::getEntryRMangle(), Mixins.UsingBlock::insertInto(), Types.int32::insertInto(), Types.uint32::insertInto(), Types.int64::insertInto(), Types.uint64::insertInto(), Types.double::insertInto(), Types.bool::insertInto(), Types.string::insertInto(), Types.FileInPath::insertInto(), Types.vint32::insertInto(), Types.vuint32::insertInto(), Types.vint64::insertInto(), Types.vuint64::insertInto(), Types.vdouble::insertInto(), Types.vbool::insertInto(), Types.vstring::insertInto(), CocoaToDDLMgr::specPar(), and valueInGlobalReferenceFrame().
◆ ValueDimensionFactor()
virtual ALIdouble Entry::ValueDimensionFactor |
( |
| ) |
const |
|
inlinevirtual |
◆ valueDisplaced()
◆ valueDisplacementByFitting()
ALIdouble Entry::valueDisplacementByFitting |
( |
| ) |
const |
|
inline |
◆ valueInGlobalReferenceFrame()
virtual ALIdouble Entry::valueInGlobalReferenceFrame |
( |
| ) |
const |
|
inlinevirtual |
◆ valueOriginalOriginal()
ALIdouble Entry::valueOriginalOriginal |
( |
| ) |
const |
|
inline |
◆ operator<<
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const Entry & |
c |
|
) |
| |
|
friend |
Definition at line 324 of file Entry.cc.
325 os <<
"ENTRY: " <<
c.name() <<
" of type: " <<
c.type() << std::endl
326 <<
" value " <<
c.value_ <<
" original " <<
c.valueOriginalOriginal_ << std::endl
327 <<
" sigma " <<
c.sigma_ <<
" original " <<
c.sigmaOriginalOriginal_ << std::endl
328 <<
" quality " <<
c.quality_ <<
" opto " << (
c.OptOCurrent_)->
name() << std::endl
329 <<
" fitpos " <<
c.fitPos_ <<
" valueDisplacementByFitting " <<
c.valueDisplacementByFitting_
330 <<
" lastAdditionToValueDisplacementByFitting " <<
c.lastAdditionToValueDisplacementByFitting_ << std::endl;
◆ fitPos_
◆ lastAdditionToValueDisplacementByFitting_
ALIdouble Entry::lastAdditionToValueDisplacementByFitting_ |
|
protected |
◆ name_
◆ OptOCurrent_
◆ quality_
◆ sigma_
◆ sigmaOriginalOriginal_
◆ theDimType
◆ type_
Definition at line 103 of file Entry.h.
Referenced by Modules.Service::__str__(), Modules.Service::_placeImpl(), Modules.ESSource::_placeImpl(), Modules.ESProducer::_placeImpl(), Modules.ESPrefer::copy(), Mixins._TypedParameterizable::dumpPython(), Modules.ESPrefer::dumpPythonAs(), Modules.Service::dumpSequencePython(), fillFromReportOutFileSigma(), fillFromReportOutFileValue(), RandomRunSource.RandomRunSource::insertInto(), Modules.Service::insertInto(), ExternalGeneratorFilter.ExternalGeneratorFilter::insertInto(), Mixins._TypedParameterizable::insertInto(), Modules.ESSource::moduleLabel_(), Modules.ESProducer::moduleLabel_(), Modules.ESSource::nameInProcessDesc_(), Modules.ESProducer::nameInProcessDesc_(), Modules.ESPrefer::nameInProcessDesc_(), setType(), and type().
◆ value_
◆ valueDisplacementByFitting_
◆ valueOriginalOriginal_
ALIdouble getDimOutLengthVal() const
void displaceExtraEntryOriginalOriginal(const ALIuint entryNo, const ALIdouble disp)
void fillFromReportOutFileQuality(const EntryData *entryData)
static ParameterMgr * getInstance()
const ALIint extraEntryNo(const ALIstring &entry_name) const
const ALIstring longName() const
void resetGlobalCoordinates()
virtual ALIdouble ValueDimensionFactor() const
virtual void displaceOriginal(ALIdouble disp)
const ALIstring & name() const
static GlobalOptionMgr * getInstance()
ALIdouble valueOriginal() const
void setName(const ALIstring &name)
const ALIstring & name() const
int getGlobalOptionValue(const ALIstring &sstr, ALIdouble &val)
--— Search a string in theGlobalOptions and return 1 if found
EntryData * findEntryByLongName(const ALIstring &optoName, const ALIstring &entryName="")
ALIint getParameterValue(const ALIstring &name, ALIdouble &val)
const std::vector< ALIdouble > & ExtraEntryValueOriginalList()
static int IsNumber(const ALIstring &str)
ALIdouble getDimOutAngleSig() const
std::vector< ALIdouble > & ExtraEntryValueList()
ALIdouble valueDisplacement() const
OpticalObject * OptOCurrent() const
void fillFromInputFileValue(const std::vector< ALIstring > &wordlist)
static ALIstring & SDFName()
the name of the System Description File
EntryData * findEntryByShortName(const ALIstring &optoName, const ALIstring &entryName="")
static ALIFileIn & getInstance(const ALIstring &name)
ALIdouble valueOriginalOriginal_
OpticalObject * OptOCurrent_
ALIdouble getDimOutAngleVal() const
ALIdouble getDimOutLengthSig() const
ALIdouble sigmaOriginalOriginal_
const ALIstring & type() const
void fillFromReportOutFileSigma(const EntryData *entryData)
static void dumpVS(const std::vector< ALIstring > &wl, const std::string &msg, std::ostream &outs=std::cout)
dumps a vector of strings with a message to outs
ALIdouble lastAdditionToValueDisplacementByFitting_
void fillFromReportOutFileValue(EntryData *entryData)
ALIdouble valueDisplacementByFitting_
void displaceExtraEntryOriginal(const ALIuint entryNo, const ALIdouble disp)
void fillFromInputFileSigma(const std::vector< ALIstring > &wordlist)
void displaceExtraEntry(const ALIuint entryNo, const ALIdouble disp)
void fillFromInputFileQuality(const std::vector< ALIstring > &wordlist)
static EntryMgr * getInstance()
void setValueDisplacement(const ALIdouble val)
const ALIstring longName() const
virtual ALIdouble SigmaDimensionFactor() const
void addFittedDisplacementToValue(const ALIdouble val)