CMS 3D CMS Logo

CMSSW_4_4_3_patch1/src/Alignment/CocoaModel/interface/EntryLength.h

Go to the documentation of this file.
00001 //   COCOA class header file
00002 //Id:  EntryLength.h
00003 //CAT: Model
00004 //
00005 //   class for entries that have dimension of length
00006 // 
00007 //   History: v1.0 
00008 //   Pedro Arce
00009 
00010 #ifndef _ENTRYLENGTH_HH
00011 #define _ENTRYLENGTH_HH
00012 
00013 #include "Alignment/CocoaModel/interface/Entry.h"
00014 #include "Alignment/CocoaUtilities/interface/ALIUtils.h"
00015 
00016 
00017 class EntryLength : public Entry
00018 {
00019 public:
00020   //-  EntryLength(){ };
00021   EntryLength( const ALIstring& type ): Entry(type){
00022     // std::cout << "entrylength" << std::endl;
00023     theDimType = ED_length;
00024   };
00025   ~EntryLength(){};
00026 
00027  //----- Return value and sigma dimension factors
00028   virtual ALIdouble ValueDimensionFactor() const{
00029     return ALIUtils::LengthValueDimensionFactor(); 
00030   }
00031   virtual ALIdouble SigmaDimensionFactor() const{
00032     return ALIUtils::LengthSigmaDimensionFactor(); 
00033   }
00034   virtual ALIdouble OutputValueDimensionFactor() const{
00035     return ALIUtils::OutputLengthValueDimensionFactor(); 
00036   }
00037   virtual ALIdouble OutputSigmaDimensionFactor() const{
00038     return ALIUtils::OutputLengthSigmaDimensionFactor(); 
00039   }
00040 
00041   //----- Return starting displacement for derivative
00042   virtual ALIdouble startingDisplacement() {
00043      return _startingDisplacement;
00044   }
00045 
00046  private: 
00047  // static DATA MEMBERS
00048   static ALIdouble _startingDisplacement;
00049 };
00050 
00051 #endif
00052