ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
Algorithms
JetAnalysisAlgorithms
JetAnalysisAlgorithms
JetGhostMergingAlg.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
// JetGhostMergingAlg
7
//
8
// Ghost merger algorithm merges multiple collections of ghost
9
// containers into one. This is useful for combining standard and
10
// LRT ghost tracks into a single collection to pass to
11
// downstream taggers.
13
15
16
#ifndef JET_ANALYSIS_ALGORITHMS__JET_GHOST_MERGING_ALG_H
17
#define JET_ANALYSIS_ALGORITHMS__JET_GHOST_MERGING_ALG_H
18
19
#include <
AnaAlgorithm/AnaReentrantAlgorithm.h
>
20
#include <
xAODJet/JetContainer.h
>
21
22
#include <
AsgTools/PropertyWrapper.h
>
23
#include <
AsgDataHandles/WriteHandle.h
>
24
#include <
AsgDataHandles/WriteHandleKey.h
>
25
#include <
AsgDataHandles/WriteDecorHandleKey.h
>
26
#include <
AsgDataHandles/ReadHandle.h
>
27
#include <
AsgDataHandles/ReadHandleKey.h
>
28
#include <
AsgDataHandles/ReadDecorHandleKey.h
>
29
30
#include <string>
31
#include <vector>
32
33
namespace
CP
34
{
36
class
JetGhostMergingAlg
final :
public
EL::AnaReentrantAlgorithm
37
{
39
public
:
40
using
EL::AnaReentrantAlgorithm::AnaReentrantAlgorithm
;
41
42
public
:
43
StatusCode
initialize
()
override
;
44
45
public
:
46
StatusCode
execute
(
const
EventContext &ctx)
const override
;
47
48
private
:
50
SG::ReadHandleKey<xAOD::JetContainer>
m_jetLocation
{
51
this
,
"JetCollection"
,
"AntiKt4EMTopoJets"
52
};
53
54
SG::WriteDecorHandleKey< xAOD::JetContainer >
m_mergedGhostContainer
{
55
this
,
"MergedGhostName"
,
m_jetLocation
,
"GhostTrackLRTMerged"
,
"name of the output merged ghost decoration on the JetCollection"
56
};
57
58
private
:
60
std::vector<SG::ReadDecorHandleKey<xAOD::JetContainer>>
m_ghostTrackKeys
;
61
62
private
:
63
Gaudi::Property<std::vector<std::string>>
m_inputGhostTrackNames
{
64
this
,
"InputGhostTrackNames"
, {
"GhostTrack"
,
"GhostTrackLRT"
}
65
};
66
67
};
68
}
69
70
#endif
// JET_ANALYSIS_ALGORITHMS__JET_GHOST_MERGING_ALG_H
AnaReentrantAlgorithm.h
ReadDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
ReadHandle.h
Handle class for reading from StoreGate.
WriteDecorHandleKey.h
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
WriteHandle.h
Handle class for recording to StoreGate.
JetContainer.h
PropertyWrapper.h
CP::JetGhostMergingAlg
an algorithm for combining multiple ghost collections into one
Definition
JetGhostMergingAlg.h:37
CP::JetGhostMergingAlg::m_ghostTrackKeys
std::vector< SG::ReadDecorHandleKey< xAOD::JetContainer > > m_ghostTrackKeys
internal vector to hold the ReadDecorHandles for the difference ghosts
Definition
JetGhostMergingAlg.h:60
CP::JetGhostMergingAlg::m_jetLocation
SG::ReadHandleKey< xAOD::JetContainer > m_jetLocation
the jet collection we run on
Definition
JetGhostMergingAlg.h:50
CP::JetGhostMergingAlg::m_inputGhostTrackNames
Gaudi::Property< std::vector< std::string > > m_inputGhostTrackNames
Definition
JetGhostMergingAlg.h:63
CP::JetGhostMergingAlg::m_mergedGhostContainer
SG::WriteDecorHandleKey< xAOD::JetContainer > m_mergedGhostContainer
the name of the output ghost collection
Definition
JetGhostMergingAlg.h:54
CP::JetGhostMergingAlg::initialize
StatusCode initialize() override
Definition
JetGhostMergingAlg.cxx:17
CP::JetGhostMergingAlg::execute
StatusCode execute(const EventContext &ctx) const override
Definition
JetGhostMergingAlg.cxx:36
EL::AnaReentrantAlgorithm
the base class for EventLoop reentrant algorithms
Definition
AnaReentrantAlgorithm.h:51
EL::AnaReentrantAlgorithm::AnaReentrantAlgorithm
AnaReentrantAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
Definition
AnaReentrantAlgorithm.cxx:29
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
SG::WriteDecorHandleKey< xAOD::JetContainer >
CP
Select isolated Photons, Electrons and Muons.
Definition
Control/xAODRootAccess/xAODRootAccess/TEvent.h:27
Generated on
for ATLAS Offline Software by
1.17.0