CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

TrimmedVertexFitter Class Reference

#include <TrimmedVertexFitter.h>

Inheritance diagram for TrimmedVertexFitter:
VertexFitter< 5 >

List of all members.

Public Types

typedef
ReferenceCountingPointer
< LinearizedTrackState< 5 > > 
RefCountedLinearizedTrackState
typedef CachingVertex
< 5 >::RefCountedVertexTrack 
RefCountedVertexTrack

Public Member Functions

TrimmedVertexFitterclone () const
void setPtCut (float cut)
void setTrackCompatibilityCut (float cut)
void setVertexFitProbabilityCut (float cut)
 TrimmedVertexFitter ()
 TrimmedVertexFitter (const edm::ParameterSet &pSet)
virtual CachingVertex< 5 > vertex (const std::vector< RefCountedVertexTrack > &tracks, const GlobalPoint &priorPos, const GlobalError &priorError) const
virtual CachingVertex< 5 > vertex (const std::vector< reco::TransientTrack > &tracks, const GlobalPoint &priorPos, const GlobalError &priorError) const
virtual CachingVertex< 5 > vertex (const std::vector< RefCountedVertexTrack > &tracks, const reco::BeamSpot &spot) const
virtual CachingVertex< 5 > vertex (const std::vector< reco::TransientTrack > &tracks, const reco::BeamSpot &beamSpot) const
virtual CachingVertex< 5 > vertex (const std::vector< RefCountedVertexTrack > &tracks) const
virtual CachingVertex< 5 > vertex (const std::vector< reco::TransientTrack > &tracks) const
virtual CachingVertex< 5 > vertex (const std::vector< reco::TransientTrack > &tracks, const GlobalPoint &linPoint) const
virtual ~TrimmedVertexFitter ()

Private Attributes

double ptcut
KalmanTrimmedVertexFinder theRector

Detailed Description

Definition at line 12 of file TrimmedVertexFitter.h.


Member Typedef Documentation

Definition at line 17 of file TrimmedVertexFitter.h.

Definition at line 16 of file TrimmedVertexFitter.h.


Constructor & Destructor Documentation

TrimmedVertexFitter::TrimmedVertexFitter ( )
TrimmedVertexFitter::TrimmedVertexFitter ( const edm::ParameterSet pSet)
virtual TrimmedVertexFitter::~TrimmedVertexFitter ( ) [inline, virtual]

Definition at line 22 of file TrimmedVertexFitter.h.

{}

Member Function Documentation

TrimmedVertexFitter * TrimmedVertexFitter::clone ( void  ) const [virtual]

Fit vertex out of a VertexSeed

Implements VertexFitter< 5 >.

Definition at line 97 of file TrimmedVertexFitter.cc.

References TrimmedVertexFitter().

{
  return new TrimmedVertexFitter( * this );
}
void TrimmedVertexFitter::setPtCut ( float  cut)
void TrimmedVertexFitter::setTrackCompatibilityCut ( float  cut)
void TrimmedVertexFitter::setVertexFitProbabilityCut ( float  cut)
CachingVertex< 5 > TrimmedVertexFitter::vertex ( const std::vector< reco::TransientTrack > &  tracks,
const GlobalPoint linPoint 
) const [virtual]

Fit vertex out of a set of TransientTracks. The specified point will be used as linearization point, but will NOT be used as prior.

Implements VertexFitter< 5 >.

Definition at line 64 of file TrimmedVertexFitter.cc.

References gather_cfg::cout.

{
  std::cout << "[TrimmedVertexFitter] method not implemented" << std::endl;
  throw VertexException("not implemented");
}
CachingVertex< 5 > TrimmedVertexFitter::vertex ( const std::vector< reco::TransientTrack > &  tracks,
const reco::BeamSpot beamSpot 
) const [virtual]

Fit vertex out of a set of TransientTracks. The specified BeamSpot will be used as priot, but NOT for the linearization. The specified LinearizationPointFinder will be used to find the linearization point.

Implements VertexFitter< 5 >.

Definition at line 89 of file TrimmedVertexFitter.cc.

References gather_cfg::cout.

{
 std::cout << "[TrimmedVertexFitter] method not implemented" << std::endl;
  throw VertexException("not implemented");
}
CachingVertex< 5 > TrimmedVertexFitter::vertex ( const std::vector< RefCountedVertexTrack > &  tracks,
const GlobalPoint priorPos,
const GlobalError priorError 
) const [virtual]

Definition at line 79 of file TrimmedVertexFitter.cc.

References gather_cfg::cout.

{
 std::cout << "[TrimmedVertexFitter] method not implemented" << std::endl;
  throw VertexException("not implemented");
}
CachingVertex< 5 > TrimmedVertexFitter::vertex ( const std::vector< reco::TransientTrack > &  tracks,
const GlobalPoint priorPos,
const GlobalError priorError 
) const [virtual]

Fit vertex out of a set of TransientTracks. Uses the specified point as both the linearization point AND as prior estimate of the vertex position. The error is used for the weight of the prior estimate.

Implements VertexFitter< 5 >.

Definition at line 71 of file TrimmedVertexFitter.cc.

References gather_cfg::cout.

{
  std::cout << "[TrimmedVertexFitter] method not implemented" << std::endl;
  throw VertexException("not implemented");
}
CachingVertex< 5 > TrimmedVertexFitter::vertex ( const std::vector< reco::TransientTrack > &  tracks) const [virtual]

Fit vertex out of a set of TransientTracks

Implements VertexFitter< 5 >.

Definition at line 23 of file TrimmedVertexFitter.cc.

References LinearizedTrackStateFactory::linearizedTrackState(), TransientVertex::originalTracks(), TransientVertex::position(), TransientVertex::positionError(), evf::utils::state, theRector, TransientVertex::totalChiSquared(), VertexTrackFactory< N >::vertexTrack(), and KalmanTrimmedVertexFinder::vertices().

{
  std::vector<TransientVertex> vtces = theRector.vertices ( tracks );
  if (vtces.size() )
  {
    const TransientVertex & rv = *(vtces.begin());
    LinearizedTrackStateFactory lfac;
    VertexTrackFactory<5> vfac; 
       VertexState state ( rv.position(), rv.positionError() );
     std::vector < RefCountedVertexTrack > vtrks;
    std::vector<reco::TransientTrack> mytrks = rv.originalTracks();
    for ( std::vector<reco::TransientTrack>::const_iterator rt=mytrks.begin(); 
          rt!=mytrks.end() ; ++rt )
    {
      RefCountedLinearizedTrackState lstate =lfac.linearizedTrackState
       ( rv.position(), *rt );
       
      RefCountedVertexTrack vtrk = vfac.vertexTrack ( lstate, state, 1.0 );
      vtrks.push_back ( vtrk );
    };
    return CachingVertex<5> ( rv.position(), rv.positionError(), vtrks, rv.totalChiSquared() );
  };
  return CachingVertex<5>();
}
CachingVertex< 5 > TrimmedVertexFitter::vertex ( const std::vector< RefCountedVertexTrack > &  tracks,
const reco::BeamSpot spot 
) const [virtual]

Definition at line 55 of file TrimmedVertexFitter.cc.

References gather_cfg::cout.

{
  std::cout << "[TrimmedVertexFitter] method not implemented" << std::endl;
  throw VertexException("not implemented");
}
CachingVertex< 5 > TrimmedVertexFitter::vertex ( const std::vector< RefCountedVertexTrack > &  tracks) const [virtual]

Definition at line 48 of file TrimmedVertexFitter.cc.

References gather_cfg::cout.

{
  std::cout << "[TrimmedVertexFitter] method not implemented" << std::endl;
  throw VertexException("not implemented");
}

Member Data Documentation

double TrimmedVertexFitter::ptcut [private]

Definition at line 56 of file TrimmedVertexFitter.h.

Referenced by setPtCut().