ATLAS Offline Software
TCTDecorCheckInTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 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 
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  std::string m_decoratorMethod{};
77  std::string m_jetCollection{};
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:71
TCTDecorCheckInTool::m_trackReadDecorKeyJetLink
SG::ReadDecorHandleKey< xAOD::TrackParticleContainer > m_trackReadDecorKeyJetLink
Definition: TCTDecorCheckInTool.h:67
TCTDecorCheckInTool
Definition: TCTDecorCheckInTool.h:37
TCTDecorCheckInTool::initialize
virtual StatusCode initialize() override
Definition: TCTDecorCheckInTool.cxx:35
TCTDecorCheckInTool::m_trackReadDecorKeyTCTScore
SG::ReadDecorHandleKey< xAOD::TrackParticleContainer > m_trackReadDecorKeyTCTScore
The read key for adding TCT score as decoration to TrackParticle objects.
Definition: TCTDecorCheckInTool.h:65
TCTDecorCheckInTool::m_particlesKey
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_particlesKey
Definition: TCTDecorCheckInTool.h:60
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
InDetTrkInJetType.h
TCTDecorCheckInTool::m_decoratorMethod
std::string m_decoratorMethod
Definition: TCTDecorCheckInTool.h:76
DataHandle.h
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:56
TCTDecorCheckInTool::finalize
virtual StatusCode finalize() override
Definition: TCTDecorCheckInTool.cxx:70
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:73
TCTDecorCheckInTool::~TCTDecorCheckInTool
virtual ~TCTDecorCheckInTool()
Definition: TCTDecorCheckInTool.cxx:30
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:76
TCTDecorCheckInTool::m_jetsKey
SG::ReadHandleKey< xAOD::JetContainer > m_jetsKey
Definition: TCTDecorCheckInTool.h:59
TCTDecorCheckInTool::m_jetCollection
std::string m_jetCollection
Definition: TCTDecorCheckInTool.h:77
TCTDecorCheckInTool::m_verticesKey
SG::ReadHandleKey< xAOD::VertexContainer > m_verticesKey
Definition: TCTDecorCheckInTool.h:61
TrackParticleContainer.h