|
ATLAS Offline Software
|
Go to the documentation of this file.
24 return StatusCode::SUCCESS;
58 unsigned nConnected = 0;
59 std::array<unsigned,2> nEMECIW{0,0};
60 std::array<unsigned,2> nEMECOW{0,0};
61 std::array<unsigned,2> nBarrel{0,0};
62 std::array<unsigned,2> nHEC{0,0};
63 std::array<unsigned,2> nFCAL{0,0};
68 if (!
cabling->isOnlineConnected(chid))
continue;
72 ATH_MSG_ERROR(
"Invalid offline id for online id 0x" << std::hex << chid.get_identifier32().get_compact() << std::dec <<
" " << larOnlineID->
channel_name(chid));
75 std::string subdet=
"Unkown";
76 int posneg=larOnlineID->
pos_neg(chid);
77 if (caloId->
is_em_barrel(
id)) {subdet=
"Barrel"; ++nBarrel[posneg];}
80 if (caloId->
is_hec(
id)) {subdet=
"HEC"; ++nHEC[posneg];}
81 if (caloId->
is_fcal(
id)) {subdet=
"FCAL"; ++nFCAL[posneg];}
83 ATH_MSG_DEBUG(
"Channel 0x" << std::hex << chid.get_identifier32().get_compact() << std::dec <<
" " << larOnlineID->
channel_name(chid)
84 <<
" offline id 0x" << std::hex <<
id.get_identifier32().get_compact() << std::dec <<
" " << subdet);
86 ATH_MSG_ERROR(
"isEMB mismatch online Id 0x" << std::hex << chid.get_identifier32().get_compact() << std::dec <<
" " << larOnlineID->
channel_name(chid)
87 <<
" offline id 0x" << std::hex <<
id.get_identifier32().get_compact() << std::dec <<
" onl "
91 ATH_MSG_ERROR(
"isEMECIW mismatch online Id 0x" << std::hex << chid.get_identifier32().get_compact() << std::dec <<
" " << larOnlineID->
channel_name(chid)
92 <<
" offline id 0x" << std::hex <<
id.get_identifier32().get_compact() << std::dec <<
" onl "
96 ATH_MSG_ERROR(
"isEMECOW mismatch online Id 0x" << std::hex << chid.get_identifier32().get_compact() << std::dec <<
" " << larOnlineID->
channel_name(chid)
97 <<
" offline id 0x" << std::hex <<
id.get_identifier32().get_compact() << std::dec <<
" onl "
101 ATH_MSG_ERROR(
"isEMEC mismatch online Id 0x" << std::hex << chid.get_identifier32().get_compact() << std::dec <<
" " << larOnlineID->
channel_name(chid)
102 <<
" offline id 0x" << std::hex <<
id.get_identifier32().get_compact() << std::dec <<
" onl "
106 ATH_MSG_ERROR(
"isHEC mismatch online Id 0x" << std::hex << chid.get_identifier32().get_compact() << std::dec <<
" " << larOnlineID->
channel_name(chid)
107 <<
" offline id 0x" << std::hex <<
id.get_identifier32().get_compact() << std::dec <<
" onl "
111 ATH_MSG_ERROR(
"isFCAL mismatch online Id 0x" << std::hex << chid.get_identifier32().get_compact() << std::dec <<
" " << larOnlineID->
channel_name(chid)
112 <<
" offline id 0x" << std::hex <<
id.get_identifier32().get_compact() << std::dec <<
" onl "
121 ATH_MSG_INFO(
"checked " << nConnected <<
" super-cell channels.");
123 ATH_MSG_INFO(
"checked " << nConnected <<
" regular channels.");
126 ATH_MSG_INFO(
"Barrel " << nBarrel[0] <<
"/" << nBarrel[1]);
128 ATH_MSG_INFO(
"EMECOW " << nEMECIW[0] <<
"/" << nEMECIW[1]);
130 ATH_MSG_INFO(
"EMECIW " << nEMECOW[0] <<
"/" << nEMECOW[1]);
136 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
bool is_em_endcap_outer(const Identifier id) const
test if the id belongs to the EM Endcap outer wheel
virtual StatusCode execute() final
bool is_em_endcap(const Identifier id) const
test if the id belongs to the EM Endcap
virtual bool isEMECIW(const HWIdentifier id) const =0
const std::string & key() const
Return the StoreGate ID for the referenced object.
bool is_hec(const Identifier id) const
test if the id belongs to the HEC
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
bool isFCALchannel(const HWIdentifier id) const
id_range channel_range() const
Helper class for offline supercell identifiers.
bool is_fcal(const Identifier id) const
test if the id belongs to the FCAL - true also for MiniFCAL
virtual bool isHECchannel(const HWIdentifier id) const =0
::StatusCode StatusCode
StatusCode definition for legacy code.
virtual bool isEMECOW(const HWIdentifier id) const =0
bool is_em_endcap_inner(const Identifier id) const
test if the id belongs to the EM Endcap inner wheel
int pos_neg(const HWIdentifier id) const
Return the side of a hardware cell identifier pos_neg = [0,1] positive-side or negative-side Barrel...
Helper class for offline supercell identifiers.
Helper class for offline cell identifiers.
virtual StatusCode initialize() final
bool is_em_barrel(const Identifier id) const
test if the id belongs to the EM barrel
Helper for the Liquid Argon Calorimeter cell identifiers.
virtual bool isEMECchannel(const HWIdentifier id) const =0
StatusCode initialize(bool used=true)
bool isEMBchannel(const HWIdentifier id) const
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
Gaudi::Property< bool > m_isSC
std::string channel_name(const HWIdentifier id) const
Return a string corresponding to a feedthrough name given an identifier.
Helper base class for offline cell identifiers.