ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
JetTagging
JetTagTools
JetTagTools
CTTDecorCheckInTool.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
//
5
// CTTDecorCheck.h - Description
6
//
7
/*
8
Test algorithm to check that Jet decorations regarding the CTT are correctly saved
9
Before running CTTDecorCheck the decorations have to be applied through the JetTagTools/ClassifiedTrackTaggerDecorator algorithm
10
11
Author: Katharina Voss
12
e-mail: katharina.voss@cern.ch
13
*/
14
#ifndef ANALYSISEXAMPLES_CTTDecorCheckInTool_H
15
#define ANALYSISEXAMPLES_CTTDecorCheckInTool_H
16
17
#include <vector>
18
#include "
AthenaBaseComps/AthAlgorithm.h
"
19
#include "GaudiKernel/ToolHandle.h"
20
#include "
StoreGate/ReadDecorHandle.h
"
21
#include "
StoreGate/ReadHandle.h
"
22
23
#include "
xAODJet/JetContainer.h
"
24
#include "
xAODTracking/VertexContainer.h
"
25
#include "
xAODTracking/TrackParticleContainer.h
"
26
27
#include "
JetTagTools/ClassifiedTrackTaggerTool.h
"
28
29
class
CTTDecorCheckInTool
:
public
AthAlgorithm
30
{
31
public
:
32
/* Constructor */
33
CTTDecorCheckInTool
(
const
std::string&
type
, ISvcLocator* pSvcLocator);
34
/* Destructor */
35
virtual
~CTTDecorCheckInTool
() =
default
;
36
37
virtual
StatusCode
initialize
()
override
;
38
virtual
StatusCode
execute
(
const
EventContext& ctx)
override
;
39
40
//------------------------------------------------------------------------------------------------------------------
41
// Private data and functions
42
//
43
44
private
:
45
46
// get handle to new CTT Tool
47
ToolHandle<Analysis::IClassifiedTrackTaggerTool>
m_classifiedTrackTagger
;
48
std::string
m_jetCollection
;
49
50
// ReadHandle for the jets
51
SG::ReadHandleKey<xAOD::JetContainer>
m_jetsKey
{
this
,
"JetContainer"
,
"AntiKt4EMPFlowJets"
,
"ReadHandleKey for Jet Container"
};
52
SG::ReadHandleKey<xAOD::TrackParticleContainer>
m_particlesKey
{
this
,
"trackCollection"
,
"InDetTrackParticles"
};
53
SG::ReadHandleKey<xAOD::VertexContainer>
m_verticesKey
{
this
,
"VertexContainer"
,
"PrimaryVertices"
};
54
55
SG::ReadDecorHandleKey<xAOD::JetContainer>
m_jetReadDecorKey
{
this
,
"JetDecorKey"
,
"AntiKt4EMPFlowJets.CTTScore"
,
"ReadDecorHandleKey for adding CTT score to Jets"
};
56
57
};
58
59
#endif
AthAlgorithm.h
ClassifiedTrackTaggerTool.h
TrackParticleContainer.h
JetContainer.h
ReadDecorHandle.h
Handle class for reading a decoration on an object.
ReadHandle.h
Handle class for reading from StoreGate.
VertexContainer.h
AthAlgorithm::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthAlgorithm.cxx:10
CTTDecorCheckInTool::m_classifiedTrackTagger
ToolHandle< Analysis::IClassifiedTrackTaggerTool > m_classifiedTrackTagger
Definition
CTTDecorCheckInTool.h:47
CTTDecorCheckInTool::~CTTDecorCheckInTool
virtual ~CTTDecorCheckInTool()=default
CTTDecorCheckInTool::m_jetReadDecorKey
SG::ReadDecorHandleKey< xAOD::JetContainer > m_jetReadDecorKey
Definition
CTTDecorCheckInTool.h:55
CTTDecorCheckInTool::execute
virtual StatusCode execute(const EventContext &ctx) override
Execute method.
Definition
CTTDecorCheckInTool.cxx:49
CTTDecorCheckInTool::initialize
virtual StatusCode initialize() override
Definition
CTTDecorCheckInTool.cxx:24
CTTDecorCheckInTool::m_jetsKey
SG::ReadHandleKey< xAOD::JetContainer > m_jetsKey
Definition
CTTDecorCheckInTool.h:51
CTTDecorCheckInTool::m_jetCollection
std::string m_jetCollection
Definition
CTTDecorCheckInTool.h:48
CTTDecorCheckInTool::CTTDecorCheckInTool
CTTDecorCheckInTool(const std::string &type, ISvcLocator *pSvcLocator)
Definition
CTTDecorCheckInTool.cxx:13
CTTDecorCheckInTool::m_particlesKey
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_particlesKey
Definition
CTTDecorCheckInTool.h:52
CTTDecorCheckInTool::m_verticesKey
SG::ReadHandleKey< xAOD::VertexContainer > m_verticesKey
Definition
CTTDecorCheckInTool.h:53
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
type
Generated on
for ATLAS Offline Software by
1.17.0