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 
runTheMatrix.ret
ret
prodAgent to be discontinued
Definition: runTheMatrix.py:355
MessageLogger.h
ReconstructorFromFitter::~ReconstructorFromFitter
~ReconstructorFromFitter() override
Definition: ReconstructorFromFitter.cc:38
AbstractConfFitter::vertex
CachingVertex< 5 > vertex(const std::vector< reco::TransientTrack > &t) const override
Definition: AbstractConfFitter.cc:14
VertexException
Common base class.
Definition: VertexException.h:12
f
double f[11][100]
Definition: MuScleFitUtils.cc:78
CachingVertex< 5 >
ReconstructorFromFitter::clone
ReconstructorFromFitter * clone() const override
Definition: ReconstructorFromFitter.cc:49
createJobs.tmp
tmp
align.sh
Definition: createJobs.py:716
ReconstructorFromFitter::ReconstructorFromFitter
ReconstructorFromFitter(std::unique_ptr< AbstractConfFitter > &&)
Definition: ReconstructorFromFitter.cc:6
EcalTangentSkim_cfg.o
o
Definition: EcalTangentSkim_cfg.py:36
alignCSCRings.s
s
Definition: alignCSCRings.py:92
clone
TEveGeoShape * clone(const TEveElement *element, TEveElement *parent)
Definition: eve_macros.cc:135
reco::BeamSpot
Definition: BeamSpot.h:21
OrderedSet.t
t
Definition: OrderedSet.py:90
ReconstructorFromFitter
Definition: ReconstructorFromFitter.h:12
edm::LogWarning
Definition: MessageLogger.h:141
ReconstructorFromFitter.h
edm::ParameterSet
Definition: ParameterSet.h:36
fetchall_from_DQM_v2.release
release
Definition: fetchall_from_DQM_v2.py:92
ReconstructorFromFitter::theFitter
const AbstractConfFitter * theFitter
Definition: ReconstructorFromFitter.h:25
ReconstructorFromFitter::configure
void configure(const edm::ParameterSet &) override
Definition: ReconstructorFromFitter.cc:44
ReconstructorFromFitter::defaults
edm::ParameterSet defaults() const override
Definition: ReconstructorFromFitter.cc:42
std
Definition: JetResolutionObject.h:76
ReconstructorFromFitter::vertices
std::vector< TransientVertex > vertices(const std::vector< reco::TransientTrack > &) const override
Definition: ReconstructorFromFitter.cc:8
AbstractConfFitter::defaults
virtual edm::ParameterSet defaults() const =0
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37