00001 //-------------------------------------------------------------------------- 00002 // File and Version Information: 00003 // $Id: Constants.h,v 1.7 2010/07/19 08:51:07 zhangy Exp $ 00004 // 00005 // Description: 00006 // The Constants class contains various constant values as 00007 // static members in MdcPatRec package. 00008 // 00009 // 00010 // Environment: 00011 // Software developed for the BESIII Detector at the BEPCII. 00012 // 00013 // Author List: 00014 // Zhang Yao 00015 // 00016 // Copyright Information: 00017 // Copyright (C) 2006 00018 // 00019 // History: 00020 // Migration for BESIII MDC 00021 // 00022 //------------------------------------------------------------------------ 00023 00024 #ifndef CONSTANTS_HH 00025 #define CONSTANTS_HH 00026 00027 //----------------- 00028 // Headers -- 00029 //----------------- 00030 00031 class Constants { 00032 00033 public: 00034 00035 // Initialization of these is done in the .cc file. Although this 00036 // could be done here, it is not supported by the DEC C++ compiler 00037 // and is a recent change to the language reference. 00038 static const double pi; 00039 static const double twoPi; 00040 static const double halfPi; 00041 static const double radToDegrees; 00042 00043 static const double c; 00044 00045 // small value 00046 static const double epsilon; 00047 00048 // pulse propagation velocity in cm/nsec 00049 static const double vpropInner;//cm/nsec 00050 static const double vpropOuter;//cm/nsec 00051 00052 // for global wire no. calc. 00053 static const int nSuperLayer; 00054 static const int nWireBeforeLayer[43]; 00055 static const int maxCell[43]; 00056 static const int viewOfsLayer[11]; 00057 00059 static const double firstStLayerRadius; 00060 static const double maxMdcRadius; 00061 static const double maxMdcZLen; 00062 00063 }; 00064 00065 #endif 00066