ATLAS Offline Software
Loading...
Searching...
No Matches
TrackExtensionMap.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TRKPRIM_TRACKEXTENSION_H
6#define TRKPRIM_TRACKEXTENSION_H
7
8#include <vector>
9#include <map>
10#include "TrkTrack/Track.h"
13
15
16class TrackExtensionMap : public std::map<const Trk::Track*, std::vector<const Trk::MeasurementBase*> > {
17
18 public:
19 // custom destructor
21
22};
23
24// this is a hack, inline the destructor
26 for (auto& p : *this) {
27 for (const Trk::MeasurementBase* m : p.second) {
28 delete m;
29 }
30 }
31}
32
33// do the storegate stuff
34CLASS_DEF( TrackExtensionMap , 177089779 , 1 )
35
36#endif
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
AUTO - An Undocumented Tracking Object.
This class is the pure abstract base class for all fittable tracking measurements.