#include <IParticleExtractor.h>
Definition at line 18 of file IParticleExtractor.h.
◆ IParticleExtractor()
◆ ~IParticleExtractor()
IParticleExtractor::~IParticleExtractor |
( |
| ) |
|
|
virtualdefault |
◆ addToJet()
void IParticleExtractor::addToJet |
( |
xAOD::Jet & |
jet, |
|
|
const std::vector< int > & |
indices |
|
) |
| const |
|
overridevirtual |
Implements IConstituentExtractor.
Definition at line 36 of file IParticleExtractor.cxx.
40 std::vector<const xAOD::IParticle*> constituents;
41 constituents.reserve(
indices.size());
57 return sumPt + p->pt();});
60 jet.setAttribute<
float>(
m_label +
"Pt", ptSum);
61 jet.setAttribute<
int>(
m_label+
"Count", constituents.size());
64 for(
const auto *
c: constituents) {
65 jet.addConstituent(
c);
◆ checkIntegrity()
bool IParticleExtractor::checkIntegrity |
( |
| ) |
const |
|
overridevirtual |
◆ clone()
◆ ghostClone()
◆ toString()
std::string IParticleExtractor::toString |
( |
int |
level | ) |
const |
|
overridevirtual |
Implements IConstituentExtractor.
Definition at line 72 of file IParticleExtractor.cxx.
73 std::ostringstream oss{
"", std::ios::ate};
74 oss <<
"IParticleExtractor dump level (" <<
level <<
")"
76 <<
" isGhost: " << std::boolalpha <<
m_isGhost
82 oss <<
"\n IParticle energies\n";
83 std::vector<float> energies;
87 std::back_inserter(energies),
95 oss <<
"\n IParticle addresses\n"
◆ m_debug
bool IParticleExtractor::m_debug {false} |
|
private |
◆ m_iParticles
◆ m_isGhost
bool IParticleExtractor::m_isGhost |
|
private |
◆ m_isTrigger
bool IParticleExtractor::m_isTrigger {false} |
|
private |
◆ m_label
std::string IParticleExtractor::m_label |
|
private |
The documentation for this class was generated from the following files:
Class providing the definition of the 4-vector interface.
IParticleExtractor(const xAOD::IParticleContainer *, const std::string &label="", bool isGhost=false, bool isTrigger=false)
virtual IParticleExtractor * clone() const override
const xAOD::IParticleContainer * m_iParticles