ATLAS Offline Software
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"
22 #include "StoreGate/DataHandle.h"
24 
25 #include "xAODJet/JetContainer.h"
28 
30 
31 
32 
33 class 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
TCTDecorCheckInTool::m_jetReadDecorKeyTCTScore
SG::ReadDecorHandleKey< xAOD::JetContainer > m_jetReadDecorKeyTCTScore
The write key for adding TCT score as decoration to Jet objects.
Definition: TCTDecorCheckInTool.h:72
TCTDecorCheckInTool::m_trackReadDecorKeyJetLink
SG::ReadDecorHandleKey< xAOD::TrackParticleContainer > m_trackReadDecorKeyJetLink
Definition: TCTDecorCheckInTool.h:68
TCTDecorCheckInTool
Definition: TCTDecorCheckInTool.h:37
TCTDecorCheckInTool::initialize
virtual StatusCode initialize() override
Definition: TCTDecorCheckInTool.cxx:26
TCTDecorCheckInTool::m_trackReadDecorKeyTCTScore
SG::ReadDecorHandleKey< xAOD::TrackParticleContainer > m_trackReadDecorKeyTCTScore
The read key for adding TCT score as decoration to TrackParticle objects.
Definition: TCTDecorCheckInTool.h:66
TCTDecorCheckInTool::m_particlesKey
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_particlesKey
Definition: TCTDecorCheckInTool.h:61
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
InDetTrkInJetType.h
DataHandle.h
TCTDecorCheckInTool::m_decoratorMethod
StringProperty m_decoratorMethod
Definition: TCTDecorCheckInTool.h:77
AthAlgorithm.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
TCTDecorCheckInTool::m_trackClassificationTool
ToolHandle< InDet::IInDetTrkInJetType > m_trackClassificationTool
Definition: TCTDecorCheckInTool.h:57
TCTDecorCheckInTool::finalize
virtual StatusCode finalize() override
Definition: TCTDecorCheckInTool.cxx:58
AthAlgorithm
Definition: AthAlgorithm.h:47
TCTDecorCheckInTool::TCTDecorCheckInTool
TCTDecorCheckInTool(const std::string &type, ISvcLocator *pSvcLocator)
Definition: TCTDecorCheckInTool.cxx:15
VertexContainer.h
JetContainer.h
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
TCTDecorCheckInTool::m_jetReadDecorKeyTrackLink
SG::ReadDecorHandleKey< xAOD::JetContainer > m_jetReadDecorKeyTrackLink
Definition: TCTDecorCheckInTool.h:74
TCTDecorCheckInTool::~TCTDecorCheckInTool
virtual ~TCTDecorCheckInTool()
Definition: TCTDecorCheckInTool.cxx:21
ReadDecorHandle.h
Handle class for reading a decoration on an object.
SG::ReadDecorHandleKey
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Definition: StoreGate/StoreGate/ReadDecorHandleKey.h:85
TCTDecorCheckInTool::execute
virtual StatusCode execute() override
Definition: TCTDecorCheckInTool.cxx:64
TCTDecorCheckInTool::m_jetsKey
SG::ReadHandleKey< xAOD::JetContainer > m_jetsKey
Definition: TCTDecorCheckInTool.h:60
TCTDecorCheckInTool::m_verticesKey
SG::ReadHandleKey< xAOD::VertexContainer > m_verticesKey
Definition: TCTDecorCheckInTool.h:62
TrackParticleContainer.h