CMS 3D CMS Logo

ReconstructorFromFitter.cc
Go to the documentation of this file.
3 
4 using namespace std;
5 
6 ReconstructorFromFitter::ReconstructorFromFitter(std::unique_ptr<AbstractConfFitter>&& f) : theFitter(f.release()) {}
7 
8 vector<TransientVertex> ReconstructorFromFitter::vertices(const vector<reco::TransientTrack>& t) const {
9  vector<TransientVertex> ret;
10  // cout << "[ReconstructorFromFitter] debug: fitting without bs!" << endl;
11  try {
13  if (tmp.isValid())
14  ret.push_back(tmp);
15  } catch (VertexException& e) {
16  edm::LogWarning("ReconstructorFromFitter") << "exception caught: " << e.what();
17  }
18  return ret;
19 }
20 
21 vector<TransientVertex> ReconstructorFromFitter::vertices(const vector<reco::TransientTrack>& t,
22  const reco::BeamSpot& s) const {
23  vector<TransientVertex> ret;
24  try {
25  /*
26  cout << "[ReconstructorFromFitter] debug: fitting with s: " << s.BeamWidth()
27  << " sz=" << s.sigmaZ() << endl;
28  */
30  if (tmp.isValid())
31  ret.push_back(tmp);
32  } catch (VertexException& e) {
33  edm::LogWarning("ReconstructorFromFitter") << "exception caught: " << e.what();
34  }
35  return ret;
36 }
37 
39 
41 
43 
45  //this looks better than changing the data member to be non-const ptr and allow changes in all calls
46  const_cast<AbstractConfFitter*>(theFitter)->configure(s);
47 }
48 
ReconstructorFromFitter(std::unique_ptr< AbstractConfFitter > &&)
Common base class.
ret
prodAgent to be discontinued
ReconstructorFromFitter * clone() const override
double f[11][100]
void configure(const edm::ParameterSet &) override
TEveGeoShape * clone(const TEveElement *element, TEveElement *parent)
Definition: eve_macros.cc:135
const AbstractConfFitter * theFitter
edm::ParameterSet defaults() const override
CachingVertex< 5 > vertex(const std::vector< reco::TransientTrack > &t) const override
Log< level::Warning, false > LogWarning
std::vector< TransientVertex > vertices(const std::vector< reco::TransientTrack > &) const override
tmp
align.sh
Definition: createJobs.py:716
virtual edm::ParameterSet defaults() const =0