#include <JetGhostThinning.h>
Definition at line 26 of file JetGhostThinning.h.
◆ JetGhostThinning()
| DerivationFramework::JetGhostThinning::JetGhostThinning |
( |
const std::string & |
t, |
|
|
const std::string & |
n, |
|
|
const IInterface * |
p |
|
) |
| |
◆ ~JetGhostThinning()
| DerivationFramework::JetGhostThinning::~JetGhostThinning |
( |
| ) |
|
|
virtualdefault |
◆ doThinning()
| StatusCode DerivationFramework::JetGhostThinning::doThinning |
( |
| ) |
const |
|
overridevirtual |
Definition at line 70 of file JetGhostThinning.cxx.
71 const EventContext &ctx = Gaudi::Hive::currentContext();
75 if (!
jets.isValid()) {
77 return StatusCode::FAILURE;
81 std::vector<const xAOD::Jet*> selectedJets;
85 std::vector<int>
entries = m_parser->evaluateAsVector();
88 return StatusCode::FAILURE;
91 for (
size_t i = 0;
i <
jets->size(); ++
i) {
93 selectedJets.push_back((*
jets)[
i]);
99 selectedJets.push_back(
jet);
103 ATH_MSG_DEBUG(
"Number of selected jets: " << selectedJets.size()
104 <<
" out of " <<
jets->size());
109 if (!ghostContainer.isValid()) {
111 return StatusCode::SUCCESS;
114 size_t nObjects = ghostContainer->size();
115 std::vector<bool>
mask(nObjects,
false);
121 size_t nGhostLinks = 0;
124 for (
const auto*
jet : selectedJets) {
128 if (!ghostAcc.isAvailable(*
jet)) {
134 const std::vector<ElementLink<xAOD::IParticleContainer>>& ghostLinks = ghostAcc(*
jet);
139 for (
const auto& link : ghostLinks) {
140 if (!link.isValid())
continue;
142 int index = link.index();
154 <<
", eta=" << ghostObj->
eta());
161 ATH_MSG_DEBUG(
"Found " << nGhostLinks <<
" ghost links from selected jets");
163 << nKept <<
" out of " << nObjects <<
" objects");
165 ghostContainer.keep(
mask);
167 return StatusCode::SUCCESS;
◆ finalize()
| StatusCode DerivationFramework::JetGhostThinning::finalize |
( |
| ) |
|
|
overridevirtual |
◆ initialize()
| StatusCode DerivationFramework::JetGhostThinning::initialize |
( |
| ) |
|
|
overridevirtual |
Definition at line 23 of file JetGhostThinning.cxx.
29 return StatusCode::FAILURE;
44 return StatusCode::FAILURE;
50 return StatusCode::FAILURE;
61 return StatusCode::SUCCESS;
◆ m_ghostContainerKey
◆ m_ghostContainerName
| StringProperty DerivationFramework::JetGhostThinning::m_ghostContainerName |
|
private |
Initial value:{
this, "GhostContainerName", "", "Name of the ghost object container (e.g., CaloCalFwdTopoTowers)"}
Definition at line 49 of file JetGhostThinning.h.
◆ m_ghostName
| StringProperty DerivationFramework::JetGhostThinning::m_ghostName |
|
private |
Initial value:{
this, "GhostName", "", "Name of the ghost association (e.g., GhostTower)"}
Definition at line 46 of file JetGhostThinning.h.
◆ m_jetSGKey
Initial value:{
this, "JetKey", "", "SG key for jet container"}
Definition at line 40 of file JetGhostThinning.h.
◆ m_selectionString
| StringProperty DerivationFramework::JetGhostThinning::m_selectionString |
|
private |
Initial value:{
this, "SelectionString", "", "Selection string for jets"}
Definition at line 43 of file JetGhostThinning.h.
◆ m_streamName
| StringProperty DerivationFramework::JetGhostThinning::m_streamName |
|
private |
Initial value:{this, "StreamName", "",
"Name of the stream being thinned"}
Definition at line 37 of file JetGhostThinning.h.
The documentation for this class was generated from the following files:
Class providing the definition of the 4-vector interface.
virtual double pt() const =0
The transverse momentum ( ) of the particle.
virtual double eta() const =0
The pseudorapidity ( ) of the particle.