CMS 3D CMS Logo

List of all members | Classes | Public Types | Public Member Functions | Private Types | Private Attributes
LinTrackCache Class Reference

#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, RefCountedLinearizedTrackStateLinTrkMap
 

Private Attributes

std::map< GlobalPoint, HasLinTrkMap, VicinitytheHasLinTrack
 
std::map< GlobalPoint, LinTrkMap, VicinitytheLinTracks
 

Detailed Description

caches LinearizedTrackStates

Definition at line 10 of file LinTrackCache.h.

Member Typedef Documentation

typedef std::map< reco::TransientTrack, bool > LinTrackCache::HasLinTrkMap
private

Definition at line 37 of file LinTrackCache.h.

Definition at line 36 of file LinTrackCache.h.

Definition at line 25 of file LinTrackCache.h.

Constructor & Destructor Documentation

LinTrackCache::~LinTrackCache ( )

Definition at line 63 of file LinTrackCache.cc.

References hitfit::clear().

64 {
65  clear();
66 }

Member Function Documentation

void LinTrackCache::clear ( void  )

Definition at line 68 of file LinTrackCache.cc.

69 {
70  theLinTracks.clear();
71  theHasLinTrack.clear();
72 }
std::map< GlobalPoint, LinTrkMap, Vicinity > theLinTracks
Definition: LinTrackCache.h:38
std::map< GlobalPoint, HasLinTrkMap, Vicinity > theHasLinTrack
Definition: LinTrackCache.h:39
LinTrackCache::RefCountedLinearizedTrackState LinTrackCache::linTrack ( const GlobalPoint pos,
const reco::TransientTrack rt 
)

Definition at line 19 of file LinTrackCache.cc.

References LinearizedTrackStateFactory::linearizedTrackState().

Referenced by MultiVertexFitter::updateSeeds(), and MultiVertexFitter::updateWeights().

20 {
21  if ( theHasLinTrack[pos][rt] )
22  {
23  return theLinTracks[pos][rt];
24  };
25 
26  LinearizedTrackStateFactory lTrackFactory;
28  lTrackFactory.linearizedTrackState( pos, rt );
29 
30  theLinTracks[pos][rt]=lTrData;
31  theHasLinTrack[pos][rt]=true;
32  return lTrData;
33 }
ReferenceCountingPointer< LinearizedTrackState< 5 > > RefCountedLinearizedTrackState
Definition: LinTrackCache.h:25
RefCountedLinearizedTrackState linearizedTrackState(const GlobalPoint &linP, const reco::TransientTrack &track) const override
std::map< GlobalPoint, LinTrkMap, Vicinity > theLinTracks
Definition: LinTrackCache.h:38
std::map< GlobalPoint, HasLinTrkMap, Vicinity > theHasLinTrack
Definition: LinTrackCache.h:39

Member Data Documentation

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.