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

References hitfit::clear().

63 {
64  clear();
65 }

Member Function Documentation

void LinTrackCache::clear ( void  )

Definition at line 67 of file LinTrackCache.cc.

68 {
69  theLinTracks.clear();
70  theHasLinTrack.clear();
71 }
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
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.