ATLAS Offline Software
Loading...
Searching...
No Matches
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
21
29
30#include <string>
31#include <vector>
32
33namespace CP
34{
37 {
39 public:
41
42 public:
43 StatusCode initialize () override;
44
45 public:
46 StatusCode execute (const EventContext &ctx) const override;
47
48 private:
51 this, "JetCollection", "AntiKt4EMTopoJets"
52 };
53
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
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.
Handle class for reading from StoreGate.
Property holding a SG store/key/clid from which a WriteHandle is made.
Handle class for recording to StoreGate.
an algorithm for combining multiple ghost collections into one
std::vector< SG::ReadDecorHandleKey< xAOD::JetContainer > > m_ghostTrackKeys
internal vector to hold the ReadDecorHandles for the difference ghosts
SG::ReadHandleKey< xAOD::JetContainer > m_jetLocation
the jet collection we run on
Gaudi::Property< std::vector< std::string > > m_inputGhostTrackNames
SG::WriteDecorHandleKey< xAOD::JetContainer > m_mergedGhostContainer
the name of the output ghost collection
StatusCode initialize() override
StatusCode execute(const EventContext &ctx) const override
the base class for EventLoop reentrant algorithms
AnaReentrantAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
Property holding a SG store/key/clid from which a ReadHandle is made.
Select isolated Photons, Electrons and Muons.