00001 #include "TrigEvent/TrigGTDProvider.h" 00002 TrigGTDProvider::TrigGTDProvider(const unsigned int boardIndex, const unsigned int dataType, const unsigned int timeWindow, const unsigned int GTDProviderTiming, const bool preScale, 00003 const std::map<unsigned int, std::vector<unsigned int> > GTDProviderData, const std::vector<unsigned int> GTDProviderEvtType, 00004 const std::map<unsigned int, std::vector<unsigned int> > Num_One, 00005 const std::map<unsigned int, std::vector<unsigned int> > Num_Zero) 00006 { 00007 m_dataType = dataType; 00008 m_timeWindow = timeWindow; 00009 m_boardIndex = boardIndex; 00010 m_GTDProviderTiming = GTDProviderTiming; 00011 m_preScale = preScale; 00012 m_GTDProviderData = GTDProviderData; 00013 m_GTDProviderEvtType = GTDProviderEvtType; 00014 m_Num_One = Num_One; 00015 m_Num_Zero = Num_Zero; 00016 } 00017 00018 void TrigGTDProvider::setDataType(const unsigned int dataType) { 00019 m_dataType = dataType; 00020 } 00021 00022 void TrigGTDProvider::setTimeWindow(const unsigned int timeWindow) { 00023 m_timeWindow = timeWindow; 00024 } 00025 00026 void TrigGTDProvider::setBoardIndex(const unsigned int boardIndex) { 00027 m_boardIndex = boardIndex; 00028 } 00029 00030 void TrigGTDProvider::setTrigCondList(const std::map<unsigned int, std::vector<unsigned int> > GTDProviderData) { 00031 m_GTDProviderData = GTDProviderData; 00032 } 00033 00034 void TrigGTDProvider::setTrigEvtType(const std::vector<unsigned int> GTDProviderEvtType) { 00035 m_GTDProviderEvtType = GTDProviderEvtType; 00036 } 00037 00038 void TrigGTDProvider::setTrigTiming(const unsigned int GTDProviderTiming) { 00039 m_GTDProviderTiming = GTDProviderTiming; 00040 } 00041 00042 void TrigGTDProvider::setPreScale(const bool preScale) { 00043 m_preScale = preScale; 00044 } 00045 00046 void TrigGTDProvider::setNumOne(const std::map<unsigned int, std::vector<unsigned int> > Num_One) { 00047 m_Num_One = Num_One; 00048 } 00049 00050 void TrigGTDProvider::setNumZero(const std::map<unsigned int, std::vector<unsigned int> > Num_Zero) { 00051 m_Num_Zero = Num_Zero; 00052 } 00053 00054 unsigned int TrigGTDProvider::getDataType() const { 00055 return m_dataType; 00056 } 00057 00058 unsigned int TrigGTDProvider::getTimeWindow() const { 00059 return m_timeWindow; 00060 } 00061 00062 unsigned int TrigGTDProvider::getBoardIndex() const { 00063 return m_boardIndex; 00064 } 00065 00066 const std::map<unsigned int, std::vector<unsigned int> >& TrigGTDProvider::getTrigCondList() const { 00067 return m_GTDProviderData; 00068 } 00069 00070 const std::vector<unsigned int>& TrigGTDProvider::getTrigEvtType() const { 00071 return m_GTDProviderEvtType; 00072 } 00073 00074 unsigned int TrigGTDProvider::getTrigTiming() const { 00075 return m_GTDProviderTiming; 00076 } 00077 00078 bool TrigGTDProvider::getPreScale() const { 00079 return m_preScale; 00080 } 00081 00082 const std::map<unsigned int, std::vector<unsigned int> >& TrigGTDProvider::getNumOne() const { 00083 return m_Num_One; 00084 } 00085 00086 const std::map<unsigned int, std::vector<unsigned int> >& TrigGTDProvider::getNumZero() const { 00087 return m_Num_Zero; 00088 }