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 > &prims, const std::vector< reco::TransientTrack > &secs, const reco::BeamSpot &) 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
 
 ~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() [1/2]

ConfigurableAdaptiveReconstructor::ConfigurableAdaptiveReconstructor ( )

Definition at line 22 of file ConfigurableAdaptiveReconstructor.cc.

Referenced by clone().

◆ ConfigurableAdaptiveReconstructor() [2/2]

ConfigurableAdaptiveReconstructor::ConfigurableAdaptiveReconstructor ( const ConfigurableAdaptiveReconstructor o)

Definition at line 37 of file ConfigurableAdaptiveReconstructor.cc.

38  : theRector(o.theRector->clone()) {}

◆ ~ConfigurableAdaptiveReconstructor()

ConfigurableAdaptiveReconstructor::~ConfigurableAdaptiveReconstructor ( )
override

Definition at line 32 of file ConfigurableAdaptiveReconstructor.cc.

32  {
33  if (theRector)
34  delete theRector;
35 }

References theRector.

Member Function Documentation

◆ clone()

ConfigurableAdaptiveReconstructor * ConfigurableAdaptiveReconstructor::clone ( void  ) const
overridevirtual

Implements AbstractConfReconstructor.

Definition at line 40 of file ConfigurableAdaptiveReconstructor.cc.

40  {
41  return new ConfigurableAdaptiveReconstructor(*this);
42 }

References ConfigurableAdaptiveReconstructor().

◆ configure()

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 24 of file ConfigurableAdaptiveReconstructor.cc.

24  {
26  m.augment(mydefaults());
27  if (theRector)
28  delete theRector;
30 }

References visualization-live-secondInstance_cfg::m, dqmiodumpmetadata::n, and theRector.

◆ defaults()

edm::ParameterSet ConfigurableAdaptiveReconstructor::defaults ( ) const
overridevirtual

Implements AbstractConfReconstructor.

Definition at line 59 of file ConfigurableAdaptiveReconstructor.cc.

59 { return mydefaults(); }

◆ vertices() [1/3]

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. \paramname primaries Tracks that cannot come from a secondary vertex (but can, in principle, be non-primaries, also). \paramname tracks These are the tracks that are of unknown origin. These tracks are subjected to pattern recognition. \paramname spot A beamspot constraint is mandatory in this method.

Reimplemented from VertexReconstructor.

Definition at line 53 of file ConfigurableAdaptiveReconstructor.cc.

55  {
56  return theRector->vertices(prims, secs, s);
57 }

References alignCSCRings::s, theRector, and VertexReconstructor::vertices().

◆ vertices() [2/3]

vector< TransientVertex > ConfigurableAdaptiveReconstructor::vertices ( const std::vector< reco::TransientTrack > &  ) const
overridevirtual

Reconstruct vertices

Implements VertexReconstructor.

Definition at line 44 of file ConfigurableAdaptiveReconstructor.cc.

44  {
45  return theRector->vertices(t);
46 }

References submitPVValidationJobs::t, theRector, and VertexReconstructor::vertices().

◆ vertices() [3/3]

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 48 of file ConfigurableAdaptiveReconstructor.cc.

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

References alignCSCRings::s, submitPVValidationJobs::t, theRector, and VertexReconstructor::vertices().

Member Data Documentation

◆ theRector

const VertexReconstructor* ConfigurableAdaptiveReconstructor::theRector
private
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
ConfigurableAdaptiveReconstructor::ConfigurableAdaptiveReconstructor
ConfigurableAdaptiveReconstructor()
Definition: ConfigurableAdaptiveReconstructor.cc:22
ConfigurableAdaptiveReconstructor::theRector
const VertexReconstructor * theRector
Definition: ConfigurableAdaptiveReconstructor.h:26
EcalTangentSkim_cfg.o
o
Definition: EcalTangentSkim_cfg.py:36
alignCSCRings.s
s
Definition: alignCSCRings.py:92
AdaptiveVertexReconstructor
Definition: AdaptiveVertexReconstructor.h:9
visualization-live-secondInstance_cfg.m
m
Definition: visualization-live-secondInstance_cfg.py:72
edm::ParameterSet
Definition: ParameterSet.h:47
VertexReconstructor::vertices
virtual std::vector< TransientVertex > vertices(const std::vector< reco::TransientTrack > &) const =0
submitPVValidationJobs.t
string t
Definition: submitPVValidationJobs.py:644