#include <Entry.h>
Entry::Entry | ( | const ALIstring & | type | ) |
Definition at line 22 of file Entry.cc.
References gather_cfg::cout, ALIUtils::debug, and valueDisplacementByFitting_.
: type_(type), fitPos_(-1) { // std::cout << "entry" << std::endl; //---------- Set displacement by fitting to zero valueDisplacementByFitting_ = 0.; if( ALIUtils::debug >= 5 ) std::cout << this << " theValueDisplacementByFitting set " << valueDisplacementByFitting_ << std::endl; }
void Entry::addFittedDisplacementToValue | ( | const ALIdouble | val | ) |
Definition at line 313 of file Entry.cc.
References gather_cfg::cout, ALIUtils::debug, displaceOriginal(), lastAdditionToValueDisplacementByFitting_, OpticalObject::name(), name(), OptOCurrent(), OpticalObject::resetGlobalCoordinates(), and valueDisplacementByFitting_.
Referenced by substractToHalfFittedDisplacementToValue().
{ valueDisplacementByFitting_ += val; lastAdditionToValueDisplacementByFitting_ = val; if( ALIUtils::debug >= 3 ) std::cout << OptOCurrent()->name() << " " << name() << " Entry::addFittedDisplacementToValue " << val << " total= " << valueDisplacementByFitting_ << std::endl; //---------- Displace original centre, rotation matrix, ... displaceOriginal( val ); OptOCurrent()->resetGlobalCoordinates(); }
void Entry::displace | ( | ALIdouble | disp | ) | [virtual] |
Reimplemented in EntryAngleAffAngles, and EntryLengthAffCentre.
Definition at line 266 of file Entry.cc.
References gather_cfg::cout, ALIUtils::debug, OpticalObject::displaceExtraEntry(), OpticalObject::extraEntryNo(), name(), and OptOCurrent().
Referenced by Measurement::DerivativeRespectEntry().
{ if(ALIUtils::debug>=9) std::cout << "ExtraEntry::Displace" << disp <<std::endl; ALIuint entryNo = OptOCurrent()->extraEntryNo( name() ); OptOCurrent()->displaceExtraEntry( entryNo, disp ); }
void Entry::displaceOriginal | ( | ALIdouble | disp | ) | [virtual] |
Reimplemented in EntryAngleAffAngles, and EntryLengthAffCentre.
Definition at line 279 of file Entry.cc.
References gather_cfg::cout, ALIUtils::debug, OpticalObject::displaceExtraEntryOriginal(), OpticalObject::extraEntryNo(), name(), and OptOCurrent().
Referenced by addFittedDisplacementToValue().
{ if(ALIUtils::debug>=9) std::cout << "ExtraEntry::DisplaceOriginal" << disp <<std::endl; ALIuint entryNo = OptOCurrent()->extraEntryNo( name() ); OptOCurrent()->displaceExtraEntryOriginal( entryNo, disp ); }
void Entry::displaceOriginalOriginal | ( | ALIdouble | disp | ) | [virtual] |
Reimplemented in EntryAngleAffAngles, and EntryLengthAffCentre.
Definition at line 292 of file Entry.cc.
References gather_cfg::cout, ALIUtils::debug, OpticalObject::displaceExtraEntryOriginalOriginal(), OpticalObject::extraEntryNo(), name(), and OptOCurrent().
Referenced by FittedEntriesReader::readFittedEntriesFromFile().
{ if(ALIUtils::debug>=9) std::cout << "ExtraEntry::DisplaceOriginalOriginal" << disp <<std::endl; ALIuint entryNo = OptOCurrent()->extraEntryNo( name() ); OptOCurrent()->displaceExtraEntryOriginalOriginal( entryNo, disp ); }
void Entry::fill | ( | const std::vector< ALIstring > & | wordlist | ) |
Definition at line 32 of file Entry.cc.
References dtNoiseDBValidation_cfg::cerr, gather_cfg::cout, ALIUtils::debug, ALIUtils::dumpVS(), ALIFileIn::ErrorInLine(), cmsRelvalreport::exit, fillFromInputFileQuality(), fillFromInputFileSigma(), fillFromInputFileValue(), fillFromReportOutFileQuality(), fillFromReportOutFileSigma(), fillFromReportOutFileValue(), EntryMgr::findEntryByLongName(), EntryMgr::findEntryByShortName(), GlobalOptionMgr::getGlobalOptionValue(), GlobalOptionMgr::getInstance(), EntryMgr::getInstance(), ALIFileIn::getInstance(), OpticalObject::longName(), longName(), name(), OptOCurrent(), and Model::SDFName().
Referenced by OpticalObject::fillCoordinateEntry(), and OpticalObject::fillExtraEntry().
{ ALIdouble byshort; GlobalOptionMgr* gomgr = GlobalOptionMgr::getInstance(); gomgr->getGlobalOptionValue("reportOutEntriesByShortName", byshort ); //----- Check format of input file if (ALIUtils::debug >=4) std::cout << "@@@ Filling entry: " << name() << std::endl; //--- Check there are 4 attributes if ( wordlist.size() != 4 ) { ALIFileIn::getInstance( Model::SDFName() ).ErrorInLine(); ALIUtils::dumpVS( wordlist, " !!! Incorrect format for Entry:", std::cerr ); std::cerr << std::endl << " There should be four words: name value sigma quality " << std::endl; exit(2); } EntryData* entryData; if( byshort == 0 ) { entryData = EntryMgr::getInstance()->findEntryByLongName( OptOCurrent()->longName(), name() ); } else { entryData = EntryMgr::getInstance()->findEntryByShortName( OptOCurrent()->longName(), name() ); } if(ALIUtils::debug >= 5) std::cout << " entryData " << entryData << " " << OptOCurrent()->longName() << " " << name() << std::endl; /*t if( name_ == "centre_R" || name_ == "centre_PHI" || name_ == "centre_THE" ){ if( EntryMgr::getInstance()->numberOfEntries() > 0 ) { std::cerr << "!!!!FATAL ERROR: Filling entry from 'report.out' while entry is in cylindrical or spherical coordinates is not supported yet. " << OptOCurrent()->name() << " " << name_ << std::endl; abort(); } } */ ALIdouble fre; gomgr->getGlobalOptionValue("reportOutReadValue", fre ); if( entryData != 0 && fre == 1) { // std::cout << OptOCurrent()->name() << " " << name_ << "call fillFromReportOutFileValue " << type_ << std::endl; fillFromReportOutFileValue( entryData ); } else { // std::cout << OptOCurrent()->name() << " " << name_ << "call fillFromInputFileValue " << type_ << std::endl; fillFromInputFileValue( wordlist ); } gomgr->getGlobalOptionValue("reportOutReadSigma", fre ); if( entryData != 0 && fre == 1) { fillFromReportOutFileSigma( entryData ); } else { fillFromInputFileSigma( wordlist ); } gomgr->getGlobalOptionValue("reportOutReadQuality", fre ); if( entryData != 0 && fre == 1) { fillFromReportOutFileQuality( entryData ); } else { fillFromInputFileQuality( wordlist ); } }
void Entry::fillFromInputFileQuality | ( | const std::vector< ALIstring > & | wordlist | ) | [private] |
Definition at line 163 of file Entry.cc.
References dtNoiseDBValidation_cfg::cerr, gather_cfg::cout, ALIUtils::debug, ALIFileIn::ErrorInLine(), cmsRelvalreport::exit, ALIFileIn::getInstance(), OpticalObject::name(), name(), OptOCurrent(), quality_, Model::SDFName(), sigma_, and sigmaOriginalOriginal_.
Referenced by fill().
{ //---------- set _quality if( wordlist[3] == ALIstring("unk") ) { quality_ = 2; } else if( wordlist[3] == ALIstring("cal") ) { quality_ = 1; //t // for range studies, make all 'cal' entries 'fix' //t ALIdouble rs; //t Model::getGlobalOptionValue("range_studies", rs ); //t if(rs == 1) quality_ = 0; } else if( wordlist[3] == ALIstring("fix") ) { quality_ = 0; } else { ALIFileIn::getInstance( Model::SDFName() ).ErrorInLine(); std::cerr << " quality should be 'unk' or 'cal' or 'fix', instead of " << wordlist[3] << std::endl; exit(3); } //------ If sigma_ = 0 make quality_ 'fix' if( sigma_ == 0) { // std::cout << "SIG=0" << std::endl; quality_ = 0; } if ( ALIUtils::debug >= 4 ) std::cout << OptOCurrent()->name() << " " << name() << " " << sigma_ << "QUALITY:" << quality_ << std::endl; sigmaOriginalOriginal_ = sigma_; }
void Entry::fillFromInputFileSigma | ( | const std::vector< ALIstring > & | wordlist | ) | [private] |
Definition at line 121 of file Entry.cc.
References dtNoiseDBValidation_cfg::cerr, gather_cfg::cout, ALIUtils::debug, ALIFileIn::ErrorInLine(), cmsRelvalreport::exit, GlobalOptionMgr::getGlobalOptionValue(), ParameterMgr::getInstance(), GlobalOptionMgr::getInstance(), ALIFileIn::getInstance(), ParameterMgr::getParameterValue(), ALIUtils::IsNumber(), Model::SDFName(), sigma_, SigmaDimensionFactor(), and sigmaOriginalOriginal_.
Referenced by fill().
{ ParameterMgr* parmgr = ParameterMgr::getInstance(); //---------- translate parameter used for sigma_ /* ALIdouble sig; char** endptr; sig = strtod( wordlist[2].c_str(), endptr ); // ALIint isNumber = sscanf(wordlist[2].c_str(),"%f",sig); if ( *endptr == wordlist[2].c_str() ) { // if ( !isNumber ) { */ ALIdouble sig = 0.; if ( !ALIUtils::IsNumber( wordlist[2] ) ) { if ( parmgr->getParameterValue( wordlist[2], sig ) == 0 ) { ALIFileIn::getInstance( Model::SDFName() ).ErrorInLine(); // std::cerr << "!!! parameter for sigma not found: " << wordlist[2].c_str() << std::endl; std::cerr << "!!! parameter for sigma not found: " << wordlist[0] << " " << wordlist[1] << " " << wordlist[2] << std::endl; exit(2); } //d sig *= SigmaDimensionFactor(); //- std::cout << sig<< " valueparam " << wordlist[2] << std::endl; } else { //d sig = DimensionMgr()::getInstance()->extractValue( wordlist[2], ValueDimensionFactor() ); sig = atof( wordlist[2].c_str() ); // for range studies, make all 'cal' entries 'fix' ALIdouble rs; GlobalOptionMgr* gomgr = GlobalOptionMgr::getInstance(); gomgr->getGlobalOptionValue("range_studies", rs ); if(rs == 1) sig *= 1.E-6; //- std::cout << sig << " valuem " << wordlist[2] << std::endl; } sig *= SigmaDimensionFactor(); if (ALIUtils::debug >= 4) { std::cout << "SIGMA = " << sig << " (SigmaDimensionFactor= " << SigmaDimensionFactor() << std::endl; } sigma_ = sig; sigmaOriginalOriginal_ = sigma_; }
void Entry::fillFromInputFileValue | ( | const std::vector< ALIstring > & | wordlist | ) | [private] |
Definition at line 91 of file Entry.cc.
References dtNoiseDBValidation_cfg::cerr, gather_cfg::cout, ALIUtils::debug, ALIFileIn::ErrorInLine(), cmsRelvalreport::exit, ParameterMgr::getInstance(), ALIFileIn::getInstance(), ParameterMgr::getParameterValue(), ALIUtils::IsNumber(), Model::SDFName(), value_, ValueDimensionFactor(), and valueOriginalOriginal_.
Referenced by fill().
{ //- ALIUtils::dumpVS( wordlist, " fillFromInputFileValue " ); //- ParameterMgr* parmgr = ParameterMgr::getInstance(); //---------- Translate parameter used for value_ ALIdouble val = 0.; if ( !ALIUtils::IsNumber( wordlist[1] ) ) { if ( parmgr->getParameterValue( wordlist[1], val ) == 0 ) { ALIFileIn::getInstance( Model::SDFName() ).ErrorInLine(); std::cerr << "!!! parameter for value not found: " << wordlist[1].c_str() << std::endl; exit(2); } //d val *= ValueDimensionFactor(); } else { //d val = DimensionMgr()::getInstance()->extractValue( wordlist[1], ValueDimensionFactor() ); val = atof( wordlist[1].c_str() ); } val *= ValueDimensionFactor(); if ( ALIUtils::debug >= 4 ) { std::cout << "VALUE = " << val << " (ValueDimensionFactor= " << ValueDimensionFactor() <<std::endl; } value_ = val; valueOriginalOriginal_ = value_; }
void Entry::fillFromReportOutFileQuality | ( | const EntryData * | entryData | ) | [private] |
void Entry::fillFromReportOutFileSigma | ( | const EntryData * | entryData | ) | [private] |
Definition at line 218 of file Entry.cc.
References EntryMgr::getDimOutAngleSig(), EntryMgr::getDimOutLengthSig(), EntryMgr::getInstance(), EntryData::sigma(), sigma_, sigmaOriginalOriginal_, and type_.
Referenced by fill().
{ sigma_ = entryData->sigma(); //---- For extra entries, value is not in proper units, as the 'report.out' file does not have the type (length/angle/nodim) EntryMgr* entryMgr = EntryMgr::getInstance(); if( type_ == "centre" || type_ == "length" ) { sigma_ *= entryMgr->getDimOutLengthSig(); //- std::cout << " fillFromReportOut " << value_ << " +- " << sigma_ << std::endl; }else if( type_ == "angles" || type_ == "angle" ) { sigma_ *= entryMgr->getDimOutAngleSig(); } sigmaOriginalOriginal_ = sigma_; }
void Entry::fillFromReportOutFileValue | ( | EntryData * | entryData | ) | [private] |
Definition at line 196 of file Entry.cc.
References gather_cfg::cout, ALIUtils::debug, EntryMgr::getDimOutAngleVal(), EntryMgr::getDimOutLengthVal(), EntryMgr::getInstance(), OpticalObject::name(), name(), OptOCurrent(), EntryData::setValueDisplacement(), type_, value_, EntryData::valueDisplacement(), EntryData::valueOriginal(), and valueOriginalOriginal_.
Referenced by fill().
{ value_ = entryData->valueOriginal(); //---- For extra entries, value is not in proper units, as the 'report.out' file does not have the type (length/angle/nodim) EntryMgr* entryMgr = EntryMgr::getInstance(); //- std::cout << OptOCurrent()->name() << " " << name_ << " fillFromReportOutFileValue " << type_ << std::endl; if( type_ == "centre" || type_ == "length" ) { value_ *= entryMgr->getDimOutLengthVal(); //set valueDisp as it will be used to displace entries entryData->setValueDisplacement( entryData->valueDisplacement() * entryMgr->getDimOutLengthVal()); if(ALIUtils::debug >= 5) std::cout << " fillFromReportOut " << OptOCurrent()->name() << " " << name() << "" << value_ << " disp " << entryData->valueDisplacement() * entryMgr->getDimOutLengthVal() << std::endl; }else if( type_ == "angles" || type_ == "angle" ) { value_ *= entryMgr->getDimOutAngleVal(); entryData->setValueDisplacement( entryData->valueDisplacement() * entryMgr->getDimOutAngleVal()); if(ALIUtils::debug >= 5) std::cout << " fillFromReportOut " << OptOCurrent()->name() << " " << name() << "" << value_ << " disp " << entryData->valueDisplacement() * entryMgr->getDimOutAngleVal() << std::endl; } valueOriginalOriginal_ = value_; }
void Entry::fillName | ( | const ALIstring & | name | ) | [virtual] |
Definition at line 243 of file Entry.cc.
References setName().
Referenced by OpticalObject::fillCoordinateEntry(), OpticalObject::fillExtraEntry(), and OpticalObject::setAnglesNull().
void Entry::fillNull | ( | ) |
Definition at line 251 of file Entry.cc.
References quality_, sigma_, sigmaOriginalOriginal_, value_, and valueOriginalOriginal_.
Referenced by OpticalObject::setAnglesNull().
{ //- fillName( name ); value_ = 0.; valueOriginalOriginal_ = value_; sigma_ = 0.; sigmaOriginalOriginal_ = sigma_; quality_ = 0; }
ALIint Entry::fitPos | ( | ) | const [inline] |
Definition at line 60 of file Entry.h.
References fitPos_.
Referenced by Fit::dumpEntryAfterFit(), CocoaDBMgr::GetEntryError(), and Fit::setCorrelationFromParamFitted().
{ return fitPos_; }
EntryDim Entry::getDimType | ( | ) | const [inline] |
ALIdouble Entry::lastAdditionToValueDisplacementByFitting | ( | ) | const [inline] |
Definition at line 68 of file Entry.h.
References lastAdditionToValueDisplacementByFitting_.
{ return lastAdditionToValueDisplacementByFitting_; }
const ALIstring Entry::longName | ( | ) | const |
Definition at line 371 of file Entry.cc.
References OpticalObject::name(), name_, and OptOCurrent_.
Referenced by fill().
{ return OptOCurrent_->name()+"/"+name_; }
const ALIstring& Entry::name | ( | ) | const [inline] |
Definition at line 52 of file Entry.h.
References name_.
Referenced by addFittedDisplacementToValue(), OpticalObject::buildWordList(), MeasurementDiffEntry::calculateSimulatedValue(), EntryAngleAffAngles::checkDiff(), Measurement::DerivativeRespectEntry(), EntryAngleAffAngles::displace(), EntryLengthAffCentre::displace(), displace(), EntryLengthAffCentre::displaceOriginal(), displaceOriginal(), EntryAngleAffAngles::displaceOriginal(), displaceOriginalOriginal(), EntryAngleAffAngles::displaceOriginalOriginal(), EntryLengthAffCentre::displaceOriginalOriginal(), Fit::dumpEntryAfterFit(), OptOSensor2D::fastTraversesLightRay(), fill(), fillFromInputFileQuality(), fillFromReportOutFileValue(), EntryAngleAffAngles::FillName(), EntryLengthAffCentre::FillName(), FittedEntry::FittedEntry(), operator<<(), FittedEntriesReader::readFittedEntriesFromFile(), setName(), CocoaToDDLMgr::specPar(), valueDisplaced(), EntryLengthAffCentre::valueDisplaced(), and EntryAngleAffAngles::valueDisplaced().
{ return name_; }
OpticalObject* Entry::OptOCurrent | ( | ) | const [inline] |
Definition at line 61 of file Entry.h.
References OptOCurrent_.
Referenced by addFittedDisplacementToValue(), OpticalObject::buildWordList(), Measurement::DerivativeRespectEntry(), EntryAngleAffAngles::displace(), EntryLengthAffCentre::displace(), displace(), EntryLengthAffCentre::displaceOriginal(), displaceOriginal(), EntryAngleAffAngles::displaceOriginal(), displaceOriginalOriginal(), EntryAngleAffAngles::displaceOriginalOriginal(), EntryLengthAffCentre::displaceOriginalOriginal(), Fit::dumpEntryAfterFit(), fill(), fillFromInputFileQuality(), fillFromReportOutFileValue(), FittedEntry::FittedEntry(), FittedEntriesReader::readFittedEntriesFromFile(), valueDisplaced(), EntryLengthAffCentre::valueDisplaced(), and EntryAngleAffAngles::valueDisplaced().
{ return OptOCurrent_; } // non const, Displace( ) modifies it return _OptOCurrent;
virtual ALIdouble Entry::OutputSigmaDimensionFactor | ( | ) | const [inline, virtual] |
Reimplemented in EntryAngle, and EntryLength.
Definition at line 40 of file Entry.h.
Referenced by Fit::dumpEntryAfterFit(), and FittedEntry::FittedEntry().
{ return 1.; }
virtual ALIdouble Entry::OutputValueDimensionFactor | ( | ) | const [inline, virtual] |
Reimplemented in EntryAngle, and EntryLength.
Definition at line 39 of file Entry.h.
Referenced by Fit::dumpEntryAfterFit(), FittedEntry::FittedEntry(), and Fit::getEntryValue().
{ return 1.; }
ALIint Entry::quality | ( | ) | const [inline] |
Definition at line 59 of file Entry.h.
References quality_.
Referenced by OpticalObject::buildWordList(), Fit::dumpEntryAfterFit(), FittedEntry::FittedEntry(), CocoaDBMgr::GetEntryError(), and CocoaToDDLMgr::specPar().
{ return quality_; }
void Entry::resetValueDisplacementByFitting | ( | ) |
Definition at line 351 of file Entry.cc.
References valueDisplacementByFitting_.
{ valueDisplacementByFitting_ = 0.; }
void Entry::setFitPos | ( | const ALIint | fitpos | ) | [inline] |
void Entry::setLastAdditionToValueDisplacementByFitting | ( | const ALIdouble | val | ) | [inline] |
Definition at line 70 of file Entry.h.
References lastAdditionToValueDisplacementByFitting_.
{ lastAdditionToValueDisplacementByFitting_ = val; }
void Entry::setName | ( | const ALIstring & | name | ) | [inline] |
Definition at line 75 of file Entry.h.
Referenced by fillName(), EntryAngleAffAngles::FillName(), and EntryLengthAffCentre::FillName().
void Entry::setOptOCurrent | ( | OpticalObject * | opto | ) | [inline] |
Definition at line 81 of file Entry.h.
References OptOCurrent_.
Referenced by OpticalObject::fillCoordinateEntry(), OpticalObject::fillExtraEntry(), and OpticalObject::setAnglesNull().
{ OptOCurrent_ = opto; }
void Entry::setQuality | ( | ALIuint | qual | ) | [inline] |
void Entry::setSigma | ( | ALIdouble | sig | ) | [inline] |
Definition at line 78 of file Entry.h.
References sigma_.
Referenced by FittedEntriesReader::readFittedEntriesFromFile().
{ sigma_ = sig; }
void Entry::setType | ( | ALIstring | type | ) | [inline] |
void Entry::setValue | ( | ALIdouble | val | ) | [inline] |
Definition at line 77 of file Entry.h.
References value_.
Referenced by OptOSensor2D::fastTraversesLightRay(), and FittedEntriesSet::SetOptOEntries().
{ value_ = val; }
ALIdouble Entry::sigma | ( | ) | const [inline] |
Definition at line 57 of file Entry.h.
References sigma_.
Referenced by OpticalObject::buildWordList(), Fit::dumpEntryAfterFit(), FittedEntry::FittedEntry(), CocoaDBMgr::GetEntryError(), and CocoaToDDLMgr::specPar().
{ return sigma_; }
virtual ALIdouble Entry::SigmaDimensionFactor | ( | ) | const [inline, virtual] |
Reimplemented in EntryAngle, EntryLength, and EntryNoDim.
Definition at line 38 of file Entry.h.
Referenced by OpticalObject::buildWordList(), and fillFromInputFileSigma().
{ return 1.; }
ALIdouble Entry::sigmaOriginalOriginal | ( | ) | const [inline] |
Definition at line 58 of file Entry.h.
References sigmaOriginalOriginal_.
{ return sigmaOriginalOriginal_; }
virtual ALIdouble Entry::startingDisplacement | ( | ) | [inline, virtual] |
Reimplemented in EntryAngle, EntryLength, and EntryNoDim.
Definition at line 67 of file Entry.h.
Referenced by Measurement::DerivativeRespectEntry().
{ return 0.; };
void Entry::substractToHalfFittedDisplacementToValue | ( | ) |
Definition at line 330 of file Entry.cc.
References addFittedDisplacementToValue(), and lastAdditionToValueDisplacementByFitting_.
{ addFittedDisplacementToValue( -lastAdditionToValueDisplacementByFitting_/2. ); // addFittedDisplacementToValue( -1.01*theLastAdditionToValueDisplacementByFitting ); //addFittedDisplacementToValue( -theLastAdditionToValueDisplacementByFitting ); lastAdditionToValueDisplacementByFitting_ *= -1; // addFittedDisplacementToValue( 0. ); }
const ALIstring& Entry::type | ( | ) | const [inline] |
Definition at line 54 of file Entry.h.
References type_.
Referenced by Fit::getEntryValue(), operator<<(), setType(), and CocoaToDDLMgr::specPar().
{ return type_; }
ALIdouble Entry::value | ( | ) | const [inline] |
Definition at line 55 of file Entry.h.
References value_.
Referenced by OpticalObject::buildWordList(), Fit::dumpEntryAfterFit(), OptOSensor2D::fastTraversesLightRay(), OpticalObject::fillExtraEntry(), FittedEntry::FittedEntry(), OpticalObject::getEntryCentre(), OpticalObject::getEntryRMangle(), Fit::getEntryValue(), FittedEntriesReader::readFittedEntriesFromFile(), CocoaToDDLMgr::specPar(), and valueInGlobalReferenceFrame().
{ return value_; }
virtual ALIdouble Entry::ValueDimensionFactor | ( | ) | const [inline, virtual] |
Reimplemented in EntryAngle, EntryLength, and EntryNoDim.
Definition at line 37 of file Entry.h.
Referenced by OpticalObject::buildWordList(), OpticalObject::fillExtraEntry(), and fillFromInputFileValue().
{ return 1.; }
ALIdouble Entry::valueDisplaced | ( | ) | const [virtual] |
Reimplemented in EntryAngleAffAngles, and EntryLengthAffCentre.
Definition at line 342 of file Entry.cc.
References gather_cfg::cout, ALIUtils::debug, OpticalObject::extraEntryNo(), OpticalObject::ExtraEntryValueList(), OpticalObject::ExtraEntryValueOriginalList(), OpticalObject::name(), name(), and OptOCurrent().
Referenced by MeasurementDiffEntry::calculateSimulatedValue().
{ ALIuint entryNo = OptOCurrent()->extraEntryNo( name() ); if(ALIUtils::debug >= 5) std::cout << entryNo << " Entry::valueDisplaced " << name() << " in " << OptOCurrent()->name() << " orig " << OptOCurrent()->ExtraEntryValueOriginalList()[entryNo] << " new " << OptOCurrent()->ExtraEntryValueList()[entryNo] << std::endl; return OptOCurrent()->ExtraEntryValueList()[entryNo] - OptOCurrent()->ExtraEntryValueOriginalList()[entryNo]; }
ALIdouble Entry::valueDisplacementByFitting | ( | ) | const [inline] |
Definition at line 63 of file Entry.h.
References valueDisplacementByFitting_.
Referenced by Fit::dumpEntryAfterFit(), FittedEntry::FittedEntry(), OpticalObject::getEntryCentre(), OpticalObject::getEntryRMangle(), and Fit::getEntryValue().
{ //- cout << this << " " << name() << " get valueDisplacementByFitting " << theValueDisplacementByFitting << endl; return valueDisplacementByFitting_; }
virtual ALIdouble Entry::valueInGlobalReferenceFrame | ( | ) | const [inline, virtual] |
Reimplemented in EntryLengthAffCentre.
Definition at line 49 of file Entry.h.
References value().
{return value();};
ALIdouble Entry::valueOriginalOriginal | ( | ) | const [inline] |
Definition at line 56 of file Entry.h.
References valueOriginalOriginal_.
{ return valueOriginalOriginal_; }
std::ostream& operator<< | ( | std::ostream & | os, |
const Entry & | c | ||
) | [friend] |
Definition at line 357 of file Entry.cc.
{ os << "ENTRY: " << c.name() << " of type: " << c.type() << std::endl << " value " << c.value_ << " original " << c.valueOriginalOriginal_ << std::endl << " sigma " << c.sigma_ << " original " << c.sigmaOriginalOriginal_ << std::endl << " quality " << c.quality_ << " opto " << (c.OptOCurrent_)->name() << std::endl << " fitpos " << c.fitPos_ << " valueDisplacementByFitting " << c.valueDisplacementByFitting_ << " lastAdditionToValueDisplacementByFitting " << c.lastAdditionToValueDisplacementByFitting_ << std::endl; return os; }
ALIint Entry::fitPos_ [protected] |
Definition at line 109 of file Entry.h.
Referenced by fitPos(), operator<<(), and setFitPos().
Definition at line 112 of file Entry.h.
Referenced by addFittedDisplacementToValue(), lastAdditionToValueDisplacementByFitting(), operator<<(), setLastAdditionToValueDisplacementByFitting(), and substractToHalfFittedDisplacementToValue().
ALIstring Entry::name_ [protected] |
Definition at line 101 of file Entry.h.
Referenced by EntryAngleAffAngles::displace(), EntryLengthAffCentre::displace(), EntryLengthAffCentre::displaceOriginal(), EntryAngleAffAngles::displaceOriginal(), EntryAngleAffAngles::displaceOriginalOriginal(), EntryLengthAffCentre::displaceOriginalOriginal(), longName(), name(), and setName().
OpticalObject* Entry::OptOCurrent_ [protected] |
Definition at line 108 of file Entry.h.
Referenced by longName(), operator<<(), OptOCurrent(), and setOptOCurrent().
ALIuint Entry::quality_ [protected] |
Definition at line 107 of file Entry.h.
Referenced by fillFromInputFileQuality(), fillFromReportOutFileQuality(), fillNull(), operator<<(), quality(), and setQuality().
ALIdouble Entry::sigma_ [protected] |
Definition at line 105 of file Entry.h.
Referenced by fillFromInputFileQuality(), fillFromInputFileSigma(), fillFromReportOutFileSigma(), fillNull(), operator<<(), setSigma(), and sigma().
ALIdouble Entry::sigmaOriginalOriginal_ [protected] |
Definition at line 106 of file Entry.h.
Referenced by fillFromInputFileQuality(), fillFromInputFileSigma(), fillFromReportOutFileSigma(), fillNull(), operator<<(), and sigmaOriginalOriginal().
EntryDim Entry::theDimType [protected] |
Definition at line 119 of file Entry.h.
Referenced by EntryAngle::EntryAngle(), EntryLength::EntryLength(), EntryNoDim::EntryNoDim(), and getDimType().
ALIstring Entry::type_ [protected] |
Definition at line 102 of file Entry.h.
Referenced by fillFromReportOutFileSigma(), fillFromReportOutFileValue(), setType(), and type().
ALIdouble Entry::value_ [protected] |
Definition at line 103 of file Entry.h.
Referenced by fillFromInputFileValue(), fillFromReportOutFileValue(), fillNull(), operator<<(), setValue(), and value().
ALIdouble Entry::valueDisplacementByFitting_ [protected] |
Definition at line 111 of file Entry.h.
Referenced by addFittedDisplacementToValue(), Entry(), operator<<(), resetValueDisplacementByFitting(), and valueDisplacementByFitting().
ALIdouble Entry::valueOriginalOriginal_ [protected] |
Definition at line 104 of file Entry.h.
Referenced by fillFromInputFileValue(), fillFromReportOutFileValue(), fillNull(), operator<<(), and valueOriginalOriginal().