CMS 3D CMS Logo

ConfigurableAdaptiveReconstructor Class Reference

Wrap any VertexFitter into the VertexReconstructor interface. More...

#include <RecoVertex/ConfigurableVertexReco/interface/ConfigurableAdaptiveReconstructor.h>

Inheritance diagram for ConfigurableAdaptiveReconstructor:

AbstractConfReconstructor VertexReconstructor

List of all members.

Public Member Functions

ConfigurableAdaptiveReconstructorclone () const
 ConfigurableAdaptiveReconstructor (const ConfigurableAdaptiveReconstructor &o)
 ConfigurableAdaptiveReconstructor ()
void configure (const edm::ParameterSet &)
 The configure method configures the vertex reconstructor.
edm::ParameterSet defaults () const
std::vector< TransientVertexvertices (const std::vector< reco::TransientTrack > &prims, const std::vector< reco::TransientTrack > &secs, const reco::BeamSpot &) const
 Reconstruct vertices, but exploit the fact that you know that some tracks cannot come from a secondary vertex.
std::vector< TransientVertexvertices (const std::vector< reco::TransientTrack > &t, const reco::BeamSpot &) const
 Reconstruct vertices, exploiting the beamspot constraint for the primary vertex.
std::vector< TransientVertexvertices (const std::vector< reco::TransientTrack > &t) const
 Reconstruct vertices.
 ~ConfigurableAdaptiveReconstructor ()

Private Attributes

const VertexReconstructortheRector


Detailed Description

Wrap any VertexFitter into the VertexReconstructor interface.

Definition at line 10 of file ConfigurableAdaptiveReconstructor.h.


Constructor & Destructor Documentation

ConfigurableAdaptiveReconstructor::ConfigurableAdaptiveReconstructor (  ) 

Definition at line 23 of file ConfigurableAdaptiveReconstructor.cc.

Referenced by clone().

00023                                                                      :
00024     theRector( new AdaptiveVertexReconstructor() )
00025 {}

ConfigurableAdaptiveReconstructor::ConfigurableAdaptiveReconstructor ( const ConfigurableAdaptiveReconstructor o  ) 

Definition at line 42 of file ConfigurableAdaptiveReconstructor.cc.

00042                                                     :
00043   theRector ( o.theRector->clone() )
00044 {}

ConfigurableAdaptiveReconstructor::~ConfigurableAdaptiveReconstructor (  ) 

Definition at line 36 of file ConfigurableAdaptiveReconstructor.cc.

References theRector.

00037 {
00038   if ( theRector ) delete theRector;
00039 }


Member Function Documentation

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

Implements AbstractConfReconstructor.

Definition at line 47 of file ConfigurableAdaptiveReconstructor.cc.

References ConfigurableAdaptiveReconstructor().

00048 {
00049   return new ConfigurableAdaptiveReconstructor ( *this );
00050 }

void ConfigurableAdaptiveReconstructor::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 27 of file ConfigurableAdaptiveReconstructor.cc.

References edm::ParameterSet::augment(), m, mydefaults(), and theRector.

00029 {
00030   edm::ParameterSet m=n;
00031   m.augment ( mydefaults() );
00032   if ( theRector ) delete theRector;
00033   theRector = new AdaptiveVertexReconstructor( m );
00034 }

edm::ParameterSet ConfigurableAdaptiveReconstructor::defaults (  )  const [virtual]

Implements AbstractConfReconstructor.

Definition at line 75 of file ConfigurableAdaptiveReconstructor.cc.

References mydefaults().

00076 {
00077   return mydefaults();
00078 }

vector< TransientVertex > ConfigurableAdaptiveReconstructor::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 65 of file ConfigurableAdaptiveReconstructor.cc.

References theRector, and VertexReconstructor::vertices().

00069 {
00070   return theRector->vertices ( prims, secs, s );
00071 }

vector< TransientVertex > ConfigurableAdaptiveReconstructor::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 58 of file ConfigurableAdaptiveReconstructor.cc.

References theRector, and VertexReconstructor::vertices().

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

vector< TransientVertex > ConfigurableAdaptiveReconstructor::vertices ( const std::vector< reco::TransientTrack > &   )  const [virtual]

Reconstruct vertices.

Implements VertexReconstructor.

Definition at line 52 of file ConfigurableAdaptiveReconstructor.cc.

References theRector, and VertexReconstructor::vertices().

00054 {
00055   return theRector->vertices ( t );
00056 }


Member Data Documentation

const VertexReconstructor* ConfigurableAdaptiveReconstructor::theRector [private]

Definition at line 29 of file ConfigurableAdaptiveReconstructor.h.

Referenced by configure(), vertices(), and ~ConfigurableAdaptiveReconstructor().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:16:44 2009 for CMSSW by  doxygen 1.5.4