20 "1: On->Off, 2: Off->On 4: disconnected, 8: FEB->ROD");
34 return StatusCode::SUCCESS;
41 std::ofstream outfile;
43 outfile.open(
"identifiers.txt");
44 outfile <<
"hash id bec pn FT SL chan id calo pn sampl reg eta phi calib" << std::endl;
50 return StatusCode::FAILURE;
56 return StatusCode::FAILURE;
62 return StatusCode::FAILURE;
67 print(hwid,outfile,cabling,clCont);
68 const Identifier id=cabling->cnvToIdentifier(hwid);
71 std::cout <<
"ON:OFF 0x" << hwid.get_identifier32().get_compact() <<
":0x"<<
id.get_identifier32().get_compact() << std::dec << std::endl;
77 const HWIdentifier hwid=cabling->createSignalChannelID(
id);
79 std::cout <<
"OFF:ON 0x" << std::hex <<
id.get_identifier32().get_compact() <<
":0x"<<hwid.
get_identifier32().
get_compact() << std::dec << std::endl;
85 bool result=cabling->isOnlineConnected(hwid);
87 std::cout <<
"Connected 0x" << std::hex << hwid.get_identifier32().get_compact() <<
":"<<
result << std::dec << std::endl;
93#ifdef LARREADOUTMODULEID_H
99 std::cout <<
"FEB:ROD 0x" << FEBID.get_identifier32().get_compact() <<
":0x" <<
100 RODID << std::dec << std::endl;
107 return StatusCode::SUCCESS;
120 if (cabling->isOnlineConnected(hwid)) {
121 const Identifier id=cabling->cnvToIdentifier(hwid);
122 out << std::hex <<
"0x" <<
id.get_identifier32().get_compact() << std::dec <<
" "
131 out <<
" disconnected ";
133 const std::vector<HWIdentifier>& calibIDs=clCont->
calibSlotLine(hwid);
134 for (
size_t i=0;i<calibIDs.size();++i) {
135 out << std::hex <<
"0x" << calibIDs[i].get_identifier32().get_compact() <<
" ";
137 out << std::dec << std::endl;
#define ATH_CHECK
Evaluate an expression and check for errors.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
const ServiceHandle< StoreGateSvc > & detStore() const
value_type get_compact() const
Get the compact id.
This is a "hash" representation of an Identifier.
Identifier32 get_identifier32() const
Get the 32-bit version Identifier, will be invalid if >32 bits needed.
const CaloCell_ID * m_caloCellId
LArCablingTest(const std::string &name, ISvcLocator *pSvcLocator)
SG::ReadCondHandleKey< LArFebRodMapping > m_RodKey
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
const LArOnlineID * m_onlineId
SG::ReadCondHandleKey< LArCalibLineMapping > m_CLKey
void print(const HWIdentifier &hwid, std::ostream &out, const LArOnOffIdMapping *cabling, const LArCalibLineMapping *clCont)
const std::vector< HWIdentifier > & calibSlotLine(const HWIdentifier id) const
HWIdentifier getReadoutModuleID(const HWIdentifier &id) const