36 theTkRecHitBuildToken(
38 theMuonRecHitBuildToken(
65 LogTrace(metname) <<
"Tracking Component changed!";
74 LogTrace(metname) <<
"GlobalTrackingGeometry changed!";
82 LogTrace(metname) <<
"Magnetic Field changed!";
91 LogTrace(metname) <<
"TransientRecHitRecord changed!";
106 if ((*hit)->isValid()) {
109 }
else if ((*hit)->geographicalId().det() ==
DetId::Muon &&
MuonKeep((*hit)->geographicalId())) {
110 if ((*hit)->geographicalId().subdetId() == 3 && !
theRPCInTheFit) {
111 LogTrace(
"Reco|TrackingTools|TrackTransformer") <<
"RPC Rec Hit discarged";
130 copy(staHits.begin(), staHits.end(), back_inserter(tkHits));
132 for (TransientTrackingRecHit::ConstRecHitContainer::const_iterator
hit = tkHits.begin();
hit != tkHits.end(); ++
hit) {
133 DetId hitId = (*hit)->geographicalId();
150 LogTrace(
"TrackFitters") <<
" UNKNOWN TRACKER HIT TYPE ";
159 LogTrace(
"TrackFitters") <<
" UNKNOWN MUON HIT TYPE ";
161 LogTrace(
"TrackFitters") <<
" UNKNOWN HIT TYPE ";
199 if (recHitsForReFit.size() < 2)
200 return vector<Trajectory>();
202 bool up = recHitsForReFit.back()->globalPosition().y() > 0 ?
true :
false;
209 LogTrace(metname) <<
"Prop Dir: " << propagationDirection <<
" FirstId " << innerId <<
" firstTSOS " << firstTSOS;
213 if (recHitsForReFit.front()->geographicalId() !=
DetId(innerId)) {
214 LogTrace(metname) <<
"Propagation occurring" << endl;
215 firstTSOS =
propagator(up)->propagate(firstTSOS, recHitsForReFit.front()->det()->surface());
216 LogTrace(metname) <<
"Final destination: " << recHitsForReFit.front()->det()->surface().position() << endl;
217 if (!firstTSOS.isValid()) {
218 LogTrace(metname) <<
"Propagation error!" << endl;
219 return vector<Trajectory>();
225 if (trajectories.empty()) {
226 LogTrace(metname) <<
"No Track refitted!" << endl;
227 return vector<Trajectory>();
230 Trajectory trajectoryBW = trajectories.front();
232 vector<Trajectory> trajectoriesSM =
smoother(up)->trajectories(trajectoryBW);
234 if (trajectoriesSM.empty()) {
235 LogTrace(metname) <<
"No Track smoothed!" << endl;
236 return vector<Trajectory>();
239 return trajectoriesSM;
static constexpr auto TEC
unsigned int tibLayer(const DetId &id) const
const std::string metname
unsigned int pxfDisk(const DetId &id) const
unsigned int tidWheel(const DetId &id) const
bool isDT(GeomDetEnumerators::SubDetector m)
TrajectoryStateOnSurface innermostMeasurementState() const
constexpr std::array< uint8_t, layerIndexSize > layer
bool getData(T &iHolder) const
ParameterSet const & parameterSet(StableProvenance const &provenance, ProcessHistory const &history)
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
unsigned int outerDetId() const
DetId of the detector on which surface the outermost state is located.
static constexpr auto TOB
TrajectoryStateOnSurface outermostMeasurementState() const
trackingRecHit_iterator recHitsEnd() const
last iterator to RecHits
std::vector< ConstRecHitPointer > ConstRecHitContainer
unsigned int pxbLayer(const DetId &id) const
static constexpr auto TIB
bool isRPC(GeomDetEnumerators::SubDetector m)
const Track & track() const
T getParameter(std::string const &) const
unsigned int layer(const DetId &id) const
bool isCSC(GeomDetEnumerators::SubDetector m)
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
int station() const
Return the station number.
int wheel() const
Return the wheel number.
unsigned int tecWheel(const DetId &id) const
static constexpr auto TID
unsigned int innerDetId() const
DetId of the detector on which surface the innermost state is located.
trackingRecHit_iterator recHitsBegin() const
first iterator to RecHits
unsigned int tobLayer(const DetId &id) const
constexpr Detector det() const
get the detector field from this detid