CMS 3D CMS Logo

Classes | Public Types | Public Member Functions | Private Types | Private Attributes

LinTrackCache Class Reference

#include <LinTrackCache.h>

List of all members.

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().

{
  clear();
}

Member Function Documentation

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;
}

Member Data Documentation

Definition at line 39 of file LinTrackCache.h.

Definition at line 38 of file LinTrackCache.h.