CMS 3D CMS Logo

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

#include <ConfigurableTrimmedKalmanFinder.h>

Inheritance diagram for ConfigurableTrimmedKalmanFinder:
AbstractConfReconstructor VertexReconstructor

Public Member Functions

ConfigurableTrimmedKalmanFinderclone () const override
 
 ConfigurableTrimmedKalmanFinder ()
 
 ConfigurableTrimmedKalmanFinder (const ConfigurableTrimmedKalmanFinder &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 &s) 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 &s) const override
 
 ~ConfigurableTrimmedKalmanFinder () 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 ConfigurableTrimmedKalmanFinder.h.

Constructor & Destructor Documentation

◆ ConfigurableTrimmedKalmanFinder() [1/2]

ConfigurableTrimmedKalmanFinder::ConfigurableTrimmedKalmanFinder ( )

Definition at line 15 of file ConfigurableTrimmedKalmanFinder.cc.

Referenced by clone().

◆ ConfigurableTrimmedKalmanFinder() [2/2]

ConfigurableTrimmedKalmanFinder::ConfigurableTrimmedKalmanFinder ( const ConfigurableTrimmedKalmanFinder o)

Definition at line 35 of file ConfigurableTrimmedKalmanFinder.cc.

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

◆ ~ConfigurableTrimmedKalmanFinder()

ConfigurableTrimmedKalmanFinder::~ConfigurableTrimmedKalmanFinder ( )
override

Definition at line 30 of file ConfigurableTrimmedKalmanFinder.cc.

30  {
31  if (theRector)
32  delete theRector;
33 }

References theRector.

Member Function Documentation

◆ clone()

ConfigurableTrimmedKalmanFinder * ConfigurableTrimmedKalmanFinder::clone ( void  ) const
overridevirtual

Implements AbstractConfReconstructor.

Definition at line 38 of file ConfigurableTrimmedKalmanFinder.cc.

38  {
39  return new ConfigurableTrimmedKalmanFinder(*this);
40 }

References ConfigurableTrimmedKalmanFinder().

◆ configure()

void ConfigurableTrimmedKalmanFinder::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 17 of file ConfigurableTrimmedKalmanFinder.cc.

17  {
18  if (theRector)
19  delete theRector;
21  m.augment(mydefaults());
23  tmp->setPtCut(m.getParameter<double>("ptcut"));
24  tmp->setTrackCompatibilityCut(m.getParameter<double>("trkcutpv"));
25  tmp->setTrackCompatibilityToSV(m.getParameter<double>("trkcutsv"));
26  tmp->setVertexFitProbabilityCut(m.getParameter<double>("vtxcut"));
27  theRector = tmp;
28 }

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

◆ defaults()

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

Implements AbstractConfReconstructor.

Definition at line 58 of file ConfigurableTrimmedKalmanFinder.cc.

58 { return mydefaults(); }

◆ vertices() [1/3]

std::vector< TransientVertex > ConfigurableTrimmedKalmanFinder::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 47 of file ConfigurableTrimmedKalmanFinder.cc.

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

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

◆ vertices() [2/3]

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

Reconstruct vertices

Implements VertexReconstructor.

Definition at line 53 of file ConfigurableTrimmedKalmanFinder.cc.

54  {
55  return theRector->vertices(t);
56 }

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

◆ vertices() [3/3]

std::vector< TransientVertex > ConfigurableTrimmedKalmanFinder::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 42 of file ConfigurableTrimmedKalmanFinder.cc.

43  {
44  return theRector->vertices(t, s);
45 }

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

Member Data Documentation

◆ theRector

const VertexReconstructor* ConfigurableTrimmedKalmanFinder::theRector
private
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
createJobs.tmp
tmp
align.sh
Definition: createJobs.py:716
EcalTangentSkim_cfg.o
o
Definition: EcalTangentSkim_cfg.py:36
alignCSCRings.s
s
Definition: alignCSCRings.py:92
visualization-live-secondInstance_cfg.m
m
Definition: visualization-live-secondInstance_cfg.py:72
ConfigurableTrimmedKalmanFinder::theRector
const VertexReconstructor * theRector
Definition: ConfigurableTrimmedKalmanFinder.h:26
OrderedSet.t
t
Definition: OrderedSet.py:90
edm::ParameterSet
Definition: ParameterSet.h:36
ConfigurableTrimmedKalmanFinder::ConfigurableTrimmedKalmanFinder
ConfigurableTrimmedKalmanFinder()
Definition: ConfigurableTrimmedKalmanFinder.cc:15
VertexReconstructor::vertices
virtual std::vector< TransientVertex > vertices(const std::vector< reco::TransientTrack > &) const =0
KalmanTrimmedVertexFinder
Definition: KalmanTrimmedVertexFinder.h:13