ATLAS Offline Software
MdtCalibRawDataProvider.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_MDTCALIBRAWDATAPROVIDER_H
5 #define MUONCALIBSTREAM_MDTCALIBRAWDATAPROVIDER_H
6 
7 #include <stdint.h>
8 #include <string>
9 #include <map>
10 
13 #include "GaudiKernel/Converter.h"
14 #include "GaudiKernel/ServiceHandle.h"
15 #include "GaudiKernel/ToolHandle.h"
20 #include "StoreGate/WriteHandle.h"
21 #include "StoreGate/DataHandle.h"
22 #include "MuCalDecode/CalibData.h"
23 #include "MuCalDecode/CalibEvent.h"
24 #include "MuCalDecode/CalibUti.h"
25 
36 
37 
38 class StatusCode;
39 
41 
42  public:
44  MdtCalibRawDataProvider(const std::string &name, ISvcLocator *pSvcLocator);
45 
47  virtual StatusCode initialize() override;
48 
50  virtual StatusCode execute(const EventContext &ctx) const override;
51 
54 
55  private:
56 
57 
58  StatusCode decodeImpl(Muon::MdtPrepDataContainer *mdtPrepDataContainer, const LVL2_MUON_CALIBRATION::CalibEvent *event, const MuonGM::MuonDetectorManager* muDetMgr) const;
59 
60  ServiceHandle<IMuonCalibStreamDataProviderSvc> m_dataProvider{this,"DataProviderSvc","MuonCalibStreamDataProviderSvc"};
61 
62  SG::WriteHandleKey<Muon::MdtPrepDataContainer> m_mdtPrepDataContainerKey{this, "OutputCollection", "MDT_DriftCircles"};
63  // /** MuonDetectorManager from the conditions store */
64  SG::ReadCondHandleKey<MuonGM::MuonDetectorManager> m_detectorManagerKey{this, "DetectorManagerKey", "MuonDetectorManager",
65  "Key of input MuonDetectorManager condition data"};
66  ServiceHandle<Muon::IMuonIdHelperSvc> m_muonIdHelper{this, "MuonIdHelper", "Muon::MuonIdHelperSvc/MuonIdHelperSvc",
67  "Handle to the MuonIdHelperSvc"};
68  Gaudi::Property<int> m_adcCut{this, "ADCCut" , 50, "Minimum threshold on the ADC to contribute to recondition"};
69 };
70 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
Muon::MuonPrepDataContainer
Template for Muon PRD containers (which are basically collections of MuonPrepDataCollections).
Definition: MuonPrepDataContainer.h:42
MdtCalibRawDataProvider::m_adcCut
Gaudi::Property< int > m_adcCut
Definition: MdtCalibRawDataProvider.h:68
MuonPrepDataCollection_Cache.h
IMuonCalibStreamDataProviderSvc.h
MdtCalibRawDataProvider
Definition: MdtCalibRawDataProvider.h:40
MdtCalibDataContainer.h
IMdtCalibrationTool.h
WriteCondHandleKey.h
MuonPrepDataContainer.h
DataHandle.h
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
MdtPrepDataCollection.h
WriteHandle.h
Handle class for recording to StoreGate.
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition: StoreGate/StoreGate/WriteHandleKey.h:40
event
POOL::TEvent event(POOL::TEvent::kClassAccess)
MdtCalibRawDataProvider::execute
virtual StatusCode execute(const EventContext &ctx) const override
Execute.
Definition: MdtCalibRawDataProvider.cxx:53
MuonMDT_CablingMap.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
MdtCalibRawDataProvider::~MdtCalibRawDataProvider
~MdtCalibRawDataProvider()=default
Destructur.
MdtCalibRawDataProvider::m_dataProvider
ServiceHandle< IMuonCalibStreamDataProviderSvc > m_dataProvider
Definition: MdtCalibRawDataProvider.h:60
MdtCalibRawDataProvider::MdtCalibRawDataProvider
MdtCalibRawDataProvider(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition: MdtCalibRawDataProvider.cxx:37
ReadCondHandleKey.h
AthReentrantAlgorithm.h
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
MdtCalibRawDataProvider::decodeImpl
StatusCode decodeImpl(Muon::MdtPrepDataContainer *mdtPrepDataContainer, const LVL2_MUON_CALIBRATION::CalibEvent *event, const MuonGM::MuonDetectorManager *muDetMgr) const
Definition: MdtCalibRawDataProvider.cxx:83
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
MdtCalibRawDataProvider::m_mdtPrepDataContainerKey
SG::WriteHandleKey< Muon::MdtPrepDataContainer > m_mdtPrepDataContainerKey
Definition: MdtCalibRawDataProvider.h:62
MdtCalibRawDataProvider::m_detectorManagerKey
SG::ReadCondHandleKey< MuonGM::MuonDetectorManager > m_detectorManagerKey
Definition: MdtCalibRawDataProvider.h:64
MuonDetectorManager.h
SG::ReadCondHandleKey< MuonGM::MuonDetectorManager >
MuonGM::MuonDetectorManager
The MuonDetectorManager stores the transient representation of the Muon Spectrometer geometry and pro...
Definition: MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MuonDetectorManager.h:50
AthMessaging.h
MdtCalibRawDataProvider::initialize
virtual StatusCode initialize() override
Initialize.
Definition: MdtCalibRawDataProvider.cxx:40
MdtCalibRawDataProvider::m_muonIdHelper
ServiceHandle< Muon::IMuonIdHelperSvc > m_muonIdHelper
Definition: MdtCalibRawDataProvider.h:66
IMuonIdHelperSvc.h
ServiceHandle< IMuonCalibStreamDataProviderSvc >