ATLAS Offline Software
MdtCalibRawDataProvider.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 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 using namespace LVL2_MUON_CALIBRATION;
38 
39 class StatusCode;
40 
42 
43  public:
45  MdtCalibRawDataProvider(const std::string &name, ISvcLocator *pSvcLocator);
46 
48  virtual StatusCode initialize() override;
49 
51  virtual StatusCode execute(const EventContext &ctx) const override;
52 
55 
56  private:
57 
58 
59  StatusCode decodeImpl(Muon::MdtPrepDataContainer *mdtPrepDataContainer, const CalibEvent *event, const MuonGM::MuonDetectorManager* muDetMgr) const;
60 
61  ServiceHandle<IMuonCalibStreamDataProviderSvc> m_dataProvider{this,"DataProviderSvc","MuonCalibStreamDataProviderSvc"};
62 
63  SG::WriteHandleKey<Muon::MdtPrepDataContainer> m_mdtPrepDataContainerKey{this, "OutputCollection", "MDT_DriftCircles"};
64  // /** MuonDetectorManager from the conditions store */
65  SG::ReadCondHandleKey<MuonGM::MuonDetectorManager> m_detectorManagerKey{this, "DetectorManagerKey", "MuonDetectorManager",
66  "Key of input MuonDetectorManager condition data"};
67  ServiceHandle<Muon::IMuonIdHelperSvc> m_muonIdHelper{this, "MuonIdHelper", "Muon::MuonIdHelperSvc/MuonIdHelperSvc",
68  "Handle to the MuonIdHelperSvc"};
69  Gaudi::Property<int> m_adcCut{this, "ADCCut" , 50, "Minimum threshold on the ADC to contribute to recondition"};
70 };
71 #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
MuonPrepDataCollection_Cache.h
LVL2_MUON_CALIBRATION
Definition: MuCalStreamerTool.h:37
IMuonCalibStreamDataProviderSvc.h
MdtCalibRawDataProvider
Definition: MdtCalibRawDataProvider.h:41
MdtCalibDataContainer.h
initialize
void initialize()
Definition: run_EoverP.cxx:894
IMdtCalibrationTool.h
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
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)
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.
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
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:49
AthMessaging.h
IMuonIdHelperSvc.h
ServiceHandle< Muon::IMuonIdHelperSvc >