test
Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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>
9
NonPropagatingDetMeasurements::get
(
const
MeasurementDet
& det,
10
const
TrajectoryStateOnSurface
& stateOnThisDet,
11
const
MeasurementEstimator
& est,
12
const
MeasurementTrackerEvent
&
data
)
const
13
{
14
throw
cms::Exception
(
"THIS SHOULD NOT BE CALLED"
);
15
std::vector<TrajectoryMeasurement>
result
;
16
/*
17
MeasurementDet::RecHitContainer allHits = det.recHits(stateOnThisDet, data);
18
for (MeasurementDet::RecHitContainer::const_iterator ihit=allHits.begin();
19
ihit != allHits.end(); ihit++) {
20
std::pair<bool,double> diffEst = est.estimate( stateOnThisDet, **ihit);
21
if ( diffEst.first) {
22
result.push_back( TrajectoryMeasurement( stateOnThisDet, *ihit,
23
diffEst.second));
24
}
25
}
26
//GIO// std::cerr << "NonPropagatingDetMeasurements: " << allHits.size() << " => " << result.size() << std::endl;
27
if ( result.empty()) {
28
// create a TrajectoryMeasurement with an invalid RecHit and zero estimate
29
result.push_back( TrajectoryMeasurement( stateOnThisDet,
30
InvalidTransientRecHit::build(&det.geomDet()), 0.F));
31
}
32
else {
33
// sort results according to estimator value
34
if ( result.size() > 1) {
35
sort( result.begin(), result.end(), TrajMeasLessEstim());
36
}
37
}
38
*/
39
return
result
;
40
}
MeasurementEstimator.h
TrajMeasLessEstim.h
MeasurementEstimator
Definition:
MeasurementEstimator.h:20
TrajectoryMeasurement.h
Exception
Definition:
hltDiff.cc:290
NonPropagatingDetMeasurements.h
NonPropagatingDetMeasurements::get
std::vector< TrajectoryMeasurement > get(const MeasurementDet &det, const TrajectoryStateOnSurface &stateOnThisDet, const MeasurementEstimator &est, const MeasurementTrackerEvent &data) const
Definition:
NonPropagatingDetMeasurements.cc:9
TrajectoryStateOnSurface
Definition:
TrajectoryStateOnSurface.h:17
MeasurementDet
Definition:
MeasurementDet.h:18
mps_fire.result
tuple result
Definition:
mps_fire.py:83
MeasurementTrackerEvent
Definition:
MeasurementTrackerEvent.h:21
InvalidTransientRecHit.h
MeasurementDet.h
AlCaHLTBitMon_QueryRunRegistry.data
tuple data
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:288
Generated for CMSSW Reference Manual by
1.8.5