36 theTkRecHitBuildToken(
38 theMuonRecHitBuildToken(
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;
207 unsigned int innerId =
up ?
track.track().outerDetId() :
track.track().innerDetId();
209 LogTrace(
metname) <<
"Prop Dir: " << propagationDirection <<
" FirstId " << innerId <<
" firstTSOS " << firstTSOS;
213 if (recHitsForReFit.front()->geographicalId() !=
DetId(innerId)) {
216 LogTrace(
metname) <<
"Final destination: " << recHitsForReFit.front()->det()->surface().position() << endl;
217 if (!firstTSOS.isValid()) {
219 return vector<Trajectory>();
227 return vector<Trajectory>();
234 if (trajectoriesSM.empty()) {
236 return vector<Trajectory>();
239 return trajectoriesSM;
int station() const
Return the station number.
static constexpr auto TEC
T getParameter(std::string const &) const
unsigned int tobLayer(const DetId &id) const
unsigned int pxbLayer(const DetId &id) const
virtual TrajectoryContainer trajectories(const Trajectory &traj) const
const std::string metname
unsigned int tidWheel(const DetId &id) const
unsigned int tecWheel(const DetId &id) const
bool isDT(GeomDetEnumerators::SubDetector m)
ParameterSet const & parameterSet(StableProvenance const &provenance, ProcessHistory const &history)
TrajectoryStateOnSurface propagate(STA const &state, SUR const &surface) const
const GeomDet * idToDet(DetId) const override
constexpr Detector det() const
get the detector field from this detid
unsigned int layer(const DetId &id) const
constexpr std::array< uint8_t, layerIndexSize > layer
virtual RecHitPointer build(const TrackingRecHit *p) const =0
build a tracking rechit from an existing rechit
unsigned int pxfDisk(const DetId &id) const
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
static constexpr auto TOB
std::vector< ConstRecHitPointer > ConstRecHitContainer
static constexpr auto TIB
bool isRPC(GeomDetEnumerators::SubDetector m)
const Surface::PositionType & position() const
The position (origin of the R.F.)
int wheel() const
Return the wheel number.
bool isCSC(GeomDetEnumerators::SubDetector m)
unsigned int tibLayer(const DetId &id) const
static constexpr auto TID
std::vector< Trajectory > fit(const Trajectory &traj, fitType type=standard) const