ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigEmulation
TrigBtagEmulationTool
src
JetManagerTool.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef Jet_Manager_H
6
#define Jet_Manager_H
7
8
#include "
src/TrigBtagEmulationJet.h
"
9
10
#include "
AsgMessaging/AsgMessaging.h
"
11
#include "
AsgTools/AsgTool.h
"
12
#include "
AsgTools/ToolHandle.h
"
13
#include "
AsgTools/PropertyWrapper.h
"
14
#include "
AsgTools/CurrentContext.h
"
15
#include "
AsgDataHandles/ReadHandleKey.h
"
16
17
#include "
xAODJet/JetAttributes.h
"
18
#include "
xAODJet/JetContainer.h
"
19
#include "
xAODJet/JetAuxContainer.h
"
20
#include "
xAODBTagging/BTaggingContainer.h
"
21
#include "
xAODBTagging/BTaggingAuxContainer.h
"
22
#include "
xAODBTagging/BTaggingUtilities.h
"
23
24
#include "
TrigBtagEmulationTool/EmulContext.h
"
25
26
#include "TLorentzVector.h"
27
#include <string>
28
#include <vector>
29
30
namespace
Trig
{
31
32
class
JetManagerTool
:
33
public
asg::AsgTool
{
34
ASG_TOOL_CLASS0
(
JetManagerTool
)
35
public
:
36
JetManagerTool
(
const
std::string& name);
37
virtual
~JetManagerTool
() =
default
;
38
39
virtual
StatusCode
initialize
()
override
;
40
41
StatusCode
retrieveByContainer
(
const
EventContext& ctx,
42
EmulContext
& emulCtx)
const
;
43
44
const
std::string&
jetContainerName
()
const
;
45
const
std::string&
bjetContainerName
()
const
;
46
47
const
std::vector<TrigBtagEmulationJet>&
getJets
(
const
EmulContext
& emulCtx)
const
;
48
const
std::vector<TrigBtagEmulationJet>&
getSortedPreselJets
(
const
EmulContext
& emulCtx)
const
;
49
50
private
:
51
// These are set in the initialize method given JetContainerName
52
SG::ReadHandleKey< xAOD::JetContainer >
m_jetInputKey
{
this
,
"InputJets"
,
""
,
"Input Jet Collection Key, retrieved from reconstructed jets"
};
53
SG::ReadHandleKey< xAOD::JetContainer >
m_bjetInputKey
{
this
,
"InputBJets"
,
""
,
"Input b-Jet Collection Key, retrieved from reconstructed jets"
};
54
SG::ReadHandleKey< xAOD::BTaggingContainer >
m_btagInputKey
{
this
,
"InputBTag"
,
"HLT_xAOD__BTaggingContainer_HLTBjetFex"
,
"Run2 input b-tag Collection Key"
};
55
56
Gaudi::Property<std::string>
m_btagging_link
{
this
,
"BTaggingLink"
,
"btaggingLink"
};
57
Gaudi::Property<std::string>
m_jetcontainer
{
this
,
"JetContainerName"
,
""
,
"Jet Container"
};
58
Gaudi::Property<int>
m_LHCPeriod
{
this
,
"LHCPeriod"
, 3,
"LHC Period Run2 or Run3"
};
59
60
bool
matchedSPLITjet
(
const
xAOD::Jet
*,
const
xAOD::Jet
*)
const
;
61
};
62
63
inline
const
std::string&
JetManagerTool::jetContainerName
()
const
{
return
m_jetInputKey
.key(); }
64
inline
const
std::string&
JetManagerTool::bjetContainerName
()
const
{
return
m_bjetInputKey
.key(); }
65
}
// namespace
66
67
#endif
AsgMessaging.h
ASG_TOOL_CLASS0
#define ASG_TOOL_CLASS0(CLASSNAME)
Definition
AsgToolMacros.h:62
AsgTool.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
CurrentContext.h
BTaggingAuxContainer.h
BTaggingContainer.h
BTaggingUtilities.h
EmulContext.h
JetAttributes.h
Defines enum to access jet attribute and associated particles/objects.
JetAuxContainer.h
JetContainer.h
PropertyWrapper.h
ToolHandle.h
TrigBtagEmulationJet.h
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
Trig::EmulContext
Definition
EmulContext.h:16
Trig::JetManagerTool::~JetManagerTool
virtual ~JetManagerTool()=default
Trig::JetManagerTool::jetContainerName
const std::string & jetContainerName() const
Definition
JetManagerTool.h:63
Trig::JetManagerTool::getSortedPreselJets
const std::vector< TrigBtagEmulationJet > & getSortedPreselJets(const EmulContext &emulCtx) const
Definition
JetManagerTool.cxx:199
Trig::JetManagerTool::bjetContainerName
const std::string & bjetContainerName() const
Definition
JetManagerTool.h:64
Trig::JetManagerTool::m_LHCPeriod
Gaudi::Property< int > m_LHCPeriod
Definition
JetManagerTool.h:58
Trig::JetManagerTool::m_btagInputKey
SG::ReadHandleKey< xAOD::BTaggingContainer > m_btagInputKey
Definition
JetManagerTool.h:54
Trig::JetManagerTool::initialize
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
Definition
JetManagerTool.cxx:16
Trig::JetManagerTool::m_jetInputKey
SG::ReadHandleKey< xAOD::JetContainer > m_jetInputKey
Definition
JetManagerTool.h:52
Trig::JetManagerTool::m_bjetInputKey
SG::ReadHandleKey< xAOD::JetContainer > m_bjetInputKey
Definition
JetManagerTool.h:53
Trig::JetManagerTool::JetManagerTool
JetManagerTool(const std::string &name)
Definition
JetManagerTool.cxx:12
Trig::JetManagerTool::matchedSPLITjet
bool matchedSPLITjet(const xAOD::Jet *, const xAOD::Jet *) const
Definition
JetManagerTool.cxx:204
Trig::JetManagerTool::getJets
const std::vector< TrigBtagEmulationJet > & getJets(const EmulContext &emulCtx) const
Definition
JetManagerTool.cxx:195
Trig::JetManagerTool::m_jetcontainer
Gaudi::Property< std::string > m_jetcontainer
Definition
JetManagerTool.h:57
Trig::JetManagerTool::m_btagging_link
Gaudi::Property< std::string > m_btagging_link
Definition
JetManagerTool.h:56
Trig::JetManagerTool::retrieveByContainer
StatusCode retrieveByContainer(const EventContext &ctx, EmulContext &emulCtx) const
Definition
JetManagerTool.cxx:32
asg::AsgTool
Base class for the dual-use tool implementation classes.
Definition
AsgTool.h:47
Trig
The common trigger namespace for trigger analysis tools.
Definition
LArCellMonAlg.h:33
xAOD::Jet
Jet_v1 Jet
Definition of the current "jet version".
Definition
Event/xAOD/xAODJet/xAODJet/Jet.h:17
Generated on
for ATLAS Offline Software by
1.17.0