CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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,
RefCountedLinearizedTrackState
LinTrkMap
 

Private Attributes

std::map< GlobalPoint,
HasLinTrkMap, Vicinity
theHasLinTrack
 
std::map< GlobalPoint,
LinTrkMap, Vicinity
theLinTracks
 

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 69 of file LinTrackCache.cc.

References hitfit::clear().

70 {
71  clear();
72 }

Member Function Documentation

void LinTrackCache::clear ( void  )

Definition at line 74 of file LinTrackCache.cc.

75 {
76  theLinTracks.clear();
77  theHasLinTrack.clear();
78 }
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 26 of file LinTrackCache.cc.

References LinearizedTrackStateFactory::linearizedTrackState().

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

27 {
28  if ( theHasLinTrack[pos][rt] )
29  {
30  return theLinTracks[pos][rt];
31  };
32 
33  LinearizedTrackStateFactory lTrackFactory;
35  lTrackFactory.linearizedTrackState( pos, rt );
36 
37  theLinTracks[pos][rt]=lTrData;
38  theHasLinTrack[pos][rt]=true;
39  return lTrData;
40 }
ReferenceCountingPointer< LinearizedTrackState< 5 > > RefCountedLinearizedTrackState
Definition: LinTrackCache.h:25
RefCountedLinearizedTrackState linearizedTrackState(const GlobalPoint &linP, const reco::TransientTrack &track) const
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.