ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
Algorithms
JetAnalysisAlgorithms
JetAnalysisAlgorithms
JetReclusteringAlg.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
7
#ifndef JET_RECLUSTERING_ALG_H
8
#define JET_RECLUSTERING_ALG_H
9
10
// Algorithm includes
11
#include <
AnaAlgorithm/AnaAlgorithm.h
>
12
#include <
AsgTools/PropertyWrapper.h
>
13
#include <
SystematicsHandles/SysReadHandle.h
>
14
#include <
SystematicsHandles/SysWriteHandle.h
>
15
#include <
SelectionHelpers/SysReadSelectionHandle.h
>
16
#include <
SystematicsHandles/SysWriteDecorHandle.h
>
17
18
#include <
xAODJet/JetAuxContainer.h
>
19
#include <
xAODJet/JetContainer.h
>
20
21
#include "fastjet/ClusterSequence.hh"
22
23
#include <memory>
24
#include <vector>
25
26
namespace
CP
{
27
28
class
JetReclusteringAlg
final :
public
EL::AnaAlgorithm
{
29
30
public
:
31
using
EL::AnaAlgorithm::AnaAlgorithm
;
32
virtual
StatusCode
initialize
()
override
;
33
virtual
StatusCode
execute
(
const
EventContext& ctx)
override
;
34
35
private
:
36
CP::SysListHandle
m_systematicsList
{
this
};
37
38
CP::SysReadHandle<xAOD::JetContainer>
m_jetsHandle
{
39
this
,
"jets"
,
""
,
"the jet container to use"
40
};
41
CP::SysReadSelectionHandle
m_jetSelection
{
42
this
,
"jetSelection"
,
""
,
"the selection on the input jets"
43
};
44
45
CP::SysWriteDecorHandle<std::vector<int>
>
m_smallRjetIndicesDecor
{
46
this
,
"smallRjetIndices"
,
"smallRjetIndices_%SYS%"
,
"indices of the small R jets used to build a given RC jet"
47
};
48
49
CP::SysWriteDecorHandle<float>
m_rcEnergyDecor
{
50
this
,
"rcJetEnergy"
,
"e_%SYS%"
,
"energy of the RC jet"
51
};
52
53
// output container
54
CP::SysWriteHandle<xAOD::JetContainer, xAOD::JetAuxContainer>
m_outHandle
{
55
this
,
"reclusteredJets"
,
"reclusteredJets_%SYS%"
,
"reclustered jets collection"
56
};
57
58
// reclustering properties
59
Gaudi::Property<std::string>
m_clusteringAlgorithm
{
60
this
,
"clusteringAlgorithm"
,
"AntiKt"
,
"algorithm to use to recluster the jets"
61
};
62
Gaudi::Property<float>
m_reclusteredJetsRadius
{
63
this
,
"reclusteredJetsRadius"
, 1.0,
"radius parameter for the reclustered jets"
64
};
65
std::unique_ptr<fastjet::JetDefinition>
m_fastjetClustering
;
66
67
private
:
68
std::vector<int>
matchRCjets
(
const
std::vector<const xAOD::Jet*>& smallJets,
const
std::vector<fastjet::PseudoJet>& constituents)
const
;
69
};
70
71
}
// namespace
72
73
#endif
AnaAlgorithm.h
JetAuxContainer.h
JetContainer.h
PropertyWrapper.h
SysReadHandle.h
SysReadSelectionHandle.h
SysWriteDecorHandle.h
SysWriteHandle.h
CP::JetReclusteringAlg
Definition
JetReclusteringAlg.h:28
CP::JetReclusteringAlg::m_reclusteredJetsRadius
Gaudi::Property< float > m_reclusteredJetsRadius
Definition
JetReclusteringAlg.h:62
CP::JetReclusteringAlg::m_rcEnergyDecor
CP::SysWriteDecorHandle< float > m_rcEnergyDecor
Definition
JetReclusteringAlg.h:49
CP::JetReclusteringAlg::m_fastjetClustering
std::unique_ptr< fastjet::JetDefinition > m_fastjetClustering
Definition
JetReclusteringAlg.h:65
CP::JetReclusteringAlg::m_jetSelection
CP::SysReadSelectionHandle m_jetSelection
Definition
JetReclusteringAlg.h:41
CP::JetReclusteringAlg::m_smallRjetIndicesDecor
CP::SysWriteDecorHandle< std::vector< int > > m_smallRjetIndicesDecor
Definition
JetReclusteringAlg.h:45
CP::JetReclusteringAlg::m_systematicsList
CP::SysListHandle m_systematicsList
Definition
JetReclusteringAlg.h:36
CP::JetReclusteringAlg::m_outHandle
CP::SysWriteHandle< xAOD::JetContainer, xAOD::JetAuxContainer > m_outHandle
Definition
JetReclusteringAlg.h:54
CP::JetReclusteringAlg::m_clusteringAlgorithm
Gaudi::Property< std::string > m_clusteringAlgorithm
Definition
JetReclusteringAlg.h:59
CP::JetReclusteringAlg::m_jetsHandle
CP::SysReadHandle< xAOD::JetContainer > m_jetsHandle
Definition
JetReclusteringAlg.h:38
CP::JetReclusteringAlg::matchRCjets
std::vector< int > matchRCjets(const std::vector< const xAOD::Jet * > &smallJets, const std::vector< fastjet::PseudoJet > &constituents) const
Definition
JetReclusteringAlg.cxx:114
CP::JetReclusteringAlg::initialize
virtual StatusCode initialize() override
Definition
JetReclusteringAlg.cxx:15
CP::SysListHandle
a class managing the property to configure the list of systematics to process
Definition
SysListHandle.h:33
CP::SysReadHandle
a data handle for reading systematics varied input data
Definition
SysReadHandle.h:33
CP::SysReadSelectionHandle
a data handle for reading systematically varied selection properties from objects
Definition
SysReadSelectionHandle.h:32
CP::SysWriteDecorHandle
a data handle for reading systematics varied input data
Definition
SysWriteDecorHandle.h:42
CP::SysWriteHandle
a data handle for writing systematics varied input data
Definition
SysWriteHandle.h:34
EL::AnaAlgorithm
the (new) base class for EventLoop algorithms
Definition
AnaAlgorithm.h:74
EL::AnaAlgorithm::AnaAlgorithm
AnaAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
Definition
AnaAlgorithm.cxx:40
EL::AnaAlgorithm::execute
virtual::StatusCode execute()
execute this algorithm
Definition
AnaAlgorithm.cxx:315
CP
Select isolated Photons, Electrons and Muons.
Definition
Control/xAODRootAccess/xAODRootAccess/TEvent.h:27
Generated on
for ATLAS Offline Software by
1.17.0