#include <ConfigurableMultiVertexFitter.h>
Public Member Functions | |
ConfigurableMultiVertexFitter * | clone () const |
ConfigurableMultiVertexFitter () | |
ConfigurableMultiVertexFitter (const ConfigurableMultiVertexFitter &o) | |
void | configure (const edm::ParameterSet &) |
edm::ParameterSet | defaults () const |
std::vector< TransientVertex > | vertices (const std::vector< reco::TransientTrack > &t) const |
std::vector< TransientVertex > | vertices (const std::vector< reco::TransientTrack > &prims, const std::vector< reco::TransientTrack > &secs, const reco::BeamSpot &s) const |
std::vector< TransientVertex > | vertices (const std::vector< reco::TransientTrack > &t, const reco::BeamSpot &s) const |
~ConfigurableMultiVertexFitter () | |
Private Attributes | |
int | theCheater |
const MultiVertexReconstructor * | theRector |
Wrap any VertexFitter into the VertexReconstructor interface
Definition at line 12 of file ConfigurableMultiVertexFitter.h.
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().
: theRector ( new MultiVertexReconstructor( MultiVertexBSeeder() ) ), theCheater(0) {}
ConfigurableMultiVertexFitter::ConfigurableMultiVertexFitter | ( | const ConfigurableMultiVertexFitter & | o | ) |
Definition at line 62 of file ConfigurableMultiVertexFitter.cc.
: theRector ( o.theRector->clone() ), theCheater(o.theCheater) {}
ConfigurableMultiVertexFitter::~ConfigurableMultiVertexFitter | ( | ) |
Definition at line 56 of file ConfigurableMultiVertexFitter.cc.
References theRector.
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().
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().
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().
int ConfigurableMultiVertexFitter::theCheater [private] |
Definition at line 40 of file ConfigurableMultiVertexFitter.h.
Referenced by configure().
const MultiVertexReconstructor* ConfigurableMultiVertexFitter::theRector [private] |
Definition at line 39 of file ConfigurableMultiVertexFitter.h.
Referenced by configure(), vertices(), and ~ConfigurableMultiVertexFitter().