00001 //------------------------------------------------- 00002 // 00012 // 00013 //-------------------------------------------------- 00014 #ifndef DT_CONFIG_SECTCOLL_H 00015 #define DT_CONFIG_SECTCOLL_H 00016 00017 //--------------- 00018 // C++ Headers -- 00019 //--------------- 00020 #include<iostream> 00021 00022 //---------------------- 00023 // Base Class Headers -- 00024 //---------------------- 00025 00026 //------------------------------------ 00027 // Collaborating Class Declarations -- 00028 //------------------------------------ 00029 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00030 #include "L1TriggerConfig/DTTPGConfig/interface/DTConfig.h" 00031 #include "boost/cstdint.hpp" 00032 00033 // --------------------- 00034 // -- Class Interface -- 00035 // --------------------- 00036 00037 class DTConfigSectColl : public DTConfig { 00038 00039 public: 00040 00042 static const int NTSTSC=3, NTSPSC=5; 00043 00045 static const int NDTSC=4; 00046 00048 static const int default_csp = 0; 00049 00051 DTConfigSectColl(const edm::ParameterSet& ps); 00052 00054 DTConfigSectColl() {}; 00055 00057 ~DTConfigSectColl(); 00058 00060 inline bool debug() const { return m_debug; } 00061 00063 inline bool SCGetCarryFlag(int istat) const { 00064 if (istat<1 || istat>4){ 00065 std::cout << "DTConfigSectColl::SCGetCarryFlag: station number out of range: istat=" << istat << std::endl; 00066 return 0; 00067 } 00068 return m_scecf[istat-1]; 00069 } 00070 00072 inline int CoarseSync(int istat) const { 00073 00074 if (istat<1 || istat>5){ 00075 std::cout << "DTConfigSectColl::CoarseSync: station number out of range: istat=" 00076 << istat << std::endl; 00077 return 0; 00078 } 00079 return m_sccsp[istat-1]; 00080 00081 } 00082 00084 void print() const ; 00085 00086 private: 00087 00089 void setDefaults(const edm::ParameterSet& ps); 00090 00091 bool m_debug; 00092 bool m_scecf[4]; 00093 int m_sccsp[5]; 00094 }; 00095 00096 #endif