CMS 3D CMS Logo

LinTrackCache.h
Go to the documentation of this file.
1 #ifndef _LinTrackCache_H_
2 #define _LinTrackCache_H_
3 
4 #include <map>
9 
11 private:
12  struct Comparer {
13  bool operator()(const GlobalPoint &, const GlobalPoint &) const;
14  };
15 
16  struct Vicinity {
17  bool operator()(const GlobalPoint &, const GlobalPoint &) const;
18  };
19 
20 public:
22 
29  void clear();
30 
31 private:
32  typedef std::map<reco::TransientTrack, RefCountedLinearizedTrackState> LinTrkMap;
33  typedef std::map<reco::TransientTrack, bool> HasLinTrkMap;
34  std::map<GlobalPoint, LinTrkMap, Vicinity> theLinTracks;
35  std::map<GlobalPoint, HasLinTrkMap, Vicinity> theHasLinTrack;
36 };
37 
38 #endif
bool operator()(const GlobalPoint &, const GlobalPoint &) const
bool operator()(const GlobalPoint &, const GlobalPoint &) const
ReferenceCountingPointer< LinearizedTrackState< 5 > > RefCountedLinearizedTrackState
Definition: LinTrackCache.h:21
std::map< reco::TransientTrack, bool > HasLinTrkMap
Definition: LinTrackCache.h:33
std::map< GlobalPoint, LinTrkMap, Vicinity > theLinTracks
Definition: LinTrackCache.h:34
RefCountedLinearizedTrackState linTrack(const GlobalPoint &, const reco::TransientTrack &)
std::map< GlobalPoint, HasLinTrkMap, Vicinity > theHasLinTrack
Definition: LinTrackCache.h:35
std::map< reco::TransientTrack, RefCountedLinearizedTrackState > LinTrkMap
Definition: LinTrackCache.h:32