ATLAS Offline Software
CorrectionTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
7 
8 #ifndef PATINTERFACES_CORRECTIONTOOL_H
9 #define PATINTERFACES_CORRECTIONTOOL_H
10 
12 
13 namespace CP {
14 
41  template< class T >
43 
44  public:
46  typedef T xAODContainerType;
49 
52  virtual ~CorrectionTool() {}
53 
56  virtual CorrectionCode
57  applyCorrection( xAODObjectType& inputObject ) = 0;
58 
66  correctedCopy( const xAODObjectType& inputObject,
67  xAODObjectType*& outputObject );
68 
79 
80  }; // class CorrectionTool
81 
82 } // namespace CP
83 
84 // Include the implementation:
86 
87 #endif // PATINTERFACES_CORRECTIONTOOL_H
CP::CorrectionTool::xAODObjectType
xAODContainerType::base_value_type xAODObjectType
description: the type of xAOD object used
Definition: CorrectionTool.h:48
CP::CorrectionTool::xAODContainerType
T xAODContainerType
description: the type of xAOD container used
Definition: CorrectionTool.h:46
CorrectionTool.icc
CP
Select isolated Photons, Electrons and Muons.
Definition: Control/xAODRootAccess/xAODRootAccess/TEvent.h:48
DataVector< xAOD::TrackParticle_v1 >
CP::CorrectionTool
Helper base class for "correction tools".
Definition: CorrectionTool.h:42
CP::CorrectionTool::applyCorrection
virtual CorrectionCode applyCorrection(xAODObjectType &inputObject)=0
effects: apply the correction and store the output in the object returns: success
CP::CorrectionTool::applyContainerCorrection
CorrectionCode applyContainerCorrection(xAODContainerType &inputContainer)
effects: apply the correction to all the members of the container returns: overall success rationale:...
CP::CorrectionTool::correctedCopy
CorrectionCode correctedCopy(const xAODObjectType &inputObject, xAODObjectType *&outputObject)
effects: make a clone of the input object, apply the correction to it and store the output in the obj...
CP::CorrectionCode
Return value from object correction CP tools.
Definition: CorrectionCode.h:31
CP::CorrectionTool::~CorrectionTool
virtual ~CorrectionTool()
effects: standard destructor rationale: virtual destruct for base class
Definition: CorrectionTool.h:52
CorrectionCode.h
xAOD::TrackParticle_v1
Class describing a TrackParticle.
Definition: TrackParticle_v1.h:43