ATLAS Offline Software
Loading...
Searching...
No Matches
IegammaTrkRefitterTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef EGAMMAINTERFACES_IEGAMMATRKREFITTERTOOL_H
6#define EGAMMAINTERFACES_IEGAMMATRKREFITTERTOOL_H
12/********************************************************************
13NAME: IxAODEgammaTrkRefitterTool.h
14PACKAGE: offline/Reconstruction/xAODEgamma/xAODEgammaInterfaces
15CREATED: Jul 2008
16********************************************************************/
17
18#include "GaudiKernel/IAlgTool.h"
19#include "GaudiKernel/EventContext.h"
20
22// Forward declarations
25#include "TrkTrack/Track.h"
26#include <memory>
27
28static const InterfaceID IID_egammaTrkRefitterTool("IegammaTrkRefitterTool", 1, 0);
29
30class IegammaTrkRefitterTool : virtual public IAlgTool
31{
32 public:
34 static const InterfaceID& interfaceID()
35 { return IID_egammaTrkRefitterTool; };
36
39 struct Cache {
41 std::unique_ptr<Trk::Track> refittedTrack;
50 Cache():refittedTrack(nullptr),
51 refittedTrackPerigee(nullptr),
52 originalTrack(nullptr),
53 originalTrackPerigee(nullptr),
54 electron(nullptr){
55 }
56 };
57
59 virtual StatusCode refitTrack(const EventContext& ctx,
60 const Trk::Track*,
61 Cache& result) const = 0;
62
63};
64#endif
static const InterfaceID IID_egammaTrkRefitterTool("IegammaTrkRefitterTool", 1, 0)
virtual StatusCode refitTrack(const EventContext &ctx, const Trk::Track *, Cache &result) const =0
Refit the track.
static const InterfaceID & interfaceID()
Alg tool and IAlgTool interface method.
ParametersT< TrackParametersDim, Charged, PerigeeSurface > Perigee
Electron_v1 Electron
Definition of the current "egamma version".
Struct Holding the result to return and intermediate objects Things are owned by the EDM or the uniqu...
std::unique_ptr< Trk::Track > refittedTrack
Pointer to the refitted track.
const xAOD::Electron * electron
pointer to the Electron input
const Trk::Perigee * refittedTrackPerigee
Pointer to the refitted MeasuredPerigee.
const Trk::Perigee * originalTrackPerigee
Pointer to the original Perigee.
const Trk::Track * originalTrack
Pointer to the original track.