ATLAS Offline Software
Loading...
Searching...
No Matches
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
17
20
21#include "fastjet/ClusterSequence.hh"
22
23#include <memory>
24#include <vector>
25
26namespace CP {
27
28 class JetReclusteringAlg final : public EL::AnaAlgorithm {
29
30 public:
32 virtual StatusCode initialize() override;
33 virtual StatusCode execute() override;
34
35 private:
37
39 this, "jets", "", "the jet container to use"
40 };
42 this, "jetSelection", "", "the selection on the input jets"
43 };
44
46 this, "smallRjetIndices", "smallRjetIndices_%SYS%", "indices of the small R jets used to build a given RC jet"
47 };
48
50 this, "rcJetEnergy", "e_%SYS%", "energy of the RC jet"
51 };
52
53 // output container
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
Gaudi::Property< float > m_reclusteredJetsRadius
CP::SysWriteDecorHandle< float > m_rcEnergyDecor
std::unique_ptr< fastjet::JetDefinition > m_fastjetClustering
CP::SysReadSelectionHandle m_jetSelection
CP::SysWriteDecorHandle< std::vector< int > > m_smallRjetIndicesDecor
CP::SysListHandle m_systematicsList
CP::SysWriteHandle< xAOD::JetContainer, xAOD::JetAuxContainer > m_outHandle
Gaudi::Property< std::string > m_clusteringAlgorithm
virtual StatusCode execute() override
CP::SysReadHandle< xAOD::JetContainer > m_jetsHandle
std::vector< int > matchRCjets(const std::vector< const xAOD::Jet * > &smallJets, const std::vector< fastjet::PseudoJet > &constituents) const
virtual StatusCode initialize() override
a class managing the property to configure the list of systematics to process
a data handle for reading systematics varied input data
a data handle for reading systematically varied selection properties from objects
a data handle for reading systematics varied input data
a data handle for writing systematics varied input data
the (new) base class for EventLoop algorithms
AnaAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
Select isolated Photons, Electrons and Muons.