ATLAS Offline Software
Loading...
Searching...
No Matches
TCTDecorCheckInTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4//
5// TCTDecorCheck.h - Description
6//
7/*
8 Test algorithm to check that TrackParticle decorations regarding the TCT are correctly saved
9 Before running TCTDecorCheck the decorations have to be applied through the InDetVKalVxInJetTool/TrackClassificationDecorator algorithm
10
11 Author: Katharina Voss
12 e-mail: katharina.voss@cern.ch
13*/
14#ifndef ANALYSISEXAMPLES_TCTDecorCheckInTool_H
15#define ANALYSISEXAMPLES_TCTDecorCheckInTool_H
16
17#include <vector>
18#include <string>
20//#include "AthenaBaseComps/AthReentrantAlgorithm.h"
21#include "GaudiKernel/ToolHandle.h"
23
24#include "xAODJet/JetContainer.h"
27
29
30
31
32class TLorentzVector;
33
34
36 {
37 public:
38 /* Constructor */
39 TCTDecorCheckInTool(const std::string& type, ISvcLocator* pSvcLocator);
40 /* Destructor */
41 virtual ~TCTDecorCheckInTool();
42
43
44 virtual StatusCode initialize() override;
45 virtual StatusCode execute() override;
46 virtual StatusCode finalize() override;
47
48//------------------------------------------------------------------------------------------------------------------
49// Private data and functions
50//
51
52 private:
53
54 // get handle to TCT Tool
55 ToolHandle<InDet::IInDetTrkInJetType> m_trackClassificationTool
56 {this, "TrackClassificationTool", "InDet::InDetTrkInJetType"};
57
58 // ReadHandle for the jets
59 SG::ReadHandleKey<xAOD::JetContainer> m_jetsKey{this,"JetContainer","AntiKt4EMPFlowJets","ReadHandleKey for Jet Container"};
60 SG::ReadHandleKey<xAOD::TrackParticleContainer> m_particlesKey{this, "trackCollection", "InDetTrackParticles"};
61 SG::ReadHandleKey<xAOD::VertexContainer> m_verticesKey { this, "VertexContainer", "PrimaryVertices"};
62
64 //from https://acode-browser1.usatlas.bnl.gov/lxr/source/athena/Event/xAOD/xAODTrackingCnv/src/TrackParticleCnvAlg.cxx
66 "InDetTrackParticles.TCTScore_AntiKt4EMPFlowJets","ReadDecorHandleKey for adding TCT score to TrackParticles"};
68 "InDetTrackParticles.TCTJetLink_AntiKt4EMPFlowJets","ReadDecorHandleKey for adding JetLink to TrackParticles"};
69
72 "AntiKt4EMPFlowJets.TCTScore","ReadDecorHandleKey for adding TCT score to Jets"};
74 "AntiKt4EMPFlowJets.TCTTrackLink","ReadDecorHandleKey for adding TrackParticleLink to Jets"};
75
76 StringProperty m_decoratorMethod{this, "decoratorMethod", "decorateTrack"};
77
78 };
79
80
81#endif
Handle class for reading a decoration on an object.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
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.
ToolHandle< InDet::IInDetTrkInJetType > m_trackClassificationTool
StringProperty m_decoratorMethod
SG::ReadDecorHandleKey< xAOD::JetContainer > m_jetReadDecorKeyTCTScore
The write key for adding TCT score as decoration to Jet objects.
virtual StatusCode execute() override
SG::ReadHandleKey< xAOD::JetContainer > m_jetsKey
TCTDecorCheckInTool(const std::string &type, ISvcLocator *pSvcLocator)
SG::ReadHandleKey< xAOD::VertexContainer > m_verticesKey
virtual StatusCode finalize() override
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_particlesKey
SG::ReadDecorHandleKey< xAOD::JetContainer > m_jetReadDecorKeyTrackLink
SG::ReadDecorHandleKey< xAOD::TrackParticleContainer > m_trackReadDecorKeyTCTScore
The read key for adding TCT score as decoration to TrackParticle objects.
virtual StatusCode initialize() override
SG::ReadDecorHandleKey< xAOD::TrackParticleContainer > m_trackReadDecorKeyJetLink