ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Reconstruction
Jet
JetRec
Root
JetConstitRemover.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
JetRec/JetConstitRemover.h
"
6
7
JetConstitRemover::JetConstitRemover
(
const
std::string& myname):
JetModifierBase
(myname) { }
8
9
int
JetConstitRemover::modifyJet
(
xAOD::Jet
&
jet
)
const
{
10
12
static
const
SG::AuxElement::Accessor< std::vector< ElementLink< xAOD::IParticleContainer > > >
13
constituentAcc(
"constituentLinks"
);
14
static
const
SG::AuxElement::Accessor< std::vector< float> >
15
constituentWeightAcc(
"constituentWeights"
);
16
17
18
if
( constituentAcc.isAvailable(
jet
) ) constituentAcc(
jet
).resize(0);
19
if
( constituentWeightAcc.isAvailable(
jet
) ) constituentWeightAcc(
jet
).resize(0);
20
21
return
0;
22
}
JetConstitRemover.h
JetConstitRemover::JetConstitRemover
JetConstitRemover(const std::string &myname)
Definition
JetConstitRemover.cxx:7
JetConstitRemover::modifyJet
virtual int modifyJet(xAOD::Jet &jet) const
Modify a single jet. This is obsolete and set to be removed.
Definition
JetConstitRemover.cxx:9
JetModifierBase::JetModifierBase
JetModifierBase(const std::string &myname)
Ctor.
Definition
JetModifierBase.cxx:9
jet
Definition
JetCalibTools_PlotJESFactors.cxx:23
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