32 std::vector< GetTrackTrajInfo::Result >
results;
64 bool posSide = track.
eta() > 0;
78 LogDebug(
"GTTI")<<
" hit in subdet="<<subDet<<
" layer="<<layer;
83 detLayer = tracker->tibLayers()[layer - 1];
85 detLayer = tracker->tobLayers()[layer - 1];
87 detLayer = posSide ? tracker->posTidLayers()[layer - 1] : tracker->negTidLayers()[layer - 1];
89 detLayer = posSide ? tracker->posTecLayers()[layer - 1] : tracker->negTecLayers()[layer - 1];
91 detLayer = tracker->pixelBarrelLayers()[layer - 1];
93 detLayer = posSide ? tracker->posPixelForwardLayers()[layer - 1] : tracker->negPixelForwardLayers()[layer - 1];
98 result.detLayer = detLayer;
101 std::pair<bool, TrajectoryStateOnSurface> layCross = detLayer->
compatible(initTSOS,
propagator, estimator);
102 if (layCross.first) {
103 LogDebug(
"GTTI")<<
"crossed layer at "<<
" x="<<layCross.second.globalPosition().x()<<
" y="<<layCross.second.globalPosition().y()<<
" z="<<layCross.second.globalPosition().z();
109 std::vector< GeometricSearchDet::DetWithState > detWithState = detLayer->
compatibleDets(initTSOS,
propagator, estimator);
111 if(detWithState.size() > 0) {
114 result.accurate =
true;
115 result.detTSOS = detWithState.front().second;
116 LogDebug(
"GTTI")<<
" Det in this layer compatible with TSOS: subdet="<<subDet<<
" layer="<<layer;
117 LogDebug(
"GTTI")<<
" crossed sensor at x="<<result.detTSOS.globalPosition().x()<<
" y="<<result.detTSOS.globalPosition().y()<<
" z="<<result.detTSOS.globalPosition().z();
122 result.accurate =
false;
123 result.detTSOS = layCross.second;
124 LogDebug(
"GTTI")<<
" WARNING: TSOS not compatible with any det in this layer, despite having a hit in it !";
129 result.valid =
false;
130 LogDebug(
"GTTI")<<
" WARNING: track failed to cross layer, despite having a hit in hit !";
133 results.push_back(result);
virtual std::pair< bool, TrajectoryStateOnSurface > compatible(const TrajectoryStateOnSurface &ts, const Propagator &, const MeasurementEstimator &) const =0
static uint32_t getLayer(uint32_t pattern)
static bool trackerHitFilter(uint32_t pattern)
GlobalPoint globalPosition() const
virtual std::vector< DetWithState > compatibleDets(const TrajectoryStateOnSurface &startingState, const Propagator &prop, const MeasurementEstimator &est) const
double eta() const
pseudorapidity of momentum vector
static uint32_t getSubStructure(uint32_t pattern)
edm::ESHandle< TransientTrackBuilder > trkTool_
static bool validHitFilter(uint32_t pattern)
const HitPattern & hitPattern() const
Access the hit pattern, indicating in which Tracker layers the track has hits.
TrajectoryStateOnSurface impactPointState() const
uint32_t getHitPattern(int position) const
tuple AnalyticalPropagator