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 }; 00024 ~EntryLength(){}; 00025 00026 //----- Return value and sigma dimension factors 00027 virtual ALIdouble ValueDimensionFactor() const{ 00028 return ALIUtils::LengthValueDimensionFactor(); 00029 } 00030 virtual ALIdouble SigmaDimensionFactor() const{ 00031 return ALIUtils::LengthSigmaDimensionFactor(); 00032 } 00033 virtual ALIdouble OutputValueDimensionFactor() const{ 00034 return ALIUtils::OutputLengthValueDimensionFactor(); 00035 } 00036 virtual ALIdouble OutputSigmaDimensionFactor() const{ 00037 return ALIUtils::OutputLengthSigmaDimensionFactor(); 00038 } 00039 00040 //----- Return starting displacement for derivative 00041 virtual ALIdouble startingDisplacement() { 00042 return _startingDisplacement; 00043 } 00044 00045 private: 00046 // static DATA MEMBERS 00047 static ALIdouble _startingDisplacement; 00048 }; 00049 00050 #endif 00051