ATLAS Offline Software
Loading...
Searching...
No Matches
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
13namespace CP {
14
41 template< class T >
43
44 public:
48 typedef typename xAODContainerType::base_value_type xAODObjectType;
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
Return value from object correction CP tools.
Helper base class for "correction tools".
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...
T xAODContainerType
description: the type of xAOD container used
virtual ~CorrectionTool()
effects: standard destructor rationale: virtual destruct for base class
virtual CorrectionCode applyCorrection(xAODObjectType &inputObject)=0
effects: apply the correction and store the output in the object returns: success
xAODContainerType::base_value_type xAODObjectType
description: the type of xAOD object used
CorrectionCode applyContainerCorrection(xAODContainerType &inputContainer)
effects: apply the correction to all the members of the container returns: overall success rationale:...
Select isolated Photons, Electrons and Muons.