CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ConfigurableAdaptiveReconstructor.cc
Go to the documentation of this file.
3 
4 using namespace std;
5 
6 namespace {
7  edm::ParameterSet mydefaults()
8  {
10  ret.addParameter<double>("primcut",2.0);
11  ret.addParameter<double>("primT",256.0);
12  ret.addParameter<double>("primr",0.25);
13  ret.addParameter<double>("seccut",6.0);
14  ret.addParameter<double>("secT",256.0);
15  ret.addParameter<double>("secr",0.25);
16  ret.addParameter<double>("minweight",0.5);
17  ret.addParameter<double>("weightthreshold",0.001 );
18  ret.addParameter<bool>("smoothing",false );
19  return ret;
20  }
21 }
22 
24  theRector( new AdaptiveVertexReconstructor() )
25 {}
26 
28  const edm::ParameterSet & n )
29 {
31  m.augment ( mydefaults() );
32  if ( theRector ) delete theRector;
34 }
35 
37 {
38  if ( theRector ) delete theRector;
39 }
40 
43  theRector ( o.theRector->clone() )
44 {}
45 
46 
48 {
49  return new ConfigurableAdaptiveReconstructor ( *this );
50 }
51 
52 vector < TransientVertex > ConfigurableAdaptiveReconstructor::vertices (
53  const std::vector < reco::TransientTrack > & t ) const
54 {
55  return theRector->vertices ( t );
56 }
57 
58 vector < TransientVertex > ConfigurableAdaptiveReconstructor::vertices (
59  const std::vector < reco::TransientTrack > & t,
60  const reco::BeamSpot & s ) const
61 {
62  return theRector->vertices ( t, s );
63 }
64 
65 vector < TransientVertex > ConfigurableAdaptiveReconstructor::vertices (
66  const std::vector < reco::TransientTrack > & prims,
67  const std::vector < reco::TransientTrack > & secs,
68  const reco::BeamSpot & s ) const
69 {
70  return theRector->vertices ( prims, secs, s );
71 }
72 
73 
74 
76 {
77  return mydefaults();
78 }
79 
81 
82 namespace {
84  ( "avr", "Adaptive Vertex Reconstructor [ = Iterative avf]" );
85  // ConfRecoBuilder < ConfigurableAdaptiveReconstructor > s ( "default", "Adaptive Vertex Reconstructor [ = Iterative avf]" );
86 }
tuple t
Definition: tree.py:139
virtual std::vector< TransientVertex > vertices(const std::vector< reco::TransientTrack > &) const =0
void augment(ParameterSet const &from)
virtual VertexReconstructor * clone() const =0
void addParameter(std::string const &name, T const &value)
Definition: ParameterSet.h:144
std::vector< TransientVertex > vertices(const std::vector< reco::TransientTrack > &t) const
ConfigurableAdaptiveReconstructor * clone() const
volatile std::atomic< bool > shutdown_flag false