 |
ATLAS Offline Software
|
Go to the documentation of this file.
8 #include "GaudiKernel/PhysicalConstants.h"
32 for (
const std::string& statName :
m_convStat){
35 return StatusCode::SUCCESS;
43 ATH_MSG_FATAL(
"Could not find RpcDigitContainer called " << container.
name() <<
" in store " << container.
store());
44 return StatusCode::FAILURE;
49 return StatusCode::FAILURE;
55 ATH_CHECK(nrpcRdoData.
record(std::make_unique<xAOD::NRPCRDOContainer>(),
56 std::make_unique<xAOD::NRPCRDOAuxContainer>()));
63 ATH_MSG_DEBUG(
"RPC Digit -> Pad loop :: digitCollection at " << rpcCollection);
68 if (
m_idHelperSvc->rpcIdHelper().get_id(moduleHash, moduleId, &rpcContext)) {
69 ATH_MSG_WARNING(
"Failed to translate the "<<moduleHash<<
" to a valid identifier");
75 <<
" is not considered to be a small gap RPC");
80 for (
const RpcDigit* rpcDigit : *rpcCollection) {
89 return StatusCode::FAILURE;
92 if (!
cabling->getOnlineId(translateCache, msgStream())) {
93 ATH_MSG_ERROR(
"Offline to Online Id conversion for NRPC chamber.");
94 return StatusCode::FAILURE;
97 const float rdo_time = rpcDigit->time();
99 const float the_timeoverthr = rpcDigit->ToT();
102 xAOD::NRPCRDO* NrpcRdo = nrpcRdoData->push_back(std::make_unique<xAOD::NRPCRDO>());
107 NrpcRdo->
setBoard(translateCache.board);
108 NrpcRdo->
setChannel(translateCache.channelId);
112 return StatusCode::SUCCESS;
SG::WriteHandleKey< xAOD::NRPCRDOContainer > m_NrpcContainerKey
const std::string & name() const
Return the StoreGate ID for the referenced object.
void setBoardsector(uint16_t Boardsector)
Set the sector of the board within the subdetector.
SG::ReadHandleKey< RpcDigitContainer > m_digitContainerKey
#define ATH_MSG_VERBOSE(x)
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
void setBoard(uint16_t Board)
Set the number of the TDC channel.
void setChannel(uint16_t Channel)
Set the fire channel number.
SG::ReadCondHandleKey< RpcCablingMap > m_cablingKey
void setSubdetector(uint16_t SubDet)
Set the sub detector.
virtual StatusCode initialize() override final
ServiceHandle< IMuonIdHelperSvc > m_idHelperSvc
::StatusCode StatusCode
StatusCode definition for legacy code.
void setBcid(uint32_t Bcid)
Set the bunch crossing identifier.
std::string store() const
Return the name of the store holding the object we are proxying.
Gaudi::Property< std::vector< std::string > > m_convStat
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
Helper struct that is parsed to the cabling map to translate between the offline & online Identifiers...
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
#define ATH_MSG_WARNING(x)
std::unordered_set< int > m_selectedStations
virtual StatusCode execute(const EventContext &ctx) const override final
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
This class saves the "context" of an expanded identifier (ExpandedIdentifier) for compact or hash ver...
void setTime(float Time)
Set the trigger time [ns].
void setTimeoverthr(float Timeoverthr)
Set the time over threshold.