ATLAS Offline Software
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 
6 
7 JetConstitRemover::JetConstitRemover(const std::string& myname): JetModifierBase(myname) { }
8 
10 
13  constituentAcc( "constituentLinks" );
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