ATLAS Offline Software
Loading...
Searching...
No Matches
TgcCalibRawDataProvider.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4#ifndef MUONCALIBSTREAM_TGCCALIBRAWDATAPROVIDER_H
5#define MUONCALIBSTREAM_TGCCALIBRAWDATAPROVIDER_H
6
7#include <stdint.h>
8
9#include <map>
12#include "GaudiKernel/ServiceHandle.h"
13#include "GaudiKernel/ToolHandle.h"
21
27
28class StatusCode;
29
30#include <string>
31
32
34
35 public:
37 TgcCalibRawDataProvider(const std::string &name, ISvcLocator *pSvcLocator);
38
40 virtual StatusCode initialize() override;
41
43 virtual StatusCode execute(const EventContext &ctx) const override;
44
47
48 private:
49
50 //int getRodIdFromSectorId(int tmp_sectorId) const;
51 uint16_t bcTagCnv(uint16_t bcBitMap) const;
52
53 // main decode function (ClaibEvent to TgcRdoContainer)
54 StatusCode decodeImpl(TgcRdoContainer *m_tgcRdoContainer, const LVL2_MUON_CALIBRATION::CalibEvent *event) const ;
55
56
57 ServiceHandle<IMuonCalibStreamDataProviderSvc> m_dataProvider{this,"DataProviderSvc","MuonCalibStreamDataProviderSvc"};
58
59 // /** MuonDetectorManager from the conditions store */
60 SG::ReadCondHandleKey<MuonGM::MuonDetectorManager> m_detectorManagerKey{this, "DetectorManagerKey", "MuonDetectorManager",
61 "Key of input MuonDetectorManager condition data"};
62
63 ServiceHandle<Muon::IMuonIdHelperSvc> m_muonIdHelper{this, "MuonIdHelper", "Muon::MuonIdHelperSvc/MuonIdHelperSvc",
64 "Handle to the MuonIdHelperSvc"};
65
66 // output TgcRdoContainer writeHandle
67 SG::WriteHandleKey<TgcRdoContainer> m_rdoContainerKey{this, "RDOContainer", "TGCRDO" ,"TgcRdoContainer to save"};
68
69};
70#endif
defines an "iterator" over instances of a given type in StoreGateSvc
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.
Handle class for recording to StoreGate.
An algorithm that can be simultaneously executed in multiple threads.
Property holding a SG store/key/clid from which a WriteHandle is made.
TgcCalibRawDataProvider(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
uint16_t bcTagCnv(uint16_t bcBitMap) const
virtual StatusCode initialize() override
Initialize.
virtual StatusCode execute(const EventContext &ctx) const override
Execute.
SG::ReadCondHandleKey< MuonGM::MuonDetectorManager > m_detectorManagerKey
MuonDetectorManager from the conditions store.
~TgcCalibRawDataProvider()=default
Destructur.
ServiceHandle< Muon::IMuonIdHelperSvc > m_muonIdHelper
StatusCode decodeImpl(TgcRdoContainer *m_tgcRdoContainer, const LVL2_MUON_CALIBRATION::CalibEvent *event) const
ServiceHandle< IMuonCalibStreamDataProviderSvc > m_dataProvider
SG::WriteHandleKey< TgcRdoContainer > m_rdoContainerKey