ATLAS Offline Software
Loading...
Searching...
No Matches
CalibratedTracksProvider.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 CALIBRATEDTRACKSPROVIDER_H
6#define CALIBRATEDTRACKSPROVIDER_H
7
8// Gaudi/Athena include(s):
9
11#include "GaudiKernel/ToolHandle.h"
17
18namespace CP {
19
21
23 public:
25 CalibratedTracksProvider(const std::string& name, ISvcLocator* svcLoc);
26
28 virtual StatusCode initialize() override;
30 virtual StatusCode execute() override;
31
32 private:
33 SG::ReadHandleKey<xAOD::EventInfo> m_eventInfo{this, "EventInfoContName", "EventInfo", "event info key"};
35
37 this, "Input", "InDetTrackParticles",
38 " Name of the track particle container to calibrated (Optionally ExtrapolatedMuonTrackParticle)"};
39 SG::WriteHandleKey<xAOD::TrackParticleContainer> m_outputKey{this, "Output", "CalibratedInDetTrackParticles",
40 "Name of the final container written to storegate"};
41
43 ToolHandle<IMuonCalibrationAndSmearingTool> m_tool{this, "Tool", "",
44 "Configured instance of the MuonMomentum and calibration tool"};
45
46 Gaudi::Property<int> m_detType{this, "DetType", 1,
47 "Which kind of track particle container is parsed. Either the Id tracks (2) or the MS tracks(1)"};
48
49 Gaudi::Property<bool> m_useRndNumber{this, "useRndRunNumber", false};
50 SG::ReadDecorHandleKey<xAOD::EventInfo> m_rndNumKey{this, "RandomNumberDecor", m_eventInfo, "RandomRunNumber",
51 "Dependency on the random run number"};
52
53 }; // class
54
55} // namespace CP
56
57#endif //
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:
Gaudi::Property< bool > m_useRndNumber
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfo
ToolHandle< IMuonCalibrationAndSmearingTool > m_tool
Calibration tool handle.
SG::ReadDecorHandleKey< xAOD::EventInfo > m_rndNumKey
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_inputKey
track container
Gaudi::Property< int > m_detType
detector type of track (MS or ID)
virtual StatusCode initialize() override
Function initialising the algorithm.
CalibratedTracksProvider(const std::string &name, ISvcLocator *svcLoc)
Regular Algorithm constructor.
SG::WriteHandleKey< xAOD::TrackParticleContainer > m_outputKey
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.