ATLAS Offline Software
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"
21 #include "StoreGate/ReadHandle.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
CTTDecorCheckInTool::m_jetsKey
SG::ReadHandleKey< xAOD::JetContainer > m_jetsKey
Definition: CTTDecorCheckInTool.h:51
ClassifiedTrackTaggerTool.h
CTTDecorCheckInTool::~CTTDecorCheckInTool
virtual ~CTTDecorCheckInTool()=default
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
AthAlgorithm.h
CTTDecorCheckInTool::m_verticesKey
SG::ReadHandleKey< xAOD::VertexContainer > m_verticesKey
Definition: CTTDecorCheckInTool.h:53
CTTDecorCheckInTool
Definition: CTTDecorCheckInTool.h:30
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
CTTDecorCheckInTool::m_classifiedTrackTagger
ToolHandle< Analysis::IClassifiedTrackTaggerTool > m_classifiedTrackTagger
Definition: CTTDecorCheckInTool.h:47
AthAlgorithm
Definition: AthAlgorithm.h:47
CTTDecorCheckInTool::m_jetReadDecorKey
SG::ReadDecorHandleKey< xAOD::JetContainer > m_jetReadDecorKey
Definition: CTTDecorCheckInTool.h:55
CTTDecorCheckInTool::execute
virtual StatusCode execute() override
Definition: CTTDecorCheckInTool.cxx:49
CTTDecorCheckInTool::m_particlesKey
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_particlesKey
Definition: CTTDecorCheckInTool.h:52
CTTDecorCheckInTool::initialize
virtual StatusCode initialize() override
Definition: CTTDecorCheckInTool.cxx:24
CTTDecorCheckInTool::m_jetCollection
std::string m_jetCollection
Definition: CTTDecorCheckInTool.h:48
VertexContainer.h
JetContainer.h
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
ReadDecorHandle.h
Handle class for reading a decoration on an object.
ReadHandle.h
Handle class for reading from StoreGate.
SG::ReadDecorHandleKey
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Definition: StoreGate/StoreGate/ReadDecorHandleKey.h:85
TrackParticleContainer.h
CTTDecorCheckInTool::CTTDecorCheckInTool
CTTDecorCheckInTool(const std::string &type, ISvcLocator *pSvcLocator)
Definition: CTTDecorCheckInTool.cxx:13