CMS 3D CMS Logo

Public Member Functions | Private Attributes

ConfigurableTrimmedKalmanFinder Class Reference

#include <ConfigurableTrimmedKalmanFinder.h>

Inheritance diagram for ConfigurableTrimmedKalmanFinder:
AbstractConfReconstructor VertexReconstructor

List of all members.

Public Member Functions

ConfigurableTrimmedKalmanFinderclone () const
 ConfigurableTrimmedKalmanFinder ()
 ConfigurableTrimmedKalmanFinder (const ConfigurableTrimmedKalmanFinder &o)
void configure (const edm::ParameterSet &)
edm::ParameterSet defaults () const
std::vector< TransientVertexvertices (const std::vector< reco::TransientTrack > &prims, const std::vector< reco::TransientTrack > &secs, const reco::BeamSpot &s) const
std::vector< TransientVertexvertices (const std::vector< reco::TransientTrack > &t, const reco::BeamSpot &s) const
std::vector< TransientVertexvertices (const std::vector< reco::TransientTrack > &t) const
 ~ConfigurableTrimmedKalmanFinder ()

Private Attributes

const VertexReconstructortheRector

Detailed Description

Wrap any VertexFitter into the VertexReconstructor interface

Definition at line 10 of file ConfigurableTrimmedKalmanFinder.h.


Constructor & Destructor Documentation

ConfigurableTrimmedKalmanFinder::ConfigurableTrimmedKalmanFinder ( )

Definition at line 16 of file ConfigurableTrimmedKalmanFinder.cc.

Referenced by clone().

ConfigurableTrimmedKalmanFinder::ConfigurableTrimmedKalmanFinder ( const ConfigurableTrimmedKalmanFinder o)

Definition at line 40 of file ConfigurableTrimmedKalmanFinder.cc.

                                                  :
  theRector ( o.theRector->clone() )
{}
ConfigurableTrimmedKalmanFinder::~ConfigurableTrimmedKalmanFinder ( )

Definition at line 34 of file ConfigurableTrimmedKalmanFinder.cc.

References theRector.

{
  if ( theRector ) delete theRector;
}

Member Function Documentation

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

Implements AbstractConfReconstructor.

Definition at line 45 of file ConfigurableTrimmedKalmanFinder.cc.

References ConfigurableTrimmedKalmanFinder().

{
  return new ConfigurableTrimmedKalmanFinder ( *this );
}
void ConfigurableTrimmedKalmanFinder::configure ( const edm::ParameterSet ) [virtual]

The configure method configures the vertex reconstructor. It also should also write all its applied defaults back into the map,

Implements AbstractConfReconstructor.

Definition at line 20 of file ConfigurableTrimmedKalmanFinder.cc.

References edm::ParameterSet::augment(), edm::ParameterSet::getParameter(), m, n, KalmanTrimmedVertexFinder::setPtCut(), KalmanTrimmedVertexFinder::setTrackCompatibilityCut(), KalmanTrimmedVertexFinder::setTrackCompatibilityToSV(), KalmanTrimmedVertexFinder::setVertexFitProbabilityCut(), theRector, and tmp.

{
  if ( theRector ) delete theRector;
  edm::ParameterSet m=n;
  m.augment ( mydefaults() );
  KalmanTrimmedVertexFinder * tmp = new KalmanTrimmedVertexFinder();
  tmp->setPtCut ( m.getParameter<double>("ptcut") );
  tmp->setTrackCompatibilityCut ( m.getParameter<double>("trkcutpv") );
  tmp->setTrackCompatibilityToSV ( m.getParameter<double>("trkcutsv") );
  tmp->setVertexFitProbabilityCut ( m.getParameter<double>( "vtxcut" ) );
  theRector = tmp;
}
edm::ParameterSet ConfigurableTrimmedKalmanFinder::defaults ( ) const [virtual]

Implements AbstractConfReconstructor.

Definition at line 71 of file ConfigurableTrimmedKalmanFinder.cc.

{
  return mydefaults();
}
std::vector< TransientVertex > ConfigurableTrimmedKalmanFinder::vertices ( const std::vector< reco::TransientTrack > &  t,
const reco::BeamSpot  
) const [virtual]

Reconstruct vertices, exploiting the beamspot constraint for the primary vertex

Reimplemented from VertexReconstructor.

Definition at line 50 of file ConfigurableTrimmedKalmanFinder.cc.

References theRector, and VertexReconstructor::vertices().

{
  return theRector->vertices ( t, s );
}
std::vector< TransientVertex > ConfigurableTrimmedKalmanFinder::vertices ( const std::vector< reco::TransientTrack > &  primaries,
const std::vector< reco::TransientTrack > &  tracks,
const reco::BeamSpot spot 
) const [virtual]

Reconstruct vertices, but exploit the fact that you know that some tracks cannot come from a secondary vertex. primaries Tracks that _cannot_ come from a secondary vertex (but can, in principle, be non-primaries, also). tracks These are the tracks that are of unknown origin. These tracks are subjected to pattern recognition. spot A beamspot constraint is mandatory in this method.

Reimplemented from VertexReconstructor.

Definition at line 57 of file ConfigurableTrimmedKalmanFinder.cc.

References theRector, and VertexReconstructor::vertices().

{
  return theRector->vertices ( prims, secs, s );
}
std::vector< TransientVertex > ConfigurableTrimmedKalmanFinder::vertices ( const std::vector< reco::TransientTrack > &  ) const [virtual]

Reconstruct vertices

Implements VertexReconstructor.

Definition at line 65 of file ConfigurableTrimmedKalmanFinder.cc.

References theRector, and VertexReconstructor::vertices().

{
  return theRector->vertices ( t );
}

Member Data Documentation