CMS 3D CMS Logo

ConfigurableTrimmedKalmanFinder Class Reference

Wrap any VertexFitter into the VertexReconstructor interface. More...

#include <RecoVertex/ConfigurableVertexReco/interface/ConfigurableTrimmedKalmanFinder.h>

Inheritance diagram for ConfigurableTrimmedKalmanFinder:

AbstractConfReconstructor VertexReconstructor

List of all members.

Public Member Functions

ConfigurableTrimmedKalmanFinderclone () const
 ConfigurableTrimmedKalmanFinder (const ConfigurableTrimmedKalmanFinder &o)
 ConfigurableTrimmedKalmanFinder ()
void configure (const edm::ParameterSet &)
 The configure method configures the vertex reconstructor.
edm::ParameterSet defaults () const
std::vector< TransientVertexvertices (const std::vector< reco::TransientTrack > &t, const reco::BeamSpot &s) const
 Reconstruct vertices, exploiting the beamspot constraint for the primary vertex.
std::vector< TransientVertexvertices (const std::vector< reco::TransientTrack > &t) const
 Reconstruct vertices.
 ~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().

00016                                                                  :
00017     theRector( new KalmanTrimmedVertexFinder() )
00018 {}

ConfigurableTrimmedKalmanFinder::ConfigurableTrimmedKalmanFinder ( const ConfigurableTrimmedKalmanFinder o  ) 

Definition at line 40 of file ConfigurableTrimmedKalmanFinder.cc.

00040                                                   :
00041   theRector ( o.theRector->clone() )
00042 {}

ConfigurableTrimmedKalmanFinder::~ConfigurableTrimmedKalmanFinder (  ) 

Definition at line 34 of file ConfigurableTrimmedKalmanFinder.cc.

References theRector.

00035 {
00036   if ( theRector ) delete theRector;
00037 }


Member Function Documentation

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

Implements AbstractConfReconstructor.

Definition at line 45 of file ConfigurableTrimmedKalmanFinder.cc.

References ConfigurableTrimmedKalmanFinder().

00046 {
00047   return new ConfigurableTrimmedKalmanFinder ( *this );
00048 }

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, mydefaults(), KalmanTrimmedVertexFinder::setPtCut(), KalmanTrimmedVertexFinder::setTrackCompatibilityCut(), KalmanTrimmedVertexFinder::setTrackCompatibilityToSV(), KalmanTrimmedVertexFinder::setVertexFitProbabilityCut(), theRector, and tmp.

00022 {
00023   if ( theRector ) delete theRector;
00024   edm::ParameterSet m=n;
00025   m.augment ( mydefaults() );
00026   KalmanTrimmedVertexFinder * tmp = new KalmanTrimmedVertexFinder();
00027   tmp->setPtCut ( m.getParameter<double>("ptcut") );
00028   tmp->setTrackCompatibilityCut ( m.getParameter<double>("trkcutpv") );
00029   tmp->setTrackCompatibilityToSV ( m.getParameter<double>("trkcutsv") );
00030   tmp->setVertexFitProbabilityCut ( m.getParameter<double>( "vtxcut" ) );
00031   theRector = tmp;
00032 }

edm::ParameterSet ConfigurableTrimmedKalmanFinder::defaults (  )  const [virtual]

Implements AbstractConfReconstructor.

Definition at line 64 of file ConfigurableTrimmedKalmanFinder.cc.

References mydefaults().

00065 {
00066   return mydefaults();
00067 }

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 56 of file ConfigurableTrimmedKalmanFinder.cc.

References theRector, and VertexReconstructor::vertices().

00059 {
00060   return theRector->vertices ( t, s );
00061 }

vector< TransientVertex > ConfigurableTrimmedKalmanFinder::vertices ( const std::vector< reco::TransientTrack > &   )  const [virtual]

Reconstruct vertices.

Implements VertexReconstructor.

Definition at line 50 of file ConfigurableTrimmedKalmanFinder.cc.

References theRector, and VertexReconstructor::vertices().

00052 {
00053   return theRector->vertices ( t );
00054 }


Member Data Documentation

const VertexReconstructor* ConfigurableTrimmedKalmanFinder::theRector [private]

Definition at line 25 of file ConfigurableTrimmedKalmanFinder.h.

Referenced by configure(), vertices(), and ~ConfigurableTrimmedKalmanFinder().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:16:45 2009 for CMSSW by  doxygen 1.5.4