ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Reconstruction
Jet
JetRec
JetRec
JetViewAlg.h
Go to the documentation of this file.
1
// this is a -*- C++ -*- file
2
/*
3
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
4
*/
5
6
17
18
#ifndef JetViewAlg_H
19
#define JetViewAlg_H
20
21
#include "
AnaAlgorithm/AnaReentrantAlgorithm.h
"
22
#include "
AsgDataHandles/ReadHandleKey.h
"
23
#include "
AsgDataHandles/WriteHandleKey.h
"
24
#include "
xAODJet/Jet.h
"
25
#include "
xAODJet/JetContainer.h
"
26
#include "
AthContainers/ConstDataVector.h
"
27
#include "
AsgTools/PropertyWrapper.h
"
28
29
#include "
StoreGate/ShallowCopyDecorDeps.h
"
30
31
class
JetViewAlg
:
public
EL::AnaReentrantAlgorithm
{
32
33
public
:
34
35
// Can't use "using ctor" because of incompatiblity with pyroot in AnalysisBase
36
JetViewAlg
(
const
std::string & n, ISvcLocator* l) :
EL
::
AnaReentrantAlgorithm
(n,l) {}
37
39
StatusCode
initialize
()
override
;
40
StatusCode
execute
(
const
EventContext&)
const override
;
41
StatusCode
finalize
()
override
{
return
StatusCode::SUCCESS;};
42
43
private
:
44
46
bool
selected
(
const
xAOD::Jet
& )
const
;
47
48
private
:
49
50
Gaudi::Property<float>
m_ptmin
{
this
,
"PtMin"
, 0.0,
"Min pT in MeV"
};
51
Gaudi::Property<float>
m_absetamax
{
this
,
"AbsEtaMax"
, 10.0,
"Max absolute eta"
};
52
53
SG::ReadHandleKey<xAOD::JetContainer>
m_input
= {
this
,
"InputContainer"
,
""
,
"The input jet container name"
};
54
SG::WriteHandleKey<xAOD::JetContainer>
m_output
= {
this
,
"OutputContainer"
,
""
,
"The output jet container name"
};
55
56
// Propagate a list of decorations from the owning container to the view, such that
57
// jet moments added by DecorHandles are visible on the view container
58
SG::ShallowCopyDecorDeps<xAOD::JetContainer>
m_decorDeps
{
this
,
"DecorDeps"
, {},
59
"List of decorations to propagate through the view container."
};
60
61
};
62
63
#endif
64
AnaReentrantAlgorithm.h
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.
ConstDataVector.h
DataVector adapter that acts like it holds const pointers.
Jet.h
JetContainer.h
PropertyWrapper.h
ShallowCopyDecorDeps.h
Helper to propagate decoration dependencies to a shallow copy.
EL::AnaReentrantAlgorithm
the base class for EventLoop reentrant algorithms
Definition
AnaReentrantAlgorithm.h:51
EL::AnaReentrantAlgorithm::AnaReentrantAlgorithm
AnaReentrantAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
Definition
AnaReentrantAlgorithm.cxx:29
JetViewAlg::m_input
SG::ReadHandleKey< xAOD::JetContainer > m_input
Definition
JetViewAlg.h:53
JetViewAlg::m_output
SG::WriteHandleKey< xAOD::JetContainer > m_output
Definition
JetViewAlg.h:54
JetViewAlg::initialize
StatusCode initialize() override
Athena algorithm's Hooks.
Definition
JetViewAlg.cxx:16
JetViewAlg::selected
bool selected(const xAOD::Jet &) const
Method to select jets.
Definition
JetViewAlg.cxx:41
JetViewAlg::finalize
StatusCode finalize() override
Definition
JetViewAlg.h:41
JetViewAlg::m_absetamax
Gaudi::Property< float > m_absetamax
Definition
JetViewAlg.h:51
JetViewAlg::execute
StatusCode execute(const EventContext &) const override
Definition
JetViewAlg.cxx:51
JetViewAlg::m_ptmin
Gaudi::Property< float > m_ptmin
Definition
JetViewAlg.h:50
JetViewAlg::m_decorDeps
SG::ShallowCopyDecorDeps< xAOD::JetContainer > m_decorDeps
Definition
JetViewAlg.h:58
JetViewAlg::JetViewAlg
JetViewAlg(const std::string &n, ISvcLocator *l)
Definition
JetViewAlg.h:36
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
SG::ShallowCopyDecorDeps
Helper to propagate decoration dependencies to a shallow copy.
Definition
StoreGate/StoreGate/ShallowCopyDecorDeps.h:75
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition
StoreGate/StoreGate/WriteHandleKey.h:40
EL
This module defines the arguments passed from the BATCH driver to the BATCH worker.
Definition
AsgComponentFactories.h:16
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