ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
MuonID
MuonIDAnalysis
MuonMomentumCorrections
src
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
10
#include "
AthenaBaseComps/AthAlgorithm.h
"
11
#include "GaudiKernel/ToolHandle.h"
12
#include "
MuonAnalysisInterfaces/IMuonCalibrationAndSmearingTool.h
"
13
#include "
StoreGate/ReadHandleKey.h
"
14
#include "
StoreGate/WriteHandleKey.h
"
15
#include "
xAODEventInfo/EventInfo.h
"
16
#include "
xAODTracking/TrackParticleContainer.h
"
17
18
namespace
CP
{
19
21
22
class
CalibratedTracksProvider
:
public
AthAlgorithm
{
23
public
:
25
CalibratedTracksProvider
(
const
std::string&
name
, ISvcLocator* svcLoc);
26
28
virtual
StatusCode
initialize
()
override
;
30
virtual
StatusCode
execute
(
const
EventContext& ctx)
override
;
31
32
private
:
33
SG::ReadHandleKey<xAOD::EventInfo>
m_eventInfo
{
this
,
"EventInfoContName"
,
"EventInfo"
,
"event info key"
};
35
36
SG::ReadHandleKey<xAOD::TrackParticleContainer>
m_inputKey
{
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
//
AthAlgorithm.h
TrackParticleContainer.h
IMuonCalibrationAndSmearingTool.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
AthAlgorithm::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthAlgorithm.cxx:10
CP::CalibratedTracksProvider::m_useRndNumber
Gaudi::Property< bool > m_useRndNumber
Definition
CalibratedTracksProvider.h:49
CP::CalibratedTracksProvider::m_eventInfo
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfo
Definition
CalibratedTracksProvider.h:33
CP::CalibratedTracksProvider::m_tool
ToolHandle< IMuonCalibrationAndSmearingTool > m_tool
Calibration tool handle.
Definition
CalibratedTracksProvider.h:43
CP::CalibratedTracksProvider::m_rndNumKey
SG::ReadDecorHandleKey< xAOD::EventInfo > m_rndNumKey
Definition
CalibratedTracksProvider.h:50
CP::CalibratedTracksProvider::m_inputKey
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_inputKey
track container
Definition
CalibratedTracksProvider.h:36
CP::CalibratedTracksProvider::m_detType
Gaudi::Property< int > m_detType
detector type of track (MS or ID)
Definition
CalibratedTracksProvider.h:46
CP::CalibratedTracksProvider::initialize
virtual StatusCode initialize() override
Function initialising the algorithm.
Definition
CalibratedTracksProvider.cxx:15
CP::CalibratedTracksProvider::execute
virtual StatusCode execute(const EventContext &ctx) override
Function executing the algorithm.
Definition
CalibratedTracksProvider.cxx:24
CP::CalibratedTracksProvider::CalibratedTracksProvider
CalibratedTracksProvider(const std::string &name, ISvcLocator *svcLoc)
Regular Algorithm constructor.
Definition
CalibratedTracksProvider.cxx:13
CP::CalibratedTracksProvider::m_outputKey
SG::WriteHandleKey< xAOD::TrackParticleContainer > m_outputKey
Definition
CalibratedTracksProvider.h:39
SG::ReadDecorHandleKey
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Definition
StoreGate/StoreGate/ReadDecorHandleKey.h:86
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition
StoreGate/StoreGate/WriteHandleKey.h:40
CP
Select isolated Photons, Electrons and Muons.
Definition
Control/xAODRootAccess/xAODRootAccess/TEvent.h:27
xAOD::name
name
Definition
TriggerMenuJson_v1.cxx:29
EventInfo.h
Generated on
for ATLAS Offline Software by
1.17.0