|
ATLAS Offline Software
|
Go to the documentation of this file.
6 #include "GaudiKernel/DataObject.h"
7 #include "GaudiKernel/IRegistry.h"
8 #include "MuCalDecode/CalibData.h"
9 #include "MuCalDecode/CalibEvent.h"
10 #include "MuCalDecode/CalibUti.h"
24 #include "GaudiKernel/ServiceHandle.h"
45 return (bcBitMap == 4 ? 1 : (bcBitMap == 2 ? 2 : (bcBitMap == 1 ? 3 : 0)));
65 return StatusCode::SUCCESS;
84 ATH_MSG_DEBUG(
"TGC core decode processed in MT decode (calibration stream event)");
86 return StatusCode::SUCCESS;
94 return StatusCode::SUCCESS;
97 int l1Id =
event->lvl1_id();
99 int subsystemId = (*(
event->tgc())).subsystemId();
100 int rodId = (*(
event->tgc())).rdoId();
103 int idHash = rdoIdHash(rdoId);
105 std::unique_ptr<TgcRdo> newrdo = std::make_unique<TgcRdo>(subsystemId,rodId,
bcId,l1Id);
107 for(
auto const& calib_tgcRdo : (
event->tgc())->data()){
108 for(
auto const& roh : calib_tgcRdo.readoutHit()){
115 std::unique_ptr<TgcRawData> raw = std::make_unique<TgcRawData>(
bcTagCnv(roh.bcBitmap),
127 ATH_MSG_DEBUG(std::hex <<
"TgcRawData READOUT FORMATTED HIT " << std::endl
129 << newrdo->
rodId() <<
" sswId " << roh.ldbId <<
" sbId " << slbId <<
" l1Id " << newrdo->
l1Id()
131 << roh.adj <<
" associate tracklet " << roh.tracklet <<
" bitPos "
132 << roh.channel + 40);
141 return StatusCode::SUCCESS;
Property holding a SG store/key/clid from which a ReadHandle is made.
virtual StatusCode execute(const EventContext &ctx) const override
Execute.
static uint16_t calculateOnlineId(uint16_t subDetectorId, uint16_t rodId)
IDC_WriteHandle getWriteHandle(IdentifierHash hash)
TgcCalibRawDataProvider(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
StatusCode decodeImpl(TgcRdoContainer *m_tgcRdoContainer, const CalibEvent *event) const
const std::string & key() const
Return the StoreGate ID for the referenced object.
SG::WriteHandleKey< TgcRdoContainer > m_rdoContainerKey
An algorithm that can be simultaneously executed in multiple threads.
virtual StatusCode initialize() override
Initialize.
SG::ReadCondHandleKey< MuonGM::MuonDetectorManager > m_detectorManagerKey
uint16_t subDetectorId() const
POOL::TEvent event(POOL::TEvent::kClassAccess)
::StatusCode StatusCode
StatusCode definition for legacy code.
ServiceHandle< IMuonCalibStreamDataProviderSvc > m_dataProvider
ServiceHandle< Muon::IMuonIdHelperSvc > m_muonIdHelper
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Property holding a SG store/key/clid from which a WriteHandle is made.
uint16_t bcId(uint32_t data)
value_type push_back(value_type pElem)
Add an element to the end of the collection.
StatusCode initialize(bool used=true)
StatusCode addOrDelete(std::unique_ptr< T > ptr)
uint16_t bcTagCnv(uint16_t bcBitMap) const