CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
ConfigurableTrimmedKalmanFinder Class Reference

#include <ConfigurableTrimmedKalmanFinder.h>

Inheritance diagram for ConfigurableTrimmedKalmanFinder:
AbstractConfReconstructor VertexReconstructor

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 > &t) const
 
std::vector< TransientVertexvertices (const std::vector< reco::TransientTrack > &t, const reco::BeamSpot &s) const
 
std::vector< TransientVertexvertices (const std::vector< reco::TransientTrack > &prims, const std::vector< reco::TransientTrack > &secs, const reco::BeamSpot &s) const
 
 ~ConfigurableTrimmedKalmanFinder ()
 
- Public Member Functions inherited from AbstractConfReconstructor
virtual ~AbstractConfReconstructor ()
 
- Public Member Functions inherited from VertexReconstructor
 VertexReconstructor ()
 
virtual ~VertexReconstructor ()
 

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.

40  :
41  theRector ( o.theRector->clone() )
42 {}
virtual VertexReconstructor * clone() const =0
ConfigurableTrimmedKalmanFinder::~ConfigurableTrimmedKalmanFinder ( )

Definition at line 34 of file ConfigurableTrimmedKalmanFinder.cc.

References theRector.

35 {
36  if ( theRector ) delete theRector;
37 }

Member Function Documentation

ConfigurableTrimmedKalmanFinder * ConfigurableTrimmedKalmanFinder::clone ( void  ) const
virtual
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(), contentValuesFiles::m, gen::n, KalmanTrimmedVertexFinder::setPtCut(), KalmanTrimmedVertexFinder::setTrackCompatibilityCut(), KalmanTrimmedVertexFinder::setTrackCompatibilityToSV(), KalmanTrimmedVertexFinder::setVertexFitProbabilityCut(), theRector, and tmp.

22 {
23  if ( theRector ) delete theRector;
25  m.augment ( mydefaults() );
27  tmp->setPtCut ( m.getParameter<double>("ptcut") );
28  tmp->setTrackCompatibilityCut ( m.getParameter<double>("trkcutpv") );
29  tmp->setTrackCompatibilityToSV ( m.getParameter<double>("trkcutsv") );
30  tmp->setVertexFitProbabilityCut ( m.getParameter<double>( "vtxcut" ) );
31  theRector = tmp;
32 }
T getParameter(std::string const &) const
void augment(ParameterSet const &from)
std::vector< std::vector< double > > tmp
Definition: MVATrainer.cc:100
edm::ParameterSet ConfigurableTrimmedKalmanFinder::defaults ( ) const
virtual

Implements AbstractConfReconstructor.

Definition at line 71 of file ConfigurableTrimmedKalmanFinder.cc.

72 {
73  return mydefaults();
74 }
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().

67 {
68  return theRector->vertices ( t );
69 }
virtual std::vector< TransientVertex > vertices(const std::vector< reco::TransientTrack > &) const =0
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().

53 {
54  return theRector->vertices ( t, s );
55 }
virtual std::vector< TransientVertex > vertices(const std::vector< reco::TransientTrack > &) const =0
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().

61 {
62  return theRector->vertices ( prims, secs, s );
63 }
virtual std::vector< TransientVertex > vertices(const std::vector< reco::TransientTrack > &) const =0

Member Data Documentation

const VertexReconstructor* ConfigurableTrimmedKalmanFinder::theRector
private