CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MultiTrajectoryMeasurement.cc
Go to the documentation of this file.
7 
9 
11  const std::map<int, TSOS>& predictions,
12  const std::map<int, TSOS>& updates,
13  const DetLayer* lay) :
14  theRecHits(std::vector<TransientTrackingRecHit::ConstRecHitPointer>(1, hit)),
15  theMultiHits(std::map<int,const TransientTrackingRecHit*>()),
16  theFilteredStates(updates),
17  thePredictedStates(predictions),
18  theChi2s(std::map<int,float>()),
19  theLayer(lay) {}
20 
21 MultiTrajectoryMeasurement::MultiTrajectoryMeasurement(std::vector<TransientTrackingRecHit::ConstRecHitPointer>& hits,
22  const std::map<int,const TransientTrackingRecHit*>& multiHits,
23  const std::map<int, TSOS>& predictions,
24  const std::map<int, TSOS>& updates,
25  const std::map<int, float>& chi2s,
26  const DetLayer* lay) :
27  theRecHits(hits),
28  theMultiHits(multiHits),
29  theFilteredStates(updates),
30  thePredictedStates(predictions),
31  theChi2s(chi2s),
32 
33  theLayer(lay) {}
34 
35 std::vector<TransientTrackingRecHit::ConstRecHitPointer> MultiTrajectoryMeasurement::hits() const {
36 
37  return theRecHits;
38 }
39 
40 std::map<int,const TransientTrackingRecHit*>& MultiTrajectoryMeasurement::multiHits() {
41 
42  return theMultiHits;
43 }
44 
45 std::map<int, TrajectoryStateOnSurface>& MultiTrajectoryMeasurement::filteredStates() {
46 
47  return theFilteredStates;
48 }
49 
50 std::map<int, TrajectoryStateOnSurface>& MultiTrajectoryMeasurement::predictedStates() {
51 
52 return thePredictedStates;
53 }
54 
55 std::map<int, float>& MultiTrajectoryMeasurement::chi2s() {
56 
57 return theChi2s;
58 }
59 
61  if(hits().empty()) {
62  std::cout << "MultiTrajectoryMeasurement::surface() no hits" << std::endl;
63  std::cout << "Program segmentation faults now. Have a nice day." << std::endl;
64  }
65  //return hits().front()->det().surface();
66  return layer()->surface();
67 }
68 
70 
71  if(theLayer == 0) std::cout << "MultiTrajectoryMeasurement::layer() is 0!" << std::endl;
72  return theLayer;
73 }
74 
std::map< int, const TransientTrackingRecHit * > theMultiHits
virtual const BoundSurface & surface() const =0
The surface of the GeometricSearchDet.
std::map< int, float > & chi2s()
std::map< int, TSOS > theFilteredStates
std::map< int, TSOS > & predictedStates()
std::map< int, const TransientTrackingRecHit * > & multiHits()
const BoundSurface & surface() const
dictionary map
Definition: Association.py:160
std::map< int, TSOS > & filteredStates()
std::vector< TransientTrackingRecHit::ConstRecHitPointer > hits() const
string const
Definition: compareJSON.py:14
std::map< int, TSOS > thePredictedStates
std::vector< TransientTrackingRecHit::ConstRecHitPointer > theRecHits
tuple cout
Definition: gather_cfg.py:41