CMS 3D CMS Logo

Public Member Functions | Private Attributes

ConfigurableMultiVertexFitter Class Reference

#include <ConfigurableMultiVertexFitter.h>

Inheritance diagram for ConfigurableMultiVertexFitter:
AbstractConfReconstructor VertexReconstructor

List of all members.

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 > &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
 ~ConfigurableMultiVertexFitter ()

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.

ConfigurableMultiVertexFitter::~ConfigurableMultiVertexFitter ( )

Definition at line 56 of file ConfigurableMultiVertexFitter.cc.

References theRector.

{
  if ( theRector ) delete theRector;
}

Member Function Documentation

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

Implements AbstractConfReconstructor.

Definition at line 68 of file ConfigurableMultiVertexFitter.cc.

References ConfigurableMultiVertexFitter().

{
  return new ConfigurableMultiVertexFitter ( *this );
}
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(), m, n, Tree_ALCARECO_cff::schedule, theCheater, and theRector.

{
  edm::ParameterSet m=n;
  m.augment ( mydefaults() );
  // print ( m );
  const AnnealingSchedule * ann = schedule ( m );
  const VertexReconstructor * ini = initialiser ( m.getParameter<edm::ParameterSet>("ini") );
  if ( theRector ) delete theRector;
  theRector = new MultiVertexReconstructor( *ini, *ann );
  theCheater=m.getParameter<int>("cheat");
  delete ann;
  delete ini;
}
edm::ParameterSet ConfigurableMultiVertexFitter::defaults ( ) const [virtual]

Implements AbstractConfReconstructor.

Definition at line 94 of file ConfigurableMultiVertexFitter.cc.

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

{
  return theRector->vertices ( prims, secs, s );
}
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().

{
  return theRector->vertices ( t );
}
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().

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

Member Data Documentation

Definition at line 40 of file ConfigurableMultiVertexFitter.h.

Referenced by configure().