ATLAS Offline Software
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
}
SG::Accessor
Helper class to provide type-safe access to aux data.
Definition:
Control/AthContainers/AthContainers/Accessor.h:68
JetConstitRemover.h
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
JetConstitRemover::JetConstitRemover
JetConstitRemover(const std::string &myname)
Definition:
JetConstitRemover.cxx:7
jet
Definition:
JetCalibTools_PlotJESFactors.cxx:23
xAOD::Jet_v1
Class describing a jet.
Definition:
Jet_v1.h:57
SG::ConstAccessor< T, AuxAllocator_t< T > >::isAvailable
bool isAvailable(const ELT &e) const
Test to see if this variable exists in the store.
JetModifierBase
Definition:
JetModifierBase.h:22
Generated on Thu Nov 7 2024 21:18:05 for ATLAS Offline Software by
1.8.18