CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
ConfigurableAdaptiveReconstructor Class Reference

#include <ConfigurableAdaptiveReconstructor.h>

Inheritance diagram for ConfigurableAdaptiveReconstructor:
AbstractConfReconstructor VertexReconstructor

Public Member Functions

ConfigurableAdaptiveReconstructorclone () const override
 
 ConfigurableAdaptiveReconstructor ()
 
 ConfigurableAdaptiveReconstructor (const ConfigurableAdaptiveReconstructor &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 &) const override
 
std::vector< TransientVertexvertices (const std::vector< reco::TransientTrack > &prims, const std::vector< reco::TransientTrack > &secs, const reco::BeamSpot &) const override
 
 ~ConfigurableAdaptiveReconstructor () override
 
- Public Member Functions inherited from AbstractConfReconstructor
 ~AbstractConfReconstructor () override
 
- Public Member Functions inherited from VertexReconstructor
 VertexReconstructor ()
 
virtual ~VertexReconstructor ()
 

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 ( )
ConfigurableAdaptiveReconstructor::ConfigurableAdaptiveReconstructor ( const ConfigurableAdaptiveReconstructor o)

Definition at line 42 of file ConfigurableAdaptiveReconstructor.cc.

42  :
43  theRector ( o.theRector->clone() )
44 {}
virtual VertexReconstructor * clone() const =0
ConfigurableAdaptiveReconstructor::~ConfigurableAdaptiveReconstructor ( )
override

Definition at line 36 of file ConfigurableAdaptiveReconstructor.cc.

References ConfigurableAdaptiveReconstructor(), and theRector.

37 {
38  if ( theRector ) delete theRector;
39 }

Member Function Documentation

ConfigurableAdaptiveReconstructor * ConfigurableAdaptiveReconstructor::clone ( void  ) const
overridevirtual
void ConfigurableAdaptiveReconstructor::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 27 of file ConfigurableAdaptiveReconstructor.cc.

References edm::ParameterSet::augment(), funct::m, gen::n, and theRector.

29 {
31  m.augment ( mydefaults() );
32  if ( theRector ) delete theRector;
34 }
void augment(ParameterSet const &from)
edm::ParameterSet ConfigurableAdaptiveReconstructor::defaults ( ) const
overridevirtual

Implements AbstractConfReconstructor.

Definition at line 75 of file ConfigurableAdaptiveReconstructor.cc.

References protons_cff::t.

76 {
77  return mydefaults();
78 }
vector< TransientVertex > ConfigurableAdaptiveReconstructor::vertices ( const std::vector< reco::TransientTrack > &  ) const
overridevirtual

Reconstruct vertices

Implements VertexReconstructor.

Definition at line 52 of file ConfigurableAdaptiveReconstructor.cc.

References theRector, and VertexReconstructor::vertices().

54 {
55  return theRector->vertices ( t );
56 }
virtual std::vector< TransientVertex > vertices(const std::vector< reco::TransientTrack > &) const =0
vector< TransientVertex > ConfigurableAdaptiveReconstructor::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 58 of file ConfigurableAdaptiveReconstructor.cc.

References theRector, and VertexReconstructor::vertices().

61 {
62  return theRector->vertices ( t, s );
63 }
virtual std::vector< TransientVertex > vertices(const std::vector< reco::TransientTrack > &) const =0
vector< TransientVertex > ConfigurableAdaptiveReconstructor::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 65 of file ConfigurableAdaptiveReconstructor.cc.

References theRector, and VertexReconstructor::vertices().

69 {
70  return theRector->vertices ( prims, secs, s );
71 }
virtual std::vector< TransientVertex > vertices(const std::vector< reco::TransientTrack > &) const =0

Member Data Documentation

const VertexReconstructor* ConfigurableAdaptiveReconstructor::theRector
private