ATLAS Offline Software
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"
12 #include "AthenaKernel/CLASS_DEF.h"
13 
16 class 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
34 CLASS_DEF( TrackExtensionMap , 177089779 , 1 )
35 
36 #endif
python.SystemOfUnits.m
int m
Definition: SystemOfUnits.py:91
MeasurementBase.h
Track.h
TrackExtensionMap::~TrackExtensionMap
~TrackExtensionMap()
Definition: TrackExtensionMap.h:25
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
Trk::MeasurementBase
Definition: MeasurementBase.h:58
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition: Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:64
TrackExtensionMap
AUTO - An Undocumented Tracking Object.
Definition: TrackExtensionMap.h:16
CLASS_DEF.h
macros to associate a CLID to a type