42 typedef std::vector<TrajectoryMeasurement>::const_iterator aMeas;
43 std::vector<const DetLayer*> allayers;
45 for (std::vector<const DetLayer*>::const_iterator il = nl.begin(); il != nl.end(); il++) {
46 allayers.push_back(*il);
48 for (std::vector<const DetLayer*>::const_iterator i2l = n2l.begin(); i2l != n2l.end(); i2l++) {
49 allayers.push_back(*i2l);
57 for (std::vector<const DetLayer*>::const_iterator il = allayers.begin(); il != allayers.end(); il++)
61 std::vector<TrajectoryMeasurement> pixelMeasurements;
63 pixelMeasurements = theLayerMeasurements->
measurements( **il, tsos , *aProp, *aBarrelMeas);
65 pixelMeasurements = theLayerMeasurements->
measurements( **il, tsos, *aProp, *aForwardMeas);
67 for (aMeas
m=pixelMeasurements.begin();
m!=pixelMeasurements.end();
m++){
68 if (
m == pixelMeasurements.begin()){
69 CLHEP::Hep3Vector prediction(
m->forwardPredictedState().globalPosition().x(),
70 m->forwardPredictedState().globalPosition().y(),
71 m->forwardPredictedState().globalPosition().z());
74 if (
m->recHit()->isValid()) {
89 std::vector<TrajectoryMeasurement> pixelMeasurements;
90 pixelMeasurements = theLayerMeasurements->
measurements( (**il), tsos , *aProp, *aForwardMeas);
92 for (aMeas
m=pixelMeasurements.begin();
m!=pixelMeasurements.end();
m++)
95 if (tTopo->
tidRing(
m->recHit()->geographicalId()) > 1)
continue;
96 if (
m == pixelMeasurements.begin())
98 CLHEP::Hep3Vector prediction(
m->forwardPredictedState().globalPosition().x(),
99 m->forwardPredictedState().globalPosition().y(),
100 m->forwardPredictedState().globalPosition().z());
103 if (
m->recHit()->isValid())
115 std::vector<TrajectoryMeasurement> pixelMeasurements;
116 pixelMeasurements = theLayerMeasurements->
measurements( (**il), tsos , *aProp, *aForwardMeas);
118 for (aMeas
m=pixelMeasurements.begin();
m!=pixelMeasurements.end();
m++)
121 if (tTopo->
tecRing(
m->recHit()->geographicalId()) > 1)
continue;
122 if (tTopo->
tecWheel(
m->recHit()->geographicalId()) > 3)
continue;
123 if (
m == pixelMeasurements.begin())
125 CLHEP::Hep3Vector prediction(
m->forwardPredictedState().globalPosition().x(),
126 m->forwardPredictedState().globalPosition().y(),
127 m->forwardPredictedState().globalPosition().z());
130 if (
m->recHit()->isValid())
std::vector< TrajectoryMeasurement > measurements(const DetLayer &layer, const TrajectoryStateOnSurface &startingState, const Propagator &prop, const MeasurementEstimator &est) const
virtual const BoundSurface & surface() const =0
The surface of the GeometricSearchDet.
PixelMatchNextLayers(const LayerMeasurements *theLayerMeasurements, const DetLayer *ilayer, FreeTrajectoryState &aFTS, const PropagatorWithMaterial *aProp, const BarrelMeasurementEstimator *aBarrelMeas, const ForwardMeasurementEstimator *aForwardMeas, const TrackerTopology *tTopo, const NavigationSchool &navigationSchool, bool searchInTIDTEC)
unsigned int tidRing(const DetId &id) const
virtual Location location() const =0
Which part of the detector (barrel, endcap)
std::vector< TrajectoryMeasurement > measurementsHere
std::vector< TrajectoryMeasurement > badMeasurementsInNextLayers() const
unsigned int tecRing(const DetId &id) const
ring id
TransientTrackingRecHit::RecHitContainer hitsHere
std::vector< CLHEP::Hep3Vector > predictionInNextLayers() const
std::vector< ConstRecHitPointer > RecHitContainer
TransientTrackingRecHit::RecHitContainer hitsInNextLayers() const
std::vector< TrajectoryMeasurement > badMeasurementsHere
std::vector< TrajectoryMeasurement > measurementsInNextLayers() const
std::vector< const DetLayer * > nextLayers(const DetLayer &detLayer, Args &&...args) const
NavigationDirection.
unsigned int tecWheel(const DetId &id) const
std::vector< CLHEP::Hep3Vector > predictionHere