RecoTracker
MeasurementDet
plugins
NonPropagatingDetMeasurements.cc
Go to the documentation of this file.
1
#include "
NonPropagatingDetMeasurements.h
"
2
#include "
TrackingTools/PatternTools/interface/TrajectoryMeasurement.h
"
3
#include "
TrackingTools/DetLayers/interface/MeasurementEstimator.h
"
4
#include "
TrackingTools/PatternTools/interface/TrajMeasLessEstim.h
"
5
#include "
TrackingTools/MeasurementDet/interface/MeasurementDet.h
"
6
#include "
TrackingTools/TransientTrackingRecHit/interface/InvalidTransientRecHit.h
"
7
8
std::vector<TrajectoryMeasurement>
NonPropagatingDetMeasurements::get
(
const
MeasurementDet
& det,
9
const
TrajectoryStateOnSurface
& stateOnThisDet,
10
const
MeasurementEstimator
& est,
11
const
MeasurementTrackerEvent
&
data
)
const
{
12
throw
cms::Exception
(
"THIS SHOULD NOT BE CALLED"
);
13
std::vector<TrajectoryMeasurement>
result
;
14
/*
15
MeasurementDet::RecHitContainer allHits = det.recHits(stateOnThisDet, data);
16
for (MeasurementDet::RecHitContainer::const_iterator ihit=allHits.begin();
17
ihit != allHits.end(); ihit++) {
18
std::pair<bool,double> diffEst = est.estimate( stateOnThisDet, **ihit);
19
if ( diffEst.first) {
20
result.push_back( TrajectoryMeasurement( stateOnThisDet, *ihit,
21
diffEst.second));
22
}
23
}
24
//GIO// std::cerr << "NonPropagatingDetMeasurements: " << allHits.size() << " => " << result.size() << std::endl;
25
if ( result.empty()) {
26
// create a TrajectoryMeasurement with an invalid RecHit and zero estimate
27
result.push_back( TrajectoryMeasurement( stateOnThisDet,
28
InvalidTransientRecHit::build(&det.geomDet()), 0.F));
29
}
30
else {
31
// sort results according to estimator value
32
if ( result.size() > 1) {
33
sort( result.begin(), result.end(), TrajMeasLessEstim());
34
}
35
}
36
*/
37
return
result
;
38
}
MeasurementEstimator.h
TrajMeasLessEstim.h
MeasurementEstimator
Definition:
MeasurementEstimator.h:19
TrajectoryMeasurement.h
Exception
Definition:
hltDiff.cc:245
mps_fire.result
result
Definition:
mps_fire.py:311
NonPropagatingDetMeasurements.h
TrajectoryStateOnSurface
Definition:
TrajectoryStateOnSurface.h:16
MeasurementDet
Definition:
MeasurementDet.h:16
MeasurementTrackerEvent
Definition:
MeasurementTrackerEvent.h:16
InvalidTransientRecHit.h
NonPropagatingDetMeasurements::get
std::vector< TrajectoryMeasurement > get(const MeasurementDet &det, const TrajectoryStateOnSurface &stateOnThisDet, const MeasurementEstimator &est, const MeasurementTrackerEvent &data) const
Definition:
NonPropagatingDetMeasurements.cc:8
data
char data[epos_bytes_allocation]
Definition:
EPOS_Wrapper.h:79
MeasurementDet.h
Generated for CMSSW Reference Manual by
1.8.14