ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Reconstruction
Jet
JetRec
JetRec
JetFromPseudojet.h
Go to the documentation of this file.
1
// JetFromPseudojet.h -*- C++ -*-
2
3
/*
4
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
5
*/
6
7
8
#ifndef JetFromPseudojet_H
9
#define JetFromPseudojet_H
10
11
12
// Tool to construct a jet from a pseudojet. The pseudojet,
13
// kinematics, constituents and selected attributes are added to the jet.
14
15
#include "
AsgTools/AsgTool.h
"
16
#include "
JetInterface/IJetFromPseudojet.h
"
17
#include "fastjet/PseudoJet.hh"
18
#include "
xAODJet/JetContainer.h
"
19
20
class
JetFromPseudojet
21
:
public
asg::AsgTool
,
22
virtual
public
IJetFromPseudojet
{
23
ASG_TOOL_CLASS
(
JetFromPseudojet
,
IJetFromPseudojet
)
24
25
public
:
26
27
// Ctor.
28
JetFromPseudojet
(
const
std::string& name);
29
30
// Initialization.
31
virtual
StatusCode
initialize
()
override
;
32
33
// Construct jet from pseudojet and input type and add to a container.
34
// Return a pointer to the new jet or null for failure.
35
// If pparent is not null, then it is set as the parent and its
36
// configuration properties are copied.
37
virtual
xAOD::Jet
*
add
(
const
fastjet::PseudoJet&,
38
const
PseudoJetContainer
&,
39
xAOD::JetContainer
&,
40
xAOD::JetInput::Type
inputtype)
const override
;
41
42
43
// Construct jet from pseudojet and parent and add to a container.
44
// Return a pointer to the new jet or null for failure.
45
// If pparent is not null, then it is set as the parent and its
46
// configuration properties are copied.
47
virtual
xAOD::Jet
*
add
(
const
fastjet::PseudoJet& pj,
48
const
PseudoJetContainer
&,
49
xAOD::JetContainer
& jets,
50
const
xAOD::Jet
* pparent)
const override
;
51
52
// Dump to log.
53
virtual
void
print
()
const override
;
54
55
56
protected
:
57
58
// Method use by the above add(...) to do most of the work.
59
xAOD::Jet
*
addjet
(
const
fastjet::PseudoJet& pj,
60
const
PseudoJetContainer
&,
61
xAOD::JetContainer
& jets,
62
const
xAOD::Jet
* pparent)
const
;
63
64
// Method to evalaute the EM scale momentum
65
void
buildAndSetEMScaleMom
(
xAOD::Jet
*
jet
,
66
xAOD::JetInput::Type
inputtype)
const
;
67
68
private
:
//data
69
70
// Job options.
71
std::vector<std::string>
m_atts
;
// List of jet attributes.
72
73
bool
m_doArea
;
74
bool
m_doFourVecArea
;
75
76
};
77
78
#endif
ASG_TOOL_CLASS
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Definition
AsgToolMacros.h:68
AsgTool.h
IJetFromPseudojet.h
JetContainer.h
IJetFromPseudojet
IJetFromPseudojet is a dual-use tool interface for a tool that constructs a new ATLAS jet from a fast...
Definition
IJetFromPseudojet.h:24
JetFromPseudojet::print
virtual void print() const override
Print the state of the tool.
Definition
JetFromPseudojet.cxx:252
JetFromPseudojet::m_atts
std::vector< std::string > m_atts
Definition
JetFromPseudojet.h:71
JetFromPseudojet::add
virtual xAOD::Jet * add(const fastjet::PseudoJet &, const PseudoJetContainer &, xAOD::JetContainer &, xAOD::JetInput::Type inputtype) const override
Method to construct an ATLAS jet from a pseudojet, input type and vector of ghost labels.
JetFromPseudojet::JetFromPseudojet
JetFromPseudojet(const std::string &name)
Definition
JetFromPseudojet.cxx:31
JetFromPseudojet::add
virtual xAOD::Jet * add(const fastjet::PseudoJet &pj, const PseudoJetContainer &, xAOD::JetContainer &jets, const xAOD::Jet *pparent) const override
Method to construct an ATLAS jet from a pseudojet and parent jet.
JetFromPseudojet::m_doArea
bool m_doArea
Definition
JetFromPseudojet.h:73
JetFromPseudojet::addjet
xAOD::Jet * addjet(const fastjet::PseudoJet &pj, const PseudoJetContainer &, xAOD::JetContainer &jets, const xAOD::Jet *pparent) const
Definition
JetFromPseudojet.cxx:140
JetFromPseudojet::initialize
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
Definition
JetFromPseudojet.cxx:39
JetFromPseudojet::buildAndSetEMScaleMom
void buildAndSetEMScaleMom(xAOD::Jet *jet, xAOD::JetInput::Type inputtype) const
Definition
JetFromPseudojet.cxx:56
JetFromPseudojet::m_doFourVecArea
bool m_doFourVecArea
Definition
JetFromPseudojet.h:74
PseudoJetContainer
Definition
PseudoJetContainer.h:48
asg::AsgTool
Base class for the dual-use tool implementation classes.
Definition
AsgTool.h:47
jet
Definition
JetCalibTools_PlotJESFactors.cxx:23
xAOD::JetInput::Type
Type
Definition
JetContainerInfo.h:54
xAOD::Jet
Jet_v1 Jet
Definition of the current "jet version".
Definition
Event/xAOD/xAODJet/xAODJet/Jet.h:17
xAOD::JetContainer
JetContainer_v1 JetContainer
Definition of the current "jet container version".
Definition
JetContainer.h:17
Generated on
for ATLAS Offline Software by
1.17.0