ATLAS Offline Software
Loading...
Searching...
No Matches
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>
19#include "GaudiKernel/ToolHandle.h"
22
23#include "xAODJet/JetContainer.h"
26
28
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() 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
Handle class for reading a decoration on an object.
Handle class for reading from StoreGate.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
ToolHandle< Analysis::IClassifiedTrackTaggerTool > m_classifiedTrackTagger
virtual StatusCode execute() override
virtual ~CTTDecorCheckInTool()=default
SG::ReadDecorHandleKey< xAOD::JetContainer > m_jetReadDecorKey
virtual StatusCode initialize() override
SG::ReadHandleKey< xAOD::JetContainer > m_jetsKey
CTTDecorCheckInTool(const std::string &type, ISvcLocator *pSvcLocator)
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_particlesKey
SG::ReadHandleKey< xAOD::VertexContainer > m_verticesKey
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.