#include <LinTrackCache.h>
Classes | |
struct | Comparer |
struct | Vicinity |
Public Types | |
typedef ReferenceCountingPointer < LinearizedTrackState< 5 > > | RefCountedLinearizedTrackState |
Public Member Functions | |
void | clear () |
RefCountedLinearizedTrackState | linTrack (const GlobalPoint &, const reco::TransientTrack &) |
~LinTrackCache () | |
Private Types | |
typedef std::map < reco::TransientTrack, bool > | HasLinTrkMap |
typedef std::map < reco::TransientTrack, RefCountedLinearizedTrackState > | LinTrkMap |
Private Attributes | |
std::map< GlobalPoint, HasLinTrkMap, Vicinity > | theHasLinTrack |
std::map< GlobalPoint, LinTrkMap, Vicinity > | theLinTracks |
caches LinearizedTrackStates
Definition at line 10 of file LinTrackCache.h.
typedef std::map< reco::TransientTrack, bool > LinTrackCache::HasLinTrkMap [private] |
Definition at line 37 of file LinTrackCache.h.
typedef std::map< reco::TransientTrack, RefCountedLinearizedTrackState > LinTrackCache::LinTrkMap [private] |
Definition at line 36 of file LinTrackCache.h.
typedef ReferenceCountingPointer<LinearizedTrackState<5> > LinTrackCache::RefCountedLinearizedTrackState |
Definition at line 25 of file LinTrackCache.h.
LinTrackCache::~LinTrackCache | ( | ) |
Definition at line 69 of file LinTrackCache.cc.
{ clear(); }
void LinTrackCache::clear | ( | void | ) |
Definition at line 74 of file LinTrackCache.cc.
{ theLinTracks.clear(); theHasLinTrack.clear(); }
LinTrackCache::RefCountedLinearizedTrackState LinTrackCache::linTrack | ( | const GlobalPoint & | pos, |
const reco::TransientTrack & | rt | ||
) |
Definition at line 26 of file LinTrackCache.cc.
References LinearizedTrackStateFactory::linearizedTrackState(), and pos.
Referenced by MultiVertexFitter::updateSeeds(), and MultiVertexFitter::updateWeights().
{ if ( theHasLinTrack[pos][rt] ) { return theLinTracks[pos][rt]; }; LinearizedTrackStateFactory lTrackFactory; RefCountedLinearizedTrackState lTrData = lTrackFactory.linearizedTrackState( pos, rt ); theLinTracks[pos][rt]=lTrData; theHasLinTrack[pos][rt]=true; return lTrData; }
std::map< GlobalPoint, HasLinTrkMap, Vicinity > LinTrackCache::theHasLinTrack [private] |
Definition at line 39 of file LinTrackCache.h.
std::map< GlobalPoint, LinTrkMap, Vicinity > LinTrackCache::theLinTracks [private] |
Definition at line 38 of file LinTrackCache.h.