9 #include "Identifier/Identifier.h"
15 (
const std::string&
type,
const std::string&
name,
const IInterface*
parent)
20 declareInterface<ITGC_RDO_Decoder>(
this);
30 ATH_MSG_INFO(
"TGCCablingServer not yet configured; postone TGCcabling initialization at first event. " );
33 return StatusCode::SUCCESS;
38 return StatusCode::SUCCESS;
50 ATH_MSG_ERROR(
"ITGCcablingSvc is not available in TgcRDO_Decoder::getDigit()");
54 int offset=0, offsetORed=0;
62 if((slbId%4==3 && bitpos>=77 && bitpos<=84) ||
63 (slbId%4!=3 && bitpos>=77 && bitpos<=111)) {
66 }
else if(sswId>=3 && sswId<=8) {
67 if((slbId==1 && bitpos>=66 && bitpos<=73) ||
68 (slbId==2 && bitpos>=42 && bitpos<=63)) {
71 if((slbId==1 && bitpos>=102 && bitpos<=109) ||
72 (slbId==2 && bitpos>= 78 && bitpos<= 99)) {
75 if((slbId==1 && bitpos>=74 && bitpos<=75) ||
76 (slbId==2 && bitpos>=40 && bitpos<=41)) {
79 if((slbId==1 && bitpos>=110 && bitpos<=111) ||
80 (slbId==2 && bitpos>= 76 && bitpos<= 77)) {
85 int corr = orFlag ? offsetORed :
offset;
89 bool c_found = m_cabling->getOfflineIDfromReadoutID
91 sswId, slbId, bitpos+corr, orFlag);
93 if(!c_found)
return nullptr;
104 ATH_MSG_ERROR(
"ITGCcablingSvc is not available in TgcRDO_Decoder::getOfflineData()");
115 int offset=0, offsetORed=0;
118 if((slbId%4==3 && bitpos>=77 && bitpos<= 84) ||
119 (slbId%4!=3 && bitpos>=77 && bitpos<=111)) {
122 }
else if(sswId>=3 && sswId<=8) {
123 if((slbId==1 && bitpos>=66 && bitpos<=73) ||
124 (slbId==2 && bitpos>=42 && bitpos<=63)) {
127 if((slbId==1 && bitpos>=102 && bitpos<=109) ||
128 (slbId==2 && bitpos>= 78 && bitpos<= 99)) {
131 if((slbId==1 && bitpos>=74 && bitpos<=75) ||
132 (slbId==2 && bitpos>=40 && bitpos<=41)) {
135 if((slbId==1 && bitpos>=110 && bitpos<=111) ||
136 (slbId==2 && bitpos>= 76 && bitpos<= 77)) {
141 int corr = orFlag ? offsetORed :
offset;
144 bool c_found = m_cabling->getOfflineIDfromReadoutID
146 sswId, slbId, bitpos+corr, orFlag);
148 if(!c_found)
return chanId;
150 bctag = rawData->
bcTag();
158 StatusCode sc = service(
"Muon::TGCCablingServerSvc", TgcCabGet);
159 if(!
sc.isSuccess()) {
165 if(!
sc.isSuccess()) {
166 msg(
sc.isFailure() ?
MSG::FATAL : MSG::ERROR) <<
"Could not get ITGCcablingSvc from Server!" <<
endmsg;