ATLAS Offline Software
Loading...
Searching...
No Matches
JetModifierBase.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7//**********************************************************************
8
9JetModifierBase::JetModifierBase(const std::string& myname)
10: asg::AsgTool(myname) {
11#ifndef XAOD_STANDALONE
12 // Should we do this here or let the subclasses add this?
13 declareInterface<IJetModifier>(this);
14#endif
15}
16
17//**********************************************************************
18
20 for ( xAOD::JetContainer::iterator ijet=jets.begin(); ijet!=jets.end(); ++ijet) {
21 modifyJet(**ijet);
22 }
23 return StatusCode::SUCCESS;
24}
25
27 ATH_MSG_WARNING("JetModifierBase::modifyJet() is obsolete, does nothing, and should not be used!");
28 return 1;
29}
30//**********************************************************************
#define ATH_MSG_WARNING(x)
DataModel_detail::iterator< DataVector > iterator
Definition DataVector.h:842
JetModifierBase(const std::string &myname)
Ctor.
virtual int modifyJet(xAOD::Jet &jet) const
Modify a single jet. This is obsolete and set to be removed.
virtual StatusCode modify(xAOD::JetContainer &jets) const
Loop over calls to modifyJet.
AsgTool(const std::string &name)
Constructor specifying the tool instance's name.
Definition AsgTool.cxx:58
Jet_v1 Jet
Definition of the current "jet version".
JetContainer_v1 JetContainer
Definition of the current "jet container version".