ATLAS Offline Software
JetGhostMergingAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 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 
20 #include <xAODJet/JetContainer.h>
22 
30 
31 #include <string>
32 #include <vector>
33 
34 namespace CP
35 {
37  class JetGhostMergingAlg final : public EL::AnaAlgorithm
38  {
40  public:
41  JetGhostMergingAlg (const std::string& name,
42  ISvcLocator* pSvcLocator);
43 
44  public:
45  StatusCode initialize () override;
46 
47  public:
48  StatusCode execute () override;
49 
50  private:
53  this, "JetCollection", "AntiKt4EMTopoJets"
54  };
57  this, "MergedGhostName", "GhostTrackLRTMerged", "name of the output merged ghost container"
58  };
59 
60  private:
62  std::vector<SG::ReadDecorHandleKey<xAOD::JetContainer> > m_ghostTrackKeys;
63 
64  private:
65  Gaudi::Property<std::vector<std::string> > m_inputGhostTrackNames {
66  this, "InputGhostTrackNames", {"GhostTrack","GhostTrackLRT"}
67  };
68 
69  };
70 }
71 
72 #endif // JET_ANALYSIS_ALGORITHMS__JET_GHOST_MERGING_ALG_H
WriteHandle.h
Handle class for recording to StoreGate.
SG::WriteDecorHandleKey
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Definition: StoreGate/StoreGate/WriteDecorHandleKey.h:89
PropertyWrapper.h
CurrentContext.h
CP::JetGhostMergingAlg::m_jetLocation
SG::ReadHandleKey< xAOD::JetContainer > m_jetLocation
the jet collection we run on
Definition: JetGhostMergingAlg.h:52
CP::JetGhostMergingAlg::m_mergedGhostContainer
SG::WriteDecorHandleKey< xAOD::JetContainer > m_mergedGhostContainer
the name of the output ghost collection
Definition: JetGhostMergingAlg.h:56
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
CP
Select isolated Photons, Electrons and Muons.
Definition: Control/xAODRootAccess/xAODRootAccess/TEvent.h:48
CP::JetGhostMergingAlg
an algorithm for combining multiple ghost collections into one
Definition: JetGhostMergingAlg.h:38
ReadDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
AnaAlgorithm.h
CP::JetGhostMergingAlg::JetGhostMergingAlg
JetGhostMergingAlg(const std::string &name, ISvcLocator *pSvcLocator)
the standard constructor
Definition: JetGhostMergingAlg.cxx:17
EL::AnaAlgorithm
the (new) base class for EventLoop algorithms
Definition: AnaAlgorithm.h:73
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
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:62
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
ReadHandle.h
Handle class for reading from StoreGate.
CP::JetGhostMergingAlg::initialize
StatusCode initialize() override
Definition: JetGhostMergingAlg.cxx:24
CP::JetGhostMergingAlg::execute
StatusCode execute() override
Definition: JetGhostMergingAlg.cxx:44
WriteDecorHandleKey.h
JetContainer.h
CP::JetGhostMergingAlg::m_inputGhostTrackNames
Gaudi::Property< std::vector< std::string > > m_inputGhostTrackNames
Definition: JetGhostMergingAlg.h:65