ATLAS Offline Software
TgcCalibRawDataProvider.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 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"
18 #include "StoreGate/WriteHandle.h"
19 #include "StoreGate/DataHandle.h"
21 
27 
28 class StatusCode;
29 
30 #include <string>
31 
32 using namespace LVL2_MUON_CALIBRATION;
33 
35 
36  public:
38  TgcCalibRawDataProvider(const std::string &name, ISvcLocator *pSvcLocator);
39 
41  virtual StatusCode initialize() override;
42 
44  virtual StatusCode execute(const EventContext &ctx) const override;
45 
48 
49  private:
50 
51  //int getRodIdFromSectorId(int tmp_sectorId) const;
52  uint16_t bcTagCnv(uint16_t bcBitMap) const;
53 
54  // main decode function (ClaibEvent to TgcRdoContainer)
55  StatusCode decodeImpl(TgcRdoContainer *m_tgcRdoContainer, const CalibEvent *event) const ;
56 
57 
58  ServiceHandle<IMuonCalibStreamDataProviderSvc> m_dataProvider{this,"DataProviderSvc","MuonCalibStreamDataProviderSvc"};
59 
60  // /** MuonDetectorManager from the conditions store */
61  SG::ReadCondHandleKey<MuonGM::MuonDetectorManager> m_detectorManagerKey{this, "DetectorManagerKey", "MuonDetectorManager",
62  "Key of input MuonDetectorManager condition data"};
63 
64  ServiceHandle<Muon::IMuonIdHelperSvc> m_muonIdHelper{this, "MuonIdHelper", "Muon::MuonIdHelperSvc/MuonIdHelperSvc",
65  "Handle to the MuonIdHelperSvc"};
66 
67  // output TgcRdoContainer writeHandle
68  SG::WriteHandleKey<TgcRdoContainer> m_rdoContainerKey{this, "RDOContainer", "TGCRDO" ,"TgcRdoContainer to save"};
69 
70 };
71 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
LVL2_MUON_CALIBRATION
Definition: MuCalStreamerTool.h:37
IMuonCalibStreamDataProviderSvc.h
initialize
void initialize()
Definition: run_EoverP.cxx:894
WriteCondHandleKey.h
MuonPrepDataContainer.h
DataHandle.h
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
LArG4FSStartPointFilterLegacy.execute
execute
Definition: LArG4FSStartPointFilterLegacy.py:20
WriteHandle.h
Handle class for recording to StoreGate.
SG::WriteHandleKey< TgcRdoContainer >
xAOD::uint16_t
setWord1 uint16_t
Definition: eFexEMRoI_v1.cxx:88
event
POOL::TEvent event(POOL::TEvent::kClassAccess)
TgcRdoContainer
Definition: TgcRdoContainer.h:25
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
TgcRdoContainer.h
TgcCalibRawDataProvider::~TgcCalibRawDataProvider
~TgcCalibRawDataProvider()=default
Destructur.
ReadCondHandleKey.h
AthReentrantAlgorithm.h
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
MuonDetectorManager.h
EventInfo.h
SG::ReadCondHandleKey< MuonGM::MuonDetectorManager >
TgcCalibRawDataProvider
Definition: TgcCalibRawDataProvider.h:34
AthMessaging.h
IMuonIdHelperSvc.h
ServiceHandle< Muon::IMuonIdHelperSvc >