CMS 3D CMS Logo

Public Member Functions | Private Attributes

ConfigurableAdaptiveReconstructor Class Reference

#include <ConfigurableAdaptiveReconstructor.h>

Inheritance diagram for ConfigurableAdaptiveReconstructor:
AbstractConfReconstructor VertexReconstructor

List of all members.

Public Member Functions

ConfigurableAdaptiveReconstructorclone () const
 ConfigurableAdaptiveReconstructor ()
 ConfigurableAdaptiveReconstructor (const ConfigurableAdaptiveReconstructor &o)
void configure (const edm::ParameterSet &)
edm::ParameterSet defaults () const
std::vector< TransientVertexvertices (const std::vector< reco::TransientTrack > &prims, const std::vector< reco::TransientTrack > &secs, const reco::BeamSpot &) const
std::vector< TransientVertexvertices (const std::vector< reco::TransientTrack > &t, const reco::BeamSpot &) const
std::vector< TransientVertexvertices (const std::vector< reco::TransientTrack > &t) const
 ~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().

ConfigurableAdaptiveReconstructor::ConfigurableAdaptiveReconstructor ( const ConfigurableAdaptiveReconstructor o)

Definition at line 42 of file ConfigurableAdaptiveReconstructor.cc.

                                                    :
  theRector ( o.theRector->clone() )
{}
ConfigurableAdaptiveReconstructor::~ConfigurableAdaptiveReconstructor ( )

Definition at line 36 of file ConfigurableAdaptiveReconstructor.cc.

References theRector.

{
  if ( theRector ) delete theRector;
}

Member Function Documentation

ConfigurableAdaptiveReconstructor * ConfigurableAdaptiveReconstructor::clone ( void  ) const [virtual]
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, n, and theRector.

{
  edm::ParameterSet m=n;
  m.augment ( mydefaults() );
  if ( theRector ) delete theRector;
  theRector = new AdaptiveVertexReconstructor( m );
}
edm::ParameterSet ConfigurableAdaptiveReconstructor::defaults ( ) const [virtual]

Implements AbstractConfReconstructor.

Definition at line 75 of file ConfigurableAdaptiveReconstructor.cc.

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

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

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

{
  return theRector->vertices ( t );
}

Member Data Documentation