ATLAS Offline Software
PhysicsAnalysis
AnalysisCommon
PATInterfaces
PATInterfaces
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
11
#include "
PATInterfaces/CorrectionCode.h
"
12
13
namespace
CP
{
14
41
template
<
class
T >
42
class
CorrectionTool
{
43
44
public
:
46
typedef
T
xAODContainerType
;
48
typedef
typename
xAODContainerType::base_value_type
xAODObjectType
;
49
52
virtual
~CorrectionTool
() {}
53
56
virtual
CorrectionCode
57
applyCorrection
(
xAODObjectType
& inputObject ) = 0;
58
65
CorrectionCode
66
correctedCopy
(
const
xAODObjectType
& inputObject,
67
xAODObjectType
*& outputObject );
68
77
CorrectionCode
78
applyContainerCorrection
(
xAODContainerType
& inputContainer );
79
80
};
// class CorrectionTool
81
82
}
// namespace CP
83
84
// Include the implementation:
85
#include "
PATInterfaces/CorrectionTool.icc
"
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
Generated on Tue Jul 2 2024 21:12:50 for ATLAS Offline Software by
1.8.18