ATLAS Offline Software
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 
9 JetModifierBase::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 //**********************************************************************
asg
Definition: DataHandleTestTool.h:28
DataModel_detail::iterator
(Non-const) Iterator class for DataVector/DataList.
Definition: DVLIterator.h:184
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
JetModifierBase.h
JetModifierBase::modifyJet
virtual int modifyJet(xAOD::Jet &jet) const
Modify a single jet. This is obsolete and set to be removed.
Definition: JetModifierBase.cxx:26
xAOD::Jet_v1
Class describing a jet.
Definition: Jet_v1.h:57
JetModifierBase::modify
virtual StatusCode modify(xAOD::JetContainer &jets) const
Loop over calls to modifyJet.
Definition: JetModifierBase.cxx:19
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
JetModifierBase::JetModifierBase
JetModifierBase(const std::string &myname)
Ctor.
Definition: JetModifierBase.cxx:9
defineDB.jets
list jets
Definition: JetTagCalibration/share/defineDB.py:24