13 vector<TrajectoryMeasurement>
20 vector<DetWithState> compatDets = layer.
compatibleDets( startingState, prop, est);
22 vector<TrajectoryMeasurement>
result;
23 if (compatDets.empty()) {
24 pair<bool, TrajectoryStateOnSurface> compat =
32 LogDebug(
"LayerMeasurements")<<
"adding a missing hit.";
33 }
else LogDebug(
"LayerMeasurements")<<
"adding not measurement.";
38 vector<TrajectoryMeasurement> tmpResult = gsdm.
get( layer, compatDets, startingState, prop, est);
40 for(vector<TrajectoryMeasurement>::const_iterator tmpIt=tmpResult.begin();tmpIt!=tmpResult.end();tmpIt++){
41 LogDebug(
"LayerMeasurements")<<
"adding a measurement which rechit is: "<<(tmpIt->recHit()->isValid()?
"valid":
"invalid");
42 result.push_back(
TrajectoryMeasurement(tmpIt->predictedState(),tmpIt->recHit(),tmpIt->estimate(),&layer) );
49 vector<TrajectoryMeasurementGroup>
55 vector<TrajectoryMeasurementGroup>
result;
59 result.reserve(groups.size());
60 for (vector<DetGroup>::const_iterator grp=groups.begin(); grp!=groups.end(); grp++) {
61 if ( grp->empty() )
continue;
63 vector<TrajectoryMeasurement> tmpVec;
64 for (DetGroup::const_iterator idet=grp->begin(); idet!=grp->end(); idet++) {
65 const MeasurementDet* mdet = theDetSystem->idToDet(idet->det()->geographicalId());
69 vector<TrajectoryMeasurement>
tmp =
75 #if defined( __GXX_EXPERIMENTAL_CXX0X__)
76 tmpVec.insert( tmpVec.end(), std::make_move_iterator(tmp.begin()), std::make_move_iterator(tmp.end()));
78 tmpVec.insert( tmpVec.end(), tmp.begin(), tmp.end());
83 for(vector<TrajectoryMeasurement>::iterator tmpIt=tmpVec.begin();tmpIt!=tmpVec.end();tmpIt++){
84 LogDebug(
"LayerMeasurements")<<
"[grouped] temporaryly adding a measurement which rechit is: "<<(tmpIt->recHit()->isValid()?
"valid":
"invalid");
85 tmpIt->setLayer(&layer);
91 addInvalidMeas( tmpVec, *grp,layer);
92 #if defined( __GXX_EXPERIMENTAL_CXX0X__)
101 if (result.empty()) {
102 pair<bool, TrajectoryStateOnSurface> compat = layer.
compatible( startingState, prop, est);
105 vector<TrajectoryMeasurement> tmVec(1,inval);
116 if (!measVec.empty()) {
122 else if (!group.empty()) {
virtual std::pair< bool, TrajectoryStateOnSurface > compatible(const TrajectoryStateOnSurface &ts, const Propagator &, const MeasurementEstimator &) const =0
std::vector< TrajectoryMeasurement > measurements(const DetLayer &layer, const TrajectoryStateOnSurface &startingState, const Propagator &prop, const MeasurementEstimator &est) const
virtual std::vector< DetGroup > groupedCompatibleDets(const TrajectoryStateOnSurface &startingState, const Propagator &prop, const MeasurementEstimator &est) const
virtual std::vector< DetWithState > compatibleDets(const TrajectoryStateOnSurface &startingState, const Propagator &prop, const MeasurementEstimator &est) const
virtual std::vector< TrajectoryMeasurement > fastMeasurements(const TrajectoryStateOnSurface &stateOnThisDet, const TrajectoryStateOnSurface &startingState, const Propagator &, const MeasurementEstimator &) const =0
std::pair< const GeomDet *, TrajectoryStateOnSurface > DetWithState
void addInvalidMeas(std::vector< TrajectoryMeasurement > &measVec, const DetGroup &group, const DetLayer &layer) const
std::vector< std::vector< double > > tmp
std::vector< TrajectoryMeasurementGroup > groupedMeasurements(const DetLayer &layer, const TrajectoryStateOnSurface &startingState, const Propagator &prop, const MeasurementEstimator &est) const
std::pair< const GeomDet *, TrajectoryStateOnSurface > DetWithState
std::vector< TrajectoryMeasurement > get(const GeometricSearchDet &det, const std::vector< DetWithState > &compatDets, const TrajectoryState &ts, const Propagator &prop, const MeasurementEstimator &est) const