ATLAS Offline Software
Loading...
Searching...
No Matches
CalibratedMuonsProvider.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef MUONMMC_CALIBRATEDMUONSPROVIDER_H
6#define MUONMMC_CALIBRATEDMUONSPROVIDER_H
7
16
17namespace CP {
18
20
22 public:
24 CalibratedMuonsProvider(const std::string& name, ISvcLocator* svcLoc);
25
27 virtual StatusCode initialize() override;
29 virtual StatusCode execute() override;
30
31 private:
32 SG::ReadHandleKey<xAOD::EventInfo> m_eventInfo{this, "EventInfoContName", "EventInfo", "event info key"};
34 SG::ReadHandleKey<xAOD::MuonContainer> m_inputKey{this, "Input", "Muons", " Name of the muon container to calibrate"};
35 SG::WriteHandleKey<xAOD::MuonContainer> m_outputKey{this, "Output", "CalibratedMuons",
36 "Name of the final container written to storegate"};
37
39
41 ToolHandle<IMuonCalibrationAndSmearingTool> m_tool{this, "Tool", ""};
42 Gaudi::Property<bool> m_useRndNumber{this, "useRndRunNumber", false};
43 SG::ReadDecorHandleKey<xAOD::EventInfo> m_rndNumKey{this, "RandomNumberDecor", m_eventInfo, "RandomRunNumber",
44 "Dependency on the random run number"};
45
46 }; // class
47
48} // namespace CP
49
50#endif //
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
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.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
virtual StatusCode initialize() override
Function initialising the algorithm.
ToolHandle< IMuonCalibrationAndSmearingTool > m_tool
Muon calibration tool.
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfo
Gaudi::Property< bool > m_useRndNumber
SG::ReadHandleKey< xAOD::MuonContainer > m_inputKey
muon container
CalibratedMuonsProvider(const std::string &name, ISvcLocator *svcLoc)
Regular Algorithm constructor.
SG::WriteHandleKey< xAOD::MuonContainer > m_outputKey
SG::ReadDecorHandleKey< xAOD::EventInfo > m_rndNumKey
SG::WriteDecorHandleKeyArray< xAOD::MuonContainer > m_ptDecorKeys
Additionally declare the two decorations made by MCAST.
virtual StatusCode execute() override
Function executing the algorithm.
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
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.
Select isolated Photons, Electrons and Muons.
DecorHandleKeyArray< WriteDecorHandle< T, S >, WriteDecorHandleKey< T >, Gaudi::DataHandle::Writer > WriteDecorHandleKeyArray