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
ConfigurableMultiVertexFitter Class Reference

#include <ConfigurableMultiVertexFitter.h>

Inheritance diagram for ConfigurableMultiVertexFitter:
AbstractConfReconstructor VertexReconstructor

Public Member Functions

ConfigurableMultiVertexFitterclone () const
 
 ConfigurableMultiVertexFitter ()
 
 ConfigurableMultiVertexFitter (const ConfigurableMultiVertexFitter &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
 
 ~ConfigurableMultiVertexFitter ()
 
- Public Member Functions inherited from AbstractConfReconstructor
virtual ~AbstractConfReconstructor ()
 
- Public Member Functions inherited from VertexReconstructor
 VertexReconstructor ()
 
virtual ~VertexReconstructor ()
 

Private Attributes

int theCheater
 
const MultiVertexReconstructortheRector
 

Detailed Description

Wrap any VertexFitter into the VertexReconstructor interface

Definition at line 12 of file ConfigurableMultiVertexFitter.h.

Constructor & Destructor Documentation

ConfigurableMultiVertexFitter::ConfigurableMultiVertexFitter ( )

Accepted values: sigmacut: The sqrt(chi2_cut) criterion. Default: 3.0 ratio: The annealing ratio. Default: 0.25 Tini: The initial temparature. Default: 256

Definition at line 36 of file ConfigurableMultiVertexFitter.cc.

Referenced by clone().

ConfigurableMultiVertexFitter::ConfigurableMultiVertexFitter ( const ConfigurableMultiVertexFitter o)

Definition at line 62 of file ConfigurableMultiVertexFitter.cc.

62  :
63  theRector ( o.theRector->clone() ),
65 {}
MultiVertexReconstructor * clone() const
const MultiVertexReconstructor * theRector
ConfigurableMultiVertexFitter::~ConfigurableMultiVertexFitter ( )

Definition at line 56 of file ConfigurableMultiVertexFitter.cc.

References theRector.

57 {
58  if ( theRector ) delete theRector;
59 }
const MultiVertexReconstructor * theRector

Member Function Documentation

ConfigurableMultiVertexFitter * ConfigurableMultiVertexFitter::clone ( void  ) const
virtual
void ConfigurableMultiVertexFitter::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 41 of file ConfigurableMultiVertexFitter.cc.

References edm::ParameterSet::augment(), edm::ParameterSet::getParameter(), visualization-live-secondInstance_cfg::m, gen::n, Tree_ALCARECO_cff::schedule, theCheater, and theRector.

43 {
45  m.augment ( mydefaults() );
46  // print ( m );
47  const AnnealingSchedule * ann = schedule ( m );
48  const VertexReconstructor * ini = initialiser ( m.getParameter<edm::ParameterSet>("ini") );
49  if ( theRector ) delete theRector;
50  theRector = new MultiVertexReconstructor( *ini, *ann );
51  theCheater=m.getParameter<int>("cheat");
52  delete ann;
53  delete ini;
54 }
T getParameter(std::string const &) const
void augment(ParameterSet const &from)
const MultiVertexReconstructor * theRector
edm::ParameterSet ConfigurableMultiVertexFitter::defaults ( ) const
virtual

Implements AbstractConfReconstructor.

Definition at line 94 of file ConfigurableMultiVertexFitter.cc.

95 {
96  return mydefaults();
97 }
std::vector< TransientVertex > ConfigurableMultiVertexFitter::vertices ( const std::vector< reco::TransientTrack > &  ) const
virtual

Reconstruct vertices

Implements VertexReconstructor.

Definition at line 88 of file ConfigurableMultiVertexFitter.cc.

References theRector, and MultiVertexReconstructor::vertices().

90 {
91  return theRector->vertices ( t );
92 }
std::vector< TransientVertex > vertices(const std::vector< reco::TransientTrack > &, const reco::BeamSpot &) const
const MultiVertexReconstructor * theRector
std::vector< TransientVertex > ConfigurableMultiVertexFitter::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 73 of file ConfigurableMultiVertexFitter.cc.

References theRector, and MultiVertexReconstructor::vertices().

76 {
77  return theRector->vertices ( t, s );
78 }
std::vector< TransientVertex > vertices(const std::vector< reco::TransientTrack > &, const reco::BeamSpot &) const
const MultiVertexReconstructor * theRector
std::vector< TransientVertex > ConfigurableMultiVertexFitter::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 80 of file ConfigurableMultiVertexFitter.cc.

References theRector, and MultiVertexReconstructor::vertices().

84 {
85  return theRector->vertices ( prims, secs, s );
86 }
std::vector< TransientVertex > vertices(const std::vector< reco::TransientTrack > &, const reco::BeamSpot &) const
const MultiVertexReconstructor * theRector

Member Data Documentation

int ConfigurableMultiVertexFitter::theCheater
private

Definition at line 40 of file ConfigurableMultiVertexFitter.h.

Referenced by configure().

const MultiVertexReconstructor* ConfigurableMultiVertexFitter::theRector
private