CMS 3D CMS Logo

Public Member Functions | Protected Attributes | Private Member Functions | Friends

Entry Class Reference

#include <Entry.h>

Inheritance diagram for Entry:
EntryAngle EntryLength EntryNoDim EntryAngleAffAngles EntryLengthAffCentre

List of all members.

Public Member Functions

void addFittedDisplacementToValue (const ALIdouble val)
virtual void displace (ALIdouble disp)
virtual void displaceOriginal (ALIdouble disp)
virtual void displaceOriginalOriginal (ALIdouble disp)
 Entry (const ALIstring &type)
void fill (const std::vector< ALIstring > &wordlist)
virtual void fillName (const ALIstring &name)
void fillNull ()
ALIint fitPos () const
EntryDim getDimType () const
ALIdouble lastAdditionToValueDisplacementByFitting () const
const ALIstring longName () const
const ALIstringname () const
OpticalObjectOptOCurrent () const
virtual ALIdouble OutputSigmaDimensionFactor () const
virtual ALIdouble OutputValueDimensionFactor () const
ALIint quality () const
void resetValueDisplacementByFitting ()
void setFitPos (const ALIint fitpos)
void setLastAdditionToValueDisplacementByFitting (const ALIdouble val)
void setName (const ALIstring &name)
void setOptOCurrent (OpticalObject *opto)
void setQuality (ALIuint qual)
void setSigma (ALIdouble sig)
void setType (ALIstring type)
void setValue (ALIdouble val)
ALIdouble sigma () const
virtual ALIdouble SigmaDimensionFactor () const
ALIdouble sigmaOriginalOriginal () const
virtual ALIdouble startingDisplacement ()
void substractToHalfFittedDisplacementToValue ()
const ALIstringtype () const
ALIdouble value () const
virtual ALIdouble ValueDimensionFactor () const
virtual ALIdouble valueDisplaced () const
ALIdouble valueDisplacementByFitting () const
virtual ALIdouble valueInGlobalReferenceFrame () const
ALIdouble valueOriginalOriginal () const
virtual ~Entry ()

Protected Attributes

ALIint fitPos_
ALIdouble lastAdditionToValueDisplacementByFitting_
ALIstring name_
OpticalObjectOptOCurrent_
ALIuint quality_
ALIdouble sigma_
ALIdouble sigmaOriginalOriginal_
EntryDim theDimType
ALIstring type_
ALIdouble value_
ALIdouble valueDisplacementByFitting_
ALIdouble valueOriginalOriginal_

Private Member Functions

void fillFromInputFileQuality (const std::vector< ALIstring > &wordlist)
void fillFromInputFileSigma (const std::vector< ALIstring > &wordlist)
void fillFromInputFileValue (const std::vector< ALIstring > &wordlist)
void fillFromReportOutFileQuality (const EntryData *entryData)
void fillFromReportOutFileSigma (const EntryData *entryData)
void fillFromReportOutFileValue (EntryData *entryData)

Friends

std::ostream & operator<< (std::ostream &os, const Entry &c)

Detailed Description

Definition at line 18 of file Entry.h.


Constructor & Destructor Documentation

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;
}
Entry::~Entry ( ) [virtual]

Definition at line 305 of file Entry.cc.

{
}

Member Function Documentation

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 ExpressReco_HICollisions_FallBack::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 ExpressReco_HICollisions_FallBack::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 ExpressReco_HICollisions_FallBack::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 ExpressReco_HICollisions_FallBack::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]

Definition at line 235 of file Entry.cc.

References EntryData::quality(), and quality_.

Referenced by fill().

{
  quality_ = entryData->quality();
}
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]
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]

Definition at line 86 of file Entry.h.

References theDimType.

{ return theDimType;}
ALIdouble Entry::lastAdditionToValueDisplacementByFitting ( ) const [inline]
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]
OpticalObject* Entry::OptOCurrent ( ) const [inline]
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]
void Entry::resetValueDisplacementByFitting ( )

Definition at line 351 of file Entry.cc.

References valueDisplacementByFitting_.

void Entry::setFitPos ( const ALIint  fitpos) [inline]

Definition at line 80 of file Entry.h.

References fitPos_.

{ fitPos_ = fitpos; } 
void Entry::setLastAdditionToValueDisplacementByFitting ( const ALIdouble  val) [inline]
void Entry::setName ( const ALIstring name) [inline]

Definition at line 75 of file Entry.h.

References name(), and name_.

Referenced by fillName(), EntryAngleAffAngles::FillName(), and EntryLengthAffCentre::FillName().

{ name_ = name; }
void Entry::setOptOCurrent ( OpticalObject opto) [inline]
void Entry::setQuality ( ALIuint  qual) [inline]

Definition at line 79 of file Entry.h.

References quality_.

{ quality_ = qual; }
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]

Definition at line 76 of file Entry.h.

References type(), and type_.

{ type_ = type; }
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]
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_.

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]
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]
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_.


Friends And Related Function Documentation

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;

}

Member Data Documentation

ALIint Entry::fitPos_ [protected]

Definition at line 109 of file Entry.h.

Referenced by fitPos(), operator<<(), and setFitPos().

ALIstring Entry::name_ [protected]

Definition at line 108 of file Entry.h.

Referenced by longName(), operator<<(), OptOCurrent(), and setOptOCurrent().

ALIuint Entry::quality_ [protected]
ALIdouble Entry::sigma_ [protected]
ALIstring Entry::type_ [protected]

Definition at line 102 of file Entry.h.

Referenced by fillFromReportOutFileSigma(), fillFromReportOutFileValue(), setType(), and type().

ALIdouble Entry::value_ [protected]