00001 #ifndef TrigConf_ThresholdMonitor
00002 #define TrigConf_ThresholdMonitor
00003
00004 #include "TrigConfL1Data/L1DataBaseclass.h"
00005
00006 #include <string>
00007 #include <vector>
00008 #include <stdint.h>
00009
00010 namespace TrigConf
00011 {
00012
00013 class ThresholdMonitor : public L1DataBaseclass
00014 {
00015
00016 public:
00017 ThresholdMonitor();
00018 ThresholdMonitor( const ThresholdMonitor& thr);
00019 virtual ~ThresholdMonitor();
00020
00021
00022
00023 int thresholdId() const { return m_ThresholdId; }
00024 int multiplicity() const { return m_Multiplicity; }
00025 int internalCounter() const { return m_InternalCounter; }
00026 int bunchGroupId() const { return m_BunchGroupId; }
00027 std::string counterType() const { return m_CounterType; }
00028 std::string thresholdName() const { return m_ThresholdName; }
00029 uint16_t ctpinSlot() const { return m_CtpinSlot; }
00030 uint16_t ctpinConnector() const { return m_CtpinConnector; }
00031 int thresholdStartBit() const { return m_ThresholdStartBit; }
00032 int thresholdEndBit() const { return m_ThresholdEndBit; }
00033 bool thresholdActive() const { return m_ThresholdActive; }
00034
00035
00036 void setThresholdId( const int& id) { m_ThresholdId = id; }
00037 void setMultiplicity( const int& multiplicity) { m_Multiplicity = multiplicity; }
00038 void setInternalCounter( const int& internalcounter ) { m_InternalCounter = internalcounter; }
00039 void setBunchGroupId( const int& bunchgroupid ) { m_BunchGroupId = bunchgroupid; }
00040 void setCounterType(const std::string& countertype) { m_CounterType = countertype; }
00041 void setThresholdName(const std::string& name) { m_ThresholdName = name; }
00042 void setCtpinSlot(const uint16_t & slot) { m_CtpinSlot = slot; }
00043 void setCtpinConnector(const uint16_t & con) { m_CtpinConnector = con; }
00044 void setThresholdStartBit( const int& bit) { m_ThresholdStartBit = bit; }
00045 void setThresholdEndBit( const int& bit) { m_ThresholdEndBit = bit; }
00046 void setThresholdActive( const bool& active) { m_ThresholdActive = active; }
00047
00048 virtual void print(const std::string& indent="", unsigned int detail=1) const;
00049 virtual void writeXML(std::ostream & xmlfile, int indentLevel=0, int indentWidth=2) const;
00050
00051 protected:
00052 std::string m_CounterType {""};
00053 std::string m_ThresholdName {""};
00054 uint16_t m_CtpinSlot {0};
00055 uint16_t m_CtpinConnector {0};
00056 int m_ThresholdId {0};
00057 int m_BunchGroupId {0};
00058 int m_Multiplicity {0};
00059 int m_InternalCounter {0};
00060 int m_ThresholdStartBit {0};
00061 int m_ThresholdEndBit {0};
00062 bool m_ThresholdActive {false};
00063 };
00064 }
00065
00066 #endif
00067