11 #include "GaudiKernel/Bootstrap.h"
12 #include "GaudiKernel/ISvcLocator.h"
13 #include "GaudiKernel/IMessageSvc.h"
14 #include "GaudiKernel/MsgStream.h"
15 #include "GaudiKernel/StatusCode.h"
22 : m_dataWord( dataword ) {
30 return ((
m_dataWord >> LVL1::MuCTPIBits::CAND_OVERFLOW_SHIFT) &
31 LVL1::MuCTPIBits::CAND_OVERFLOW_MASK);
38 return ((
m_dataWord >> LVL1::MuCTPIBits::ROI_OVERFLOW_SHIFT) &
39 LVL1::MuCTPIBits::ROI_OVERFLOW_MASK);
50 roi = (
m_dataWord >> LVL1::MuCTPIBits::ROI_SHIFT) & LVL1::MuCTPIBits::ENDCAP_ROI_MASK;
53 roi = (
m_dataWord >> LVL1::MuCTPIBits::ROI_SHIFT) & LVL1::MuCTPIBits::FORWARD_ROI_MASK;
56 roi = (
m_dataWord >> LVL1::MuCTPIBits::ROI_SHIFT) & LVL1::MuCTPIBits::BARREL_ROI_MASK;
74 ol = (
m_dataWord >> LVL1::MuCTPIBits::ENDCAP_OL_SHIFT) & LVL1::MuCTPIBits::ENDCAP_OL_MASK;
80 ol = (
m_dataWord >> LVL1::MuCTPIBits::BARREL_OL_SHIFT) & LVL1::MuCTPIBits::BARREL_OL_MASK;
108 return ((
m_dataWord >> LVL1::MuCTPIBits::CAND_SECTOR_ADDRESS_SHIFT) &
109 LVL1::MuCTPIBits::CAND_SECTOR_ADDRESS_MASK);
118 return ((
getSectorAddress() >> 1) & LVL1::MuCTPIBits::ENDCAP_SECTORID_MASK);
122 return ((
getSectorAddress() >> 1) & LVL1::MuCTPIBits::BARREL_SECTORID_MASK);
130 return ((
getSectorAddress() >> 1) & LVL1::MuCTPIBits::FORWARD_SECTORID_MASK);
146 return ((
m_dataWord >> LVL1::MuCTPIBits::CAND_PT_SHIFT) &
147 LVL1::MuCTPIBits::CAND_PT_MASK);
155 return ((
m_dataWord >> LVL1::MuCTPIBits::CAND_BCID_SHIFT) &
156 LVL1::MuCTPIBits::CAND_BCID_MASK);
164 return ((
m_dataWord >> LVL1::MuCTPIBits::CAND_HIGHEST_PT_SHIFT) &
165 LVL1::MuCTPIBits::CAND_HIGHEST_PT_MASK);
173 return ((
m_dataWord >> LVL1::MuCTPIBits::CAND_SENT_ROI_SHIFT) &
174 LVL1::MuCTPIBits::CAND_SENT_ROI_MASK);
187 return ( (
m_dataWord >> LVL1::MuCTPIBits::CAND_TGC_CHARGE_SIGN_SHIFT ) &
196 return ( (
m_dataWord >> LVL1::MuCTPIBits::CAND_VETO_SHIFT )
206 SmartIF<IMessageSvc>
msgSvc{Gaudi::svcLocator()->service(
"MessageSvc")};
210 MsgStream
log(
msgSvc,
"MuCTPI_DataWord_Decoder" );
224 std::string locString =
"BARREL";
228 std::string isHigh =
"NO";
229 if( candHighestPt ) isHigh =
"YES";
231 std::string sentRoi =
"NO";
232 if( candSentRoi ) sentRoi =
"YES";
234 std::string ofString =
"NO";
235 if( secOf ) ofString =
"YES";
240 std::string olString =
"NO";
241 if( ol ) olString =
"YES";