ATLAS Offline Software
Loading...
Searching...
No Matches
TCTDecorCheckInTool.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// 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"
24
25#include "xAODJet/JetContainer.h"
28
30
31
32
33class TLorentzVector;
34
35
37 {
38 public:
39 /* Constructor */
40 TCTDecorCheckInTool(const std::string& type, ISvcLocator* pSvcLocator);
41 /* Destructor */
42 virtual ~TCTDecorCheckInTool();
43
44
45 virtual StatusCode initialize() override;
46 virtual StatusCode execute() override;
47 virtual StatusCode finalize() override;
48
49//------------------------------------------------------------------------------------------------------------------
50// Private data and functions
51//
52
53 private:
54
55 // get handle to TCT Tool
56 ToolHandle<InDet::IInDetTrkInJetType> m_trackClassificationTool
57 {this, "TrackClassificationTool", "InDet::InDetTrkInJetType"};
58
59 // ReadHandle for the jets
60 SG::ReadHandleKey<xAOD::JetContainer> m_jetsKey{this,"JetContainer","AntiKt4EMPFlowJets","ReadHandleKey for Jet Container"};
61 SG::ReadHandleKey<xAOD::TrackParticleContainer> m_particlesKey{this, "trackCollection", "InDetTrackParticles"};
62 SG::ReadHandleKey<xAOD::VertexContainer> m_verticesKey { this, "VertexContainer", "PrimaryVertices"};
63
65 //from https://acode-browser1.usatlas.bnl.gov/lxr/source/athena/Event/xAOD/xAODTrackingCnv/src/TrackParticleCnvAlg.cxx
67 "InDetTrackParticles.TCTScore_AntiKt4EMPFlowJets","ReadDecorHandleKey for adding TCT score to TrackParticles"};
69 "InDetTrackParticles.TCTJetLink_AntiKt4EMPFlowJets","ReadDecorHandleKey for adding JetLink to TrackParticles"};
70
73 "AntiKt4EMPFlowJets.TCTScore","ReadDecorHandleKey for adding TCT score to Jets"};
75 "AntiKt4EMPFlowJets.TCTTrackLink","ReadDecorHandleKey for adding TrackParticleLink to Jets"};
76
77 StringProperty m_decoratorMethod{this, "decoratorMethod", "decorateTrack"};
78
79 };
80
81
82#endif
defines an "iterator" over instances of a given type in StoreGateSvc
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