ATLAS Offline Software
Reconstruction
Jet
JetRec
JetRec
JetConstituentsRetriever.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
// JetConstituentsRetriever.h
6
7
#ifndef JetConstituentsRetriever_H
8
#define JetConstituentsRetriever_H
9
22
23
#include "
AsgTools/AsgTool.h
"
24
#include "
JetInterface/IJetConstituentsRetriever.h
"
25
#include "
JetInterface/IJetPseudojetRetriever.h
"
26
#include "
AsgTools/ToolHandle.h
"
27
28
class
JetConstituentsRetriever
29
:
public
asg::AsgTool
,
30
virtual
public
IJetConstituentsRetriever
{
31
ASG_TOOL_CLASS
(
JetConstituentsRetriever
,
IJetConstituentsRetriever
)
32
33
public
:
34
35
// Ctor.
36
JetConstituentsRetriever
(
const
std::string&
name
);
37
38
// Initialization.
39
StatusCode
initialize
();
40
42
int
constituents
(
const
xAOD::Jet
&
jet
,
PseudoJetVector
& cons,
43
NameList
* pghostlabs =
nullptr
)
const
;
44
45
// Dump to log.
46
void
print
()
const
;
47
48
private
:
49
50
bool
m_usepj
;
51
bool
m_usejetcons
;
52
ToolHandle<IJetPseudojetRetriever>
m_hpjr
;
53
NameList
m_glabs
;
54
double
m_gscale
;
55
56
};
57
58
#endif
JetConstituentsRetriever::print
void print() const
Print the state of the tool.
Definition:
JetConstituentsRetriever.cxx:201
asg::AsgTool
Base class for the dual-use tool implementation classes.
Definition:
AsgTool.h:47
IJetPseudojetRetriever.h
JetConstituentsRetriever::m_usepj
bool m_usepj
Definition:
JetConstituentsRetriever.h:50
IJetConstituentsRetriever::PseudoJetVector
std::vector< fastjet::PseudoJet > PseudoJetVector
Definition:
IJetConstituentsRetriever.h:32
JetConstituentsRetriever::JetConstituentsRetriever
JetConstituentsRetriever(const std::string &name)
Definition:
JetConstituentsRetriever.cxx:26
JetConstituentsRetriever::constituents
int constituents(const xAOD::Jet &jet, PseudoJetVector &cons, NameList *pghostlabs=nullptr) const
Append constituents to the supplied vector.
Definition:
JetConstituentsRetriever.cxx:49
JetConstituentsRetriever::initialize
StatusCode initialize()
Dummy implementation of the initialisation function.
Definition:
JetConstituentsRetriever.cxx:37
jet
Definition:
JetCalibTools_PlotJESFactors.cxx:23
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
JetConstituentsRetriever::m_gscale
double m_gscale
Definition:
JetConstituentsRetriever.h:54
IJetConstituentsRetriever::NameList
std::vector< std::string > NameList
Definition:
IJetConstituentsRetriever.h:33
IJetConstituentsRetriever.h
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:228
JetConstituentsRetriever::m_usejetcons
bool m_usejetcons
Definition:
JetConstituentsRetriever.h:51
xAOD::Jet_v1
Class describing a jet.
Definition:
Jet_v1.h:57
ASG_TOOL_CLASS
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Definition:
AsgToolMacros.h:68
IJetConstituentsRetriever
Definition:
IJetConstituentsRetriever.h:27
JetConstituentsRetriever::m_glabs
NameList m_glabs
Definition:
JetConstituentsRetriever.h:53
ToolHandle.h
AsgTool.h
JetConstituentsRetriever
Definition:
JetConstituentsRetriever.h:30
JetConstituentsRetriever::m_hpjr
ToolHandle< IJetPseudojetRetriever > m_hpjr
Definition:
JetConstituentsRetriever.h:52
Generated on Sun Dec 22 2024 21:12:25 for ATLAS Offline Software by
1.8.18