CMS 3D CMS Logo

Entry Class Reference

#include <Alignment/CocoaModel/interface/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
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_
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 17 of file Entry.h.


Constructor & Destructor Documentation

Entry::Entry ( const ALIstring type  ) 

Definition at line 22 of file Entry.cc.

References GenMuonPlsPt100GeV_cfg::cout, ALIUtils::debug, lat::endl(), and valueDisplacementByFitting_.

00022                                     : type_(type), fitPos_(-1)
00023 {
00024   //  std::cout << "entry" << std::endl;
00025   //---------- Set displacement by fitting to zero
00026   valueDisplacementByFitting_ = 0.; 
00027   if( ALIUtils::debug >= 5 ) std::cout << this << " theValueDisplacementByFitting set " << valueDisplacementByFitting_ << std::endl;
00028 }

Entry::~Entry (  )  [virtual]

Definition at line 305 of file Entry.cc.

00306 {
00307 }


Member Function Documentation

void Entry::addFittedDisplacementToValue ( const ALIdouble  val  ) 

Definition at line 313 of file Entry.cc.

References GenMuonPlsPt100GeV_cfg::cout, ALIUtils::debug, displaceOriginal(), lat::endl(), lastAdditionToValueDisplacementByFitting_, OpticalObject::name(), name(), OptOCurrent(), OpticalObject::resetGlobalCoordinates(), and valueDisplacementByFitting_.

Referenced by substractToHalfFittedDisplacementToValue().

00314 {
00315   valueDisplacementByFitting_ += val;
00316   lastAdditionToValueDisplacementByFitting_ = val;
00317   if( ALIUtils::debug >= 3 ) std::cout << OptOCurrent()->name() << " " << name() << " Entry::addFittedDisplacementToValue " << val << " total= " << valueDisplacementByFitting_ << std::endl;
00318   
00319   //---------- Displace original centre, rotation matrix, ...
00320   displaceOriginal( val );
00321   OptOCurrent()->resetGlobalCoordinates();
00322 
00323 }

void Entry::displace ( ALIdouble  disp  )  [virtual]

Reimplemented in EntryAngleAffAngles, and EntryLengthAffCentre.

Definition at line 266 of file Entry.cc.

References GenMuonPlsPt100GeV_cfg::cout, ALIUtils::debug, OpticalObject::displaceExtraEntry(), lat::endl(), OpticalObject::extraEntryNo(), name(), and OptOCurrent().

Referenced by Measurement::DerivativeRespectEntry().

00267 {
00268   if(ALIUtils::debug>=9) std::cout << "ExtraEntry::Displace" <<  disp <<std::endl;
00269   ALIuint entryNo = OptOCurrent()->extraEntryNo( name() );
00270 
00271   OptOCurrent()->displaceExtraEntry( entryNo, disp );
00272 
00273 }

void Entry::displaceOriginal ( ALIdouble  disp  )  [virtual]

Reimplemented in EntryAngleAffAngles, and EntryLengthAffCentre.

Definition at line 279 of file Entry.cc.

References GenMuonPlsPt100GeV_cfg::cout, ALIUtils::debug, OpticalObject::displaceExtraEntryOriginal(), lat::endl(), OpticalObject::extraEntryNo(), name(), and OptOCurrent().

Referenced by addFittedDisplacementToValue().

00280 {
00281   if(ALIUtils::debug>=9) std::cout << "ExtraEntry::DisplaceOriginal" <<  disp <<std::endl;
00282   ALIuint entryNo = OptOCurrent()->extraEntryNo( name() );
00283 
00284   OptOCurrent()->displaceExtraEntryOriginal( entryNo, disp );
00285  
00286 } 

void Entry::displaceOriginalOriginal ( ALIdouble  disp  )  [virtual]

Reimplemented in EntryAngleAffAngles, and EntryLengthAffCentre.

Definition at line 292 of file Entry.cc.

References GenMuonPlsPt100GeV_cfg::cout, ALIUtils::debug, OpticalObject::displaceExtraEntryOriginalOriginal(), lat::endl(), OpticalObject::extraEntryNo(), name(), and OptOCurrent().

Referenced by FittedEntriesReader::readFittedEntriesFromFile().

00293 {
00294   if(ALIUtils::debug>=9) std::cout << "ExtraEntry::DisplaceOriginalOriginal" <<  disp <<std::endl;
00295   ALIuint entryNo = OptOCurrent()->extraEntryNo( name() );
00296 
00297   OptOCurrent()->displaceExtraEntryOriginalOriginal( entryNo, disp );
00298  
00299 } 

void Entry::fill ( const std::vector< ALIstring > &  wordlist  ) 

Definition at line 32 of file Entry.cc.

References TestMuL1L2Filter_cff::cerr, GenMuonPlsPt100GeV_cfg::cout, ALIUtils::debug, ALIUtils::dumpVS(), lat::endl(), 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().

00033 {
00034 
00035   ALIdouble byshort;
00036   GlobalOptionMgr* gomgr = GlobalOptionMgr::getInstance();
00037   gomgr->getGlobalOptionValue("reportOutEntriesByShortName", byshort ); 
00038 
00039   //----- Check format of input file
00040   if (ALIUtils::debug >=4) std::cout << "@@@ Filling entry: " << name() << std::endl;
00041   //--- Check there are 4 attributes
00042   if ( wordlist.size() != 4 ) {
00043     ALIFileIn::getInstance( Model::SDFName() ).ErrorInLine();
00044     ALIUtils::dumpVS( wordlist, " !!! Incorrect format for Entry:", std::cerr );
00045     std::cerr << std::endl << " There should be four words: name value sigma quality " << std::endl;
00046     exit(2);
00047   }
00048 
00049   EntryData* entryData;
00050   if( byshort == 0 ) {
00051     entryData = EntryMgr::getInstance()->findEntryByLongName( OptOCurrent()->longName(), name() );
00052   } else {
00053     entryData = EntryMgr::getInstance()->findEntryByShortName( OptOCurrent()->longName(), name() );
00054   }
00055   if(ALIUtils::debug >= 5) std::cout << " entryData " << entryData << " " <<  OptOCurrent()->longName() << " " << name() << std::endl;
00056 
00057   /*t
00058   if( name_ == "centre_R" || name_ == "centre_PHI" || name_ == "centre_THE" ){
00059     if( EntryMgr::getInstance()->numberOfEntries() > 0 ) {
00060       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;
00061       abort();
00062     }
00063   }
00064   */
00065 
00066   ALIdouble fre;
00067   gomgr->getGlobalOptionValue("reportOutReadValue", fre );
00068   if( entryData != 0 && fre == 1) {
00069     //    std::cout << OptOCurrent()->name() << " " << name_ << "call fillFromReportOutFileValue " << type_ <<  std::endl;
00070     fillFromReportOutFileValue( entryData );
00071   } else {
00072     //  std::cout << OptOCurrent()->name() << " " << name_ << "call fillFromInputFileValue " << type_ <<  std::endl;
00073     fillFromInputFileValue( wordlist );
00074   }
00075   gomgr->getGlobalOptionValue("reportOutReadSigma", fre );
00076   if( entryData != 0 && fre == 1) {
00077     fillFromReportOutFileSigma( entryData );
00078   } else {
00079     fillFromInputFileSigma( wordlist );
00080   }
00081   gomgr->getGlobalOptionValue("reportOutReadQuality", fre );
00082   if( entryData != 0 && fre == 1) {
00083     fillFromReportOutFileQuality( entryData );
00084   } else {
00085     fillFromInputFileQuality( wordlist );
00086   }
00087 }

void Entry::fillFromInputFileQuality ( const std::vector< ALIstring > &  wordlist  )  [private]

Definition at line 163 of file Entry.cc.

References TestMuL1L2Filter_cff::cerr, GenMuonPlsPt100GeV_cfg::cout, ALIUtils::debug, lat::endl(), ALIFileIn::ErrorInLine(), cmsRelvalreport::exit, ALIFileIn::getInstance(), OpticalObject::name(), name(), OptOCurrent(), quality_, Model::SDFName(), sigma_, and sigmaOriginalOriginal_.

Referenced by fill().

00164 {
00165   //---------- set _quality
00166   if( wordlist[3] == ALIstring("unk") ) {
00167     quality_ = 2;
00168   } else if( wordlist[3] == ALIstring("cal") ) {
00169     quality_ = 1;
00170     //t  // for range studies, make all 'cal' entries 'fix'
00171     //t ALIdouble rs;
00172     //t Model::getGlobalOptionValue("range_studies", rs );
00173     //t if(rs == 1) quality_ = 0;
00174   } else if( wordlist[3] == ALIstring("fix") ) { 
00175     quality_ = 0;
00176   } else {
00177     ALIFileIn::getInstance( Model::SDFName() ).ErrorInLine();
00178     std::cerr << " quality should be 'unk' or 'cal' or 'fix', instead of " << wordlist[3] << std::endl;
00179     exit(3);
00180   }
00181   //------ If sigma_ = 0 make quality_ 'fix'
00182   if( sigma_ == 0) {
00183     //      std::cout << "SIG=0" << std::endl;
00184     quality_ = 0;
00185   }
00186   if ( ALIUtils::debug >= 4 ) std::cout << OptOCurrent()->name() << " " << name() << " " << sigma_ << "QUALITY:" << quality_  << std::endl;
00187     
00188   sigmaOriginalOriginal_ = sigma_;
00189 
00190 }

void Entry::fillFromInputFileSigma ( const std::vector< ALIstring > &  wordlist  )  [private]

Definition at line 121 of file Entry.cc.

References TestMuL1L2Filter_cff::cerr, GenMuonPlsPt100GeV_cfg::cout, ALIUtils::debug, lat::endl(), 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().

00122 {
00123 
00124   ParameterMgr* parmgr = ParameterMgr::getInstance();
00125   //---------- translate parameter used for sigma_
00126   /*  ALIdouble sig;
00127   char** endptr;
00128   sig = strtod( wordlist[2].c_str(), endptr );
00129   //  ALIint isNumber =  sscanf(wordlist[2].c_str(),"%f",sig);
00130   if ( *endptr == wordlist[2].c_str() ) {
00131   // if ( !isNumber ) { */
00132   ALIdouble sig = 0.;
00133   if ( !ALIUtils::IsNumber( wordlist[2] ) ) {
00134     if ( parmgr->getParameterValue( wordlist[2], sig ) == 0 ) {
00135       ALIFileIn::getInstance( Model::SDFName() ).ErrorInLine();
00136       //      std::cerr << "!!! parameter for sigma not found: " << wordlist[2].c_str() << std::endl;
00137       std::cerr << "!!! parameter for sigma not found: " << wordlist[0] << " " << wordlist[1] << " " <<  wordlist[2] << std::endl;
00138       exit(2);
00139     }
00140     //d    sig *= SigmaDimensionFactor();
00141     //-    std::cout << sig<< " valueparam " << wordlist[2] << std::endl;
00142   } else { 
00143     //d sig = DimensionMgr()::getInstance()->extractValue( wordlist[2], ValueDimensionFactor() );
00144     sig = atof( wordlist[2].c_str() );
00145     // for range studies, make all 'cal' entries 'fix'
00146     ALIdouble rs;
00147     GlobalOptionMgr* gomgr = GlobalOptionMgr::getInstance();
00148     gomgr->getGlobalOptionValue("range_studies", rs );
00149     if(rs == 1) sig *= 1.E-6;
00150 
00151     //-    std::cout << sig << " valuem " << wordlist[2] << std::endl;
00152   }
00153   sig *= SigmaDimensionFactor();
00154   if (ALIUtils::debug >= 4) {
00155     std::cout << "SIGMA = " << sig << " (SigmaDimensionFactor= " << SigmaDimensionFactor() << std::endl;
00156   }
00157   sigma_ = sig;
00158   sigmaOriginalOriginal_ = sigma_;
00159 
00160 }

void Entry::fillFromInputFileValue ( const std::vector< ALIstring > &  wordlist  )  [private]

Definition at line 91 of file Entry.cc.

References TestMuL1L2Filter_cff::cerr, GenMuonPlsPt100GeV_cfg::cout, ALIUtils::debug, lat::endl(), ALIFileIn::ErrorInLine(), cmsRelvalreport::exit, ParameterMgr::getInstance(), ALIFileIn::getInstance(), ParameterMgr::getParameterValue(), ALIUtils::IsNumber(), Model::SDFName(), value_, ValueDimensionFactor(), and valueOriginalOriginal_.

Referenced by fill().

00092 {
00093 
00094   //-  ALIUtils::dumpVS( wordlist, " fillFromInputFileValue " ); //-
00095   ParameterMgr* parmgr = ParameterMgr::getInstance();
00096   //---------- Translate parameter used for value_
00097   ALIdouble val = 0.;
00098   if ( !ALIUtils::IsNumber( wordlist[1] ) ) {
00099     if ( parmgr->getParameterValue( wordlist[1], val ) == 0 ) {
00100       ALIFileIn::getInstance( Model::SDFName() ).ErrorInLine();
00101       std::cerr << "!!! parameter for value not found: " << wordlist[1].c_str() << std::endl;
00102       exit(2);
00103     }
00104     //d val *= ValueDimensionFactor();
00105   } else { 
00106     //d val = DimensionMgr()::getInstance()->extractValue( wordlist[1], ValueDimensionFactor() );
00107     val = atof( wordlist[1].c_str() );
00108   }
00109   val *= ValueDimensionFactor();
00110   if ( ALIUtils::debug >= 4 ) { 
00111     std::cout << "VALUE = " << val << " (ValueDimensionFactor= " << ValueDimensionFactor() <<std::endl;
00112   }
00113 
00114   value_ = val;
00115   valueOriginalOriginal_ = value_;
00116 
00117 
00118 }

void Entry::fillFromReportOutFileQuality ( const EntryData entryData  )  [private]

Definition at line 235 of file Entry.cc.

References EntryData::quality(), and quality_.

Referenced by fill().

00236 {
00237   quality_ = entryData->quality();
00238 }

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().

00219 {
00220   sigma_ = entryData->sigma();
00221   //---- For extra entries, value is not in proper units, as the 'report.out' file does not have the type (length/angle/nodim)
00222   EntryMgr* entryMgr = EntryMgr::getInstance();
00223   if( type_ == "centre" || type_ == "length" ) {
00224    sigma_ *= entryMgr->getDimOutLengthSig();
00225    //-   std::cout << " fillFromReportOut " << value_ << " +- " << sigma_ << std::endl;
00226   }else if( type_ == "angles" || type_ == "angle" ) {
00227    sigma_ *= entryMgr->getDimOutAngleSig();
00228   }
00229 
00230   sigmaOriginalOriginal_ = sigma_;
00231 
00232 }

void Entry::fillFromReportOutFileValue ( EntryData entryData  )  [private]

Definition at line 196 of file Entry.cc.

References GenMuonPlsPt100GeV_cfg::cout, ALIUtils::debug, lat::endl(), EntryMgr::getDimOutAngleVal(), EntryMgr::getDimOutLengthVal(), EntryMgr::getInstance(), OpticalObject::name(), name(), OptOCurrent(), EntryData::setValueDisplacement(), type_, value_, EntryData::valueDisplacement(), EntryData::valueOriginal(), and valueOriginalOriginal_.

Referenced by fill().

00197 {
00198   value_ = entryData->valueOriginal();
00199   //---- For extra entries, value is not in proper units, as the 'report.out' file does not have the type (length/angle/nodim)
00200   EntryMgr* entryMgr = EntryMgr::getInstance();
00201   //-  std::cout << OptOCurrent()->name() << " " << name_ << " fillFromReportOutFileValue " << type_ << std::endl;
00202   if( type_ == "centre" || type_ == "length" ) {
00203    value_ *= entryMgr->getDimOutLengthVal();
00204    //set valueDisp as it will be used to displace entries
00205    entryData->setValueDisplacement( entryData->valueDisplacement() * entryMgr->getDimOutLengthVal());
00206    if(ALIUtils::debug >= 5) std::cout << " fillFromReportOut " << OptOCurrent()->name() << " " << name() << "" <<  value_ << " disp " <<  entryData->valueDisplacement() * entryMgr->getDimOutLengthVal() << std::endl;
00207   }else if( type_ == "angles" || type_ == "angle" ) {
00208     value_ *= entryMgr->getDimOutAngleVal();
00209     entryData->setValueDisplacement( entryData->valueDisplacement() * entryMgr->getDimOutAngleVal());
00210     if(ALIUtils::debug >= 5) std::cout << " fillFromReportOut " << OptOCurrent()->name() << " " << name() << "" <<  value_ << " disp " <<  entryData->valueDisplacement() * entryMgr->getDimOutAngleVal() << std::endl;
00211   }
00212 
00213   valueOriginalOriginal_ = value_;
00214 
00215 }

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().

00244 {
00245   setName( name );
00246 }

void Entry::fillNull (  ) 

Definition at line 251 of file Entry.cc.

References quality_, sigma_, sigmaOriginalOriginal_, value_, and valueOriginalOriginal_.

Referenced by OpticalObject::setAnglesNull().

00252 {
00253   //-  fillName( name );
00254   value_ = 0.;
00255   valueOriginalOriginal_ = value_;
00256   sigma_ = 0.;
00257   sigmaOriginalOriginal_ = sigma_;
00258   quality_ = 0;
00259 
00260 }

ALIint Entry::fitPos (  )  const [inline]

Definition at line 59 of file Entry.h.

References fitPos_.

Referenced by Fit::dumpEntryAfterFit(), CocoaAnalyzer::GetEntryError(), and Fit::setCorrelationFromParamFitted().

00059 { return fitPos_; }

ALIdouble Entry::lastAdditionToValueDisplacementByFitting (  )  const [inline]

Definition at line 67 of file Entry.h.

References lastAdditionToValueDisplacementByFitting_.

const ALIstring Entry::longName (  )  const

Definition at line 371 of file Entry.cc.

References OpticalObject::name(), name_, and OptOCurrent_.

Referenced by fill().

00372 {
00373   return OptOCurrent_->name()+"/"+name_;
00374 }

const ALIstring& Entry::name (  )  const [inline]

Definition at line 51 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(), FittedEntry::FittedEntry(), operator<<(), FittedEntriesReader::readFittedEntriesFromFile(), CocoaToDDLMgr::specPar(), valueDisplaced(), EntryLengthAffCentre::valueDisplaced(), and EntryAngleAffAngles::valueDisplaced().

00051 { return name_; }

OpticalObject* Entry::OptOCurrent (  )  const [inline]

Definition at line 60 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().

00060 { return OptOCurrent_; } // non const, Displace( ) modifies it return _OptOCurrent;

virtual ALIdouble Entry::OutputSigmaDimensionFactor (  )  const [inline, virtual]

Reimplemented in EntryAngle, and EntryLength.

Definition at line 39 of file Entry.h.

Referenced by Fit::dumpEntryAfterFit(), and FittedEntry::FittedEntry().

00039 { return 1.; }

virtual ALIdouble Entry::OutputValueDimensionFactor (  )  const [inline, virtual]

Reimplemented in EntryAngle, and EntryLength.

Definition at line 38 of file Entry.h.

Referenced by Fit::dumpEntryAfterFit(), FittedEntry::FittedEntry(), and Fit::getEntryValue().

00038 { return 1.; }

ALIint Entry::quality (  )  const [inline]

Definition at line 58 of file Entry.h.

References quality_.

Referenced by OpticalObject::buildWordList(), Fit::dumpEntryAfterFit(), FittedEntry::FittedEntry(), CocoaAnalyzer::GetEntryError(), and CocoaToDDLMgr::specPar().

00058 { return quality_; }

void Entry::resetValueDisplacementByFitting (  ) 

Definition at line 351 of file Entry.cc.

References valueDisplacementByFitting_.

00352 {
00353   valueDisplacementByFitting_ = 0.;
00354 }

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

Definition at line 79 of file Entry.h.

References fitPos_.

00079 { fitPos_ = fitpos; } 

void Entry::setLastAdditionToValueDisplacementByFitting ( const ALIdouble  val  )  [inline]

Definition at line 69 of file Entry.h.

References lastAdditionToValueDisplacementByFitting_.

void Entry::setName ( const ALIstring name  )  [inline]

Definition at line 74 of file Entry.h.

References name_.

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

00074 { name_ = name; }

void Entry::setOptOCurrent ( OpticalObject opto  )  [inline]

Definition at line 80 of file Entry.h.

References OptOCurrent_.

Referenced by OpticalObject::fillCoordinateEntry(), OpticalObject::fillExtraEntry(), and OpticalObject::setAnglesNull().

00080 { OptOCurrent_ = opto; }

void Entry::setQuality ( ALIuint  qual  )  [inline]

Definition at line 78 of file Entry.h.

References quality_.

00078 { quality_ = qual; }

void Entry::setSigma ( ALIdouble  sig  )  [inline]

Definition at line 77 of file Entry.h.

References sigma_.

Referenced by FittedEntriesReader::readFittedEntriesFromFile().

00077 { sigma_ = sig; }

void Entry::setType ( ALIstring  type  )  [inline]

Definition at line 75 of file Entry.h.

References type_.

00075 { type_ = type; }

void Entry::setValue ( ALIdouble  val  )  [inline]

Definition at line 76 of file Entry.h.

References value_.

Referenced by OptOSensor2D::fastTraversesLightRay(), and FittedEntriesSet::SetOptOEntries().

00076 { value_ = val; }

ALIdouble Entry::sigma (  )  const [inline]

Definition at line 56 of file Entry.h.

References sigma_.

Referenced by OpticalObject::buildWordList(), Fit::dumpEntryAfterFit(), FittedEntry::FittedEntry(), CocoaAnalyzer::GetEntryError(), and CocoaToDDLMgr::specPar().

00056 { return sigma_; }

virtual ALIdouble Entry::SigmaDimensionFactor (  )  const [inline, virtual]

Reimplemented in EntryAngle, EntryLength, and EntryNoDim.

Definition at line 37 of file Entry.h.

Referenced by OpticalObject::buildWordList(), and fillFromInputFileSigma().

00037 { return 1.; }

ALIdouble Entry::sigmaOriginalOriginal (  )  const [inline]

Definition at line 57 of file Entry.h.

References sigmaOriginalOriginal_.

00057 { return sigmaOriginalOriginal_; }

virtual ALIdouble Entry::startingDisplacement (  )  [inline, virtual]

Reimplemented in EntryAngle, EntryLength, and EntryNoDim.

Definition at line 66 of file Entry.h.

Referenced by Measurement::DerivativeRespectEntry().

00066 { return 0.; };

void Entry::substractToHalfFittedDisplacementToValue (  ) 

Definition at line 330 of file Entry.cc.

References addFittedDisplacementToValue(), and lastAdditionToValueDisplacementByFitting_.

00331 {
00332   addFittedDisplacementToValue( -lastAdditionToValueDisplacementByFitting_/2. );
00333   // addFittedDisplacementToValue( -1.01*theLastAdditionToValueDisplacementByFitting );
00334   //addFittedDisplacementToValue( -theLastAdditionToValueDisplacementByFitting );
00335   lastAdditionToValueDisplacementByFitting_ *= -1;
00336   //  addFittedDisplacementToValue( 0. );
00337 
00338 }

const ALIstring& Entry::type (  )  const [inline]

Definition at line 53 of file Entry.h.

References type_.

Referenced by Fit::getEntryValue(), operator<<(), and CocoaToDDLMgr::specPar().

00053 { return type_; }

ALIdouble Entry::value (  )  const [inline]

Definition at line 54 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().

00054 { return value_; }

virtual ALIdouble Entry::ValueDimensionFactor (  )  const [inline, virtual]

Reimplemented in EntryAngle, EntryLength, and EntryNoDim.

Definition at line 36 of file Entry.h.

Referenced by OpticalObject::buildWordList(), OpticalObject::fillExtraEntry(), and fillFromInputFileValue().

00036 { return 1.; }

ALIdouble Entry::valueDisplaced (  )  const [virtual]

Reimplemented in EntryAngleAffAngles, and EntryLengthAffCentre.

Definition at line 342 of file Entry.cc.

References GenMuonPlsPt100GeV_cfg::cout, ALIUtils::debug, lat::endl(), OpticalObject::extraEntryNo(), OpticalObject::ExtraEntryValueList(), OpticalObject::ExtraEntryValueOriginalList(), OpticalObject::name(), name(), and OptOCurrent().

Referenced by MeasurementDiffEntry::calculateSimulatedValue().

00343 {
00344   ALIuint entryNo = OptOCurrent()->extraEntryNo( name() );
00345   if(ALIUtils::debug >= 5) std::cout << entryNo << " Entry::valueDisplaced " << name() << " in " << OptOCurrent()->name() 
00346        << " orig " <<  OptOCurrent()->ExtraEntryValueOriginalList()[entryNo] << " new " <<  OptOCurrent()->ExtraEntryValueList()[entryNo] << std::endl;
00347   return OptOCurrent()->ExtraEntryValueList()[entryNo] - OptOCurrent()->ExtraEntryValueOriginalList()[entryNo];
00348 }

ALIdouble Entry::valueDisplacementByFitting (  )  const [inline]

Definition at line 62 of file Entry.h.

References valueDisplacementByFitting_.

Referenced by Fit::dumpEntryAfterFit(), FittedEntry::FittedEntry(), OpticalObject::getEntryCentre(), OpticalObject::getEntryRMangle(), and Fit::getEntryValue().

00062                                               { 
00063     //-    cout << this << " " << name() << " get valueDisplacementByFitting " << theValueDisplacementByFitting << endl;
00064     return valueDisplacementByFitting_; }

virtual ALIdouble Entry::valueInGlobalReferenceFrame (  )  const [inline, virtual]

Reimplemented in EntryLengthAffCentre.

Definition at line 48 of file Entry.h.

References value().

00048 {return value();}; 

ALIdouble Entry::valueOriginalOriginal (  )  const [inline]

Definition at line 55 of file Entry.h.

References valueOriginalOriginal_.

00055 { return valueOriginalOriginal_; }


Friends And Related Function Documentation

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

Definition at line 357 of file Entry.cc.

00358 {
00359 
00360   os << "ENTRY: " << c.name() << " of type: " << c.type() << std::endl
00361      << " value " << c.value_ << " original " << c.valueOriginalOriginal_ << std::endl
00362      << " sigma " << c.sigma_ << " original " << c.sigmaOriginalOriginal_ << std::endl
00363      << " quality " << c.quality_ << " opto " << (c.OptOCurrent_)->name() << std::endl
00364      << " fitpos " << c.fitPos_ << " valueDisplacementByFitting " << c.valueDisplacementByFitting_ << " lastAdditionToValueDisplacementByFitting " << c.lastAdditionToValueDisplacementByFitting_ << std::endl;
00365 
00366   return os;
00367 
00368 }


Member Data Documentation

ALIint Entry::fitPos_ [protected]

Definition at line 107 of file Entry.h.

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

ALIdouble Entry::lastAdditionToValueDisplacementByFitting_ [protected]

Definition at line 110 of file Entry.h.

Referenced by addFittedDisplacementToValue(), lastAdditionToValueDisplacementByFitting(), operator<<(), setLastAdditionToValueDisplacementByFitting(), and substractToHalfFittedDisplacementToValue().

ALIstring Entry::name_ [protected]

Definition at line 99 of file Entry.h.

Referenced by EntryAngleAffAngles::displace(), EntryLengthAffCentre::displace(), EntryLengthAffCentre::displaceOriginal(), EntryAngleAffAngles::displaceOriginal(), EntryAngleAffAngles::displaceOriginalOriginal(), EntryLengthAffCentre::displaceOriginalOriginal(), longName(), name(), setName(), edm::Entry::throwEncodeError(), edm::Entry::throwEntryError(), and edm::Entry::throwValueError().

OpticalObject* Entry::OptOCurrent_ [protected]

Definition at line 106 of file Entry.h.

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

ALIuint Entry::quality_ [protected]

Definition at line 105 of file Entry.h.

Referenced by fillFromInputFileQuality(), fillFromReportOutFileQuality(), fillNull(), operator<<(), quality(), and setQuality().

ALIdouble Entry::sigma_ [protected]

Definition at line 103 of file Entry.h.

Referenced by fillFromInputFileQuality(), fillFromInputFileSigma(), fillFromReportOutFileSigma(), fillNull(), operator<<(), setSigma(), and sigma().

ALIdouble Entry::sigmaOriginalOriginal_ [protected]

Definition at line 104 of file Entry.h.

Referenced by fillFromInputFileQuality(), fillFromInputFileSigma(), fillFromReportOutFileSigma(), fillNull(), operator<<(), and sigmaOriginalOriginal().

ALIstring Entry::type_ [protected]

Definition at line 100 of file Entry.h.

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

ALIdouble Entry::value_ [protected]

Definition at line 101 of file Entry.h.

Referenced by fillFromInputFileValue(), fillFromReportOutFileValue(), fillNull(), operator<<(), setValue(), and value().

ALIdouble Entry::valueDisplacementByFitting_ [protected]

Definition at line 109 of file Entry.h.

Referenced by addFittedDisplacementToValue(), Entry(), operator<<(), resetValueDisplacementByFitting(), and valueDisplacementByFitting().

ALIdouble Entry::valueOriginalOriginal_ [protected]

Definition at line 102 of file Entry.h.

Referenced by fillFromInputFileValue(), fillFromReportOutFileValue(), fillNull(), operator<<(), and valueOriginalOriginal().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:20:24 2009 for CMSSW by  doxygen 1.5.4