|
ATLAS Offline Software
|
Go to the documentation of this file.
21 return StatusCode::SUCCESS;
25 const EventContext& ctx = Gaudi::Hive::currentContext();
29 if (!detectorMgr.isValid()){
31 return StatusCode::FAILURE;
37 return StatusCode::FAILURE;
40 unsigned int n_elements{0}, n_success{0};
55 for (
bool measPhi : {
true,
false}) {
71 if (!
cabling->convert(chanId, cabl_data,
false)){
73 return StatusCode::FAILURE;
76 if (!
cabling->getOnlineId(cabl_data, msgStream())){
77 return StatusCode::FAILURE;
79 ATH_MSG_DEBUG(
"Successfully converted offline -> online "<<cabl_data);
82 onl_data.NrpcCablingOnlineID::operator=(cabl_data);
84 if (!
cabling->getOfflineId(onl_data, msgStream())) {
85 return StatusCode::FAILURE;
87 if (onl_data != cabl_data){
89 std::endl<<
" -- started with "<<cabl_data<<std::endl<<
90 " -- got back: "<<onl_data);
94 if (!
cabling->convert(onl_data, backChanId,
true)){
95 ATH_MSG_FATAL(
"Failed to translate back the cabling object"<<onl_data<<
" to an Identifier");
96 return StatusCode::FAILURE;
98 if (backChanId != chanId) {
103 n_success += (!failure);
104 if (failure)
return StatusCode::FAILURE;
109 ATH_MSG_INFO( n_success<<
" out of "<<n_elements<<
" channels were successfully validated.");
110 return n_success == n_elements ? StatusCode::SUCCESS : StatusCode::FAILURE;
const_id_iterator detectorElement_begin() const
Iterators over full set of ids.
virtual StatusCode execute() override
Identifier elementID(int stationName, int stationEta, int stationPhi, int doubletR) const
An RpcReadoutElement corresponds to a single RPC module; therefore typicaly a barrel muon station con...
const_id_iterator detectorElement_end() const
#define ATH_MSG_VERBOSE(x)
Identifier channelID(int stationName, int stationEta, int stationPhi, int doubletR, int doubletZ, int doubletPhi, int gasGap, int measuresPhi, int strip) const
def gap(flags, cells_name, *args, **kw)
RpcCablingTestAlg(const std::string &name, ISvcLocator *pSvcLocator)
::StatusCode StatusCode
StatusCode definition for legacy code.
Cabling information shipped around the Digi <-> Rdo conversions.
int getDoubletPhi() const
return DoubletPhi value for the given readout element, be aware that one RE can contain two DoubletPh...
std::set< int > m_cabStat
SG::ReadCondHandleKey< MuonGM::MuonDetectorManager > m_DetectorManagerKey
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
StatusCode initialize(bool used=true)
virtual int numberOfLayers(bool measphi=true) const override final
number of layers in phi/eta projection, same for eta/phi planes
Identifier identify() const override final
Returns the ATLAS Identifier of the MuonReadOutElement.
SG::ReadCondHandleKey< MuonNRPC_CablingMap > m_cablingKey
int Nstrips(bool measphi) const
returns the number of strips for the phi or eta plane
Gaudi::Property< std::vector< std::string > > m_considStat
int getDoubletZ() const
return DoubletZ value for the given readout element
virtual StatusCode initialize() override