|
ATLAS Offline Software
|
Go to the documentation of this file.
8 #include "GaudiKernel/PhysicalConstants.h"
38 for (
const std::string& statName :
m_convStat){
41 return StatusCode::SUCCESS;
49 ATH_MSG_FATAL(
"Could not find RpcDigitContainer called " << container.
name() <<
" in store " << container.
store());
50 return StatusCode::FAILURE;
53 if (!readHandle_Cabling.
isValid()) {
55 return StatusCode::FAILURE;
62 ATH_CHECK(nrpcRdoData.
record(std::make_unique<xAOD::NRPCRDOContainer>(),
63 std::make_unique<xAOD::NRPCRDOAuxContainer>()));
70 ATH_MSG_DEBUG(
"RPC Digit -> Pad loop :: digitCollection at " << rpcCollection);
75 if (
m_idHelperSvc->rpcIdHelper().get_id(moduleHash, moduleId, &rpcContext)) {
76 ATH_MSG_WARNING(
"Failed to translate the "<<moduleHash<<
" to a valid identifier");
82 <<
" is not considered to be a small gap RPC");
87 for (
const RpcDigit* rpcDigit : *rpcCollection) {
96 return StatusCode::FAILURE;
101 ATH_MSG_ERROR(
"Offline to Online Id conversion for NRPC chamber.");
102 return StatusCode::FAILURE;
105 const float rdo_time = rpcDigit->time();
107 const float the_timeoverthr = rpcDigit->ToT();
120 return StatusCode::SUCCESS;
void setTdcsector(uint16_t Tdcsector)
Set the sector of the tdc within the subdetector.
NrpcDigitToNrpcRDO(const std::string &name, ISvcLocator *pSvcLocator)
SG::WriteHandleKey< xAOD::NRPCRDOContainer > m_NrpcContainerKey
const std::string & name() const
Return the StoreGate ID for the referenced object.
Gaudi::Property< std::vector< std::string > > m_convStat
#define ATH_MSG_VERBOSE(x)
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
bool getOnlineId(NrpcCablingData &cabling_data, MsgStream &log) const
return the online id given the offline id
An algorithm that can be simultaneously executed in multiple threads.
void setChannel(uint16_t Channel)
Set the fire channel number.
SG::ReadHandleKey< RpcDigitContainer > m_digitContainerKey
void setSubdetector(uint16_t SubDet)
Set the sub detector.
::StatusCode StatusCode
StatusCode definition for legacy code.
Cabling information shipped around the Digi <-> Rdo conversions.
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.
SG::ReadCondHandleKey< MuonNRPC_CablingMap > m_cablingKey
void setTdc(uint16_t Tdc)
Set the number of the TDC channel.
virtual StatusCode execute(const EventContext &ctx) const override final
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
std::set< int > m_selectedStations
virtual bool isValid() override final
Can the handle be successfully dereferenced?
value_type push_back(value_type pElem)
Add an element to the end of the collection.
StatusCode initialize(bool used=true)
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
virtual StatusCode initialize() override final
#define ATH_MSG_WARNING(x)
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].
bool convert(const NrpcCablingData &cabling_data, Identifier &id, bool check_valid=true) const
converts the cabling data into an identifier.
void setTimeoverthr(float Timeoverthr)
Set the time over threshold.
const_pointer_type cptr()