00001 #ifndef TrigConf_TIP
00002 #define TrigConf_TIP
00003
00004 #include <string>
00005 #include <stdint.h>
00006 #include "TrigConfL1Data/L1DataBaseclass.h"
00007
00008 namespace TrigConf {
00009 class TIP : public L1DataBaseclass {
00010 public:
00011 TIP();
00012 ~TIP();
00013
00014
00015
00016 const std::string & thresholdName() const {return m_ThresholdName;}
00017 void setThresholdName(const std::string& name) {m_ThresholdName = name;}
00018
00019 uint16_t slot() const {return m_Slot;}
00020 void setSlot(const uint16_t& id) {m_Slot = id;}
00021
00022 uint16_t connector() const {return m_Connector;}
00023 void setConnector(const uint16_t& id) {m_Connector = id;}
00024
00025 uint16_t tipNumber() const {return m_TipNumber;}
00026 void setTipNumber (const uint16_t& tipnumber) {m_TipNumber = tipnumber;}
00027
00028 uint16_t thresholdBit() const {return m_ThresholdBit;}
00029 void setThresholdBit (const uint16_t& num) {m_ThresholdBit = num;}
00030
00031 uint16_t cableBit() const {return m_CableBit;}
00032 void setCableBit (const uint16_t& num) {m_CableBit = num;}
00033
00034 int tmToTtId() const {return m_TmToTtId;}
00035 void setTmToTtId(const int& tmtottid){m_TmToTtId = tmtottid;}
00036
00037 int triggerThresholdId() const {return m_TriggerThresholdId;}
00038 void setTriggerThresholdId(const int& id){m_TriggerThresholdId = id;}
00039
00040 int16_t thresholdMapping() const {return m_ThresholdMapping;}
00041 void setThresholdMapping(const int16_t& m){m_ThresholdMapping = m;}
00042
00043 bool thresholdActive() const {return m_ThresholdActive;}
00044 void setThresholdActive(const bool& a){m_ThresholdActive = a;}
00045
00046 bool isDirect() const {return m_IsDirect;}
00047 void setIsDirect(const bool& a) {m_IsDirect = a;}
00048
00049 int clock() const {return m_Clock;}
00050 void setClock(const int& clock) {m_Clock = clock;}
00051
00052 virtual void print(const std::string& indent="", unsigned int detail=1) const;
00053
00054 protected:
00055 std::string m_ThresholdName;
00056 uint16_t m_Slot;
00057 uint16_t m_Connector;
00058 uint16_t m_TipNumber;
00059 uint16_t m_ThresholdBit;
00060 uint16_t m_CableBit;
00061 int m_TmToTtId;
00062 int m_TriggerThresholdId;
00063 bool m_ThresholdActive;
00064 int16_t m_ThresholdMapping;
00065 bool m_IsDirect;
00066 int m_Clock;
00067 };
00068 }
00069
00070 #endif