CMS 3D CMS Logo

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 override
 
 ConfigurableMultiVertexFitter ()
 
 ConfigurableMultiVertexFitter (const ConfigurableMultiVertexFitter &o)
 
void configure (const edm::ParameterSet &) override
 
edm::ParameterSet defaults () const override
 
std::vector< TransientVertexvertices (const std::vector< reco::TransientTrack > &t) const override
 
std::vector< TransientVertexvertices (const std::vector< reco::TransientTrack > &t, const reco::BeamSpot &s) const override
 
std::vector< TransientVertexvertices (const std::vector< reco::TransientTrack > &prims, const std::vector< reco::TransientTrack > &secs, const reco::BeamSpot &s) const override
 
 ~ConfigurableMultiVertexFitter () override
 
- Public Member Functions inherited from AbstractConfReconstructor
 ~AbstractConfReconstructor () override
 
- 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(), and ~ConfigurableMultiVertexFitter().

ConfigurableMultiVertexFitter::ConfigurableMultiVertexFitter ( const ConfigurableMultiVertexFitter o)

Definition at line 62 of file ConfigurableMultiVertexFitter.cc.

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

Definition at line 56 of file ConfigurableMultiVertexFitter.cc.

References ConfigurableMultiVertexFitter(), and theRector.

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

Member Function Documentation

ConfigurableMultiVertexFitter * ConfigurableMultiVertexFitter::clone ( void  ) const
overridevirtual
void ConfigurableMultiVertexFitter::configure ( const edm::ParameterSet )
overridevirtual

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(), funct::m, gen::n, JustL1Validation_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
overridevirtual

Implements AbstractConfReconstructor.

Definition at line 94 of file ConfigurableMultiVertexFitter.cc.

References protons_cff::t.

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

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 override
const MultiVertexReconstructor * theRector
std::vector< TransientVertex > ConfigurableMultiVertexFitter::vertices ( const std::vector< reco::TransientTrack > &  t,
const reco::BeamSpot  
) const
overridevirtual

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 override
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
overridevirtual

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 override
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