CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
GlobalTrajectoryBuilderBase.cc
Go to the documentation of this file.
1 
21 
22 //---------------
23 // C++ Headers --
24 //---------------
25 
26 #include <iostream>
27 #include <algorithm>
28 #include <limits>
29 
30 //-------------------------------
31 // Collaborating Class Headers --
32 //-------------------------------
33 
37 
42 
44 
49 
54 
61 
66 
69 
72 
73 //----------------
74 // Constructors --
75 //----------------
77  const MuonServiceProxy* service,
79  theLayerMeasurements(0),theTrackTransformer(0),theRegionBuilder(0), theService(service),theGlbRefitter(0) {
80 
81  theCategory = par.getUntrackedParameter<std::string>("Category", "Muon|RecoMuon|GlobalMuon|GlobalTrajectoryBuilderBase");
82 
83 
84  edm::ParameterSet trackMatcherPSet = par.getParameter<edm::ParameterSet>("GlobalMuonTrackMatcher");
85  theTrackMatcher = new GlobalMuonTrackMatcher(trackMatcherPSet,theService);
86 
87  theTrackerPropagatorName = par.getParameter<std::string>("TrackerPropagator");
88 
89  edm::ParameterSet trackTransformerPSet = par.getParameter<edm::ParameterSet>("TrackTransformer");
90  theTrackTransformer = new TrackTransformer(trackTransformerPSet);
91 
92  edm::ParameterSet regionBuilderPSet = par.getParameter<edm::ParameterSet>("MuonTrackingRegionBuilder");
93 
94  theRegionBuilder = new MuonTrackingRegionBuilder(regionBuilderPSet,iC);
95 
96  // TrackRefitter parameters
97  edm::ParameterSet refitterParameters = par.getParameter<edm::ParameterSet>("GlbRefitterParameters");
98  theGlbRefitter = new GlobalMuonRefitter(refitterParameters, theService, iC);
99 
100  theMuonHitsOption = refitterParameters.getParameter<int>("MuonHitsOption");
101  theRefitFlag = refitterParameters.getParameter<bool>("RefitFlag");
102 
103  theTrackerRecHitBuilderName = par.getParameter<std::string>("TrackerRecHitBuilder");
104  theMuonRecHitBuilderName = par.getParameter<std::string>("MuonRecHitBuilder");
105 
106  theRPCInTheFit = par.getParameter<bool>("RefitRPCHits");
107 
108  theTECxScale = par.getParameter<double>("ScaleTECxFactor");
109  theTECyScale = par.getParameter<double>("ScaleTECyFactor");
110  thePtCut = par.getParameter<double>("PtCut");
111  thePCut = par.getParameter<double>("PCut");
112 
113  theCacheId_TRH = 0;
114 
115 }
116 
117 
118 //--------------
119 // Destructor --
120 //--------------
122 
123  if (theTrackMatcher) delete theTrackMatcher;
126  if (theGlbRefitter) delete theGlbRefitter;
127 }
128 
129 
130 //
131 // set Event
132 //
134 
135  theEvent = &event;
136 
138  theRegionBuilder->setEvent(event);
139 
140  theGlbRefitter->setEvent(event);
142 
143  unsigned long long newCacheId_TRH = theService->eventSetup().get<TransientRecHitRecord>().cacheIdentifier();
144  if ( newCacheId_TRH != theCacheId_TRH ) {
145  LogDebug(theCategory) << "TransientRecHitRecord changed!";
146  theCacheId_TRH = newCacheId_TRH;
149  }
150 
151  //Retrieve tracker topology from geometry
153  theService->eventSetup().get<TrackerTopologyRcd>().get(tTopoHand);
154  theTopo=tTopoHand.product();
155 
156 }
157 
158 
159 //
160 // build a combined tracker-muon trajectory
161 //
164  MuonCandidate::CandidateContainer& tkTrajs ) const {
165 
166  LogTrace(theCategory) << " Begin Build" << std::endl;
167 
168  // tracker trajectory should be built and refit before this point
169  if ( tkTrajs.empty() ) return CandidateContainer();
170 
171  // add muon hits and refit/smooth trajectories
172  CandidateContainer refittedResult;
173  ConstRecHitContainer muonRecHits = getTransientRecHits(*(staCand.second));
174 
175  // check order of muon measurements
176  if ( (muonRecHits.size() > 1) &&
177  ( muonRecHits.front()->globalPosition().mag() >
178  muonRecHits.back()->globalPosition().mag() ) ) {
179  LogTrace(theCategory)<< " reverse order: ";
180  }
181 
182  for (auto&& it: tkTrajs){
183  // cut on tracks with low momenta
184  LogTrace(theCategory)<< " Track p and pT " << it->trackerTrack()->p() << " " << it->trackerTrack()->pt();
185  if( it->trackerTrack()->p() < thePCut || it->trackerTrack()->pt() < thePtCut ) continue;
186 
187  // If true we will run theGlbRefitter->refit from all hits
188  if (theRefitFlag){
189  ConstRecHitContainer trackerRecHits;
190  if (it->trackerTrack().isNonnull()) {
191  trackerRecHits = getTransientRecHits(*it->trackerTrack());
192  } else {
193  LogDebug(theCategory)<<" NEED HITS FROM TRAJ";
194  }
195 
196  // ToDo: Do we need the following ?:
197  // check for single TEC RecHits in trajectories in the overalp region
198  if ( std::abs(it->trackerTrack()->eta()) > 0.95 && std::abs(it->trackerTrack()->eta()) < 1.15 && it->trackerTrack()->pt() < 60 ) {
199  if ( theTECxScale < 0 || theTECyScale < 0 )
200  trackerRecHits = selectTrackerHits(trackerRecHits);
201  else
202  fixTEC(trackerRecHits,theTECxScale,theTECyScale);
203  }
204 
205  RefitDirection recHitDir = checkRecHitsOrdering(trackerRecHits);
206  if ( recHitDir == outToIn ) reverse(trackerRecHits.begin(),trackerRecHits.end());
207 
209  TrajectoryStateOnSurface innerTsos = tTT.innermostMeasurementState();
210 
212  if(it->trackerTrack()->seedRef().isAvailable()) tmpSeed = it->trackerTrack()->seedRef();
213 
214  if ( !innerTsos.isValid() ) {
215  LogTrace(theCategory) << " inner Trajectory State is invalid. ";
216  continue;
217  }
218 
219  innerTsos.rescaleError(100.);
220 
221  TC refitted0,refitted1;
222  MuonCandidate* finalTrajectory = 0;
223  Trajectory *tkTrajectory = 0;
224 
225  // tracker only track
226  if ( ! (it->trackerTrajectory() && it->trackerTrajectory()->isValid()) ) {
227  refitted0 = theTrackTransformer->transform(it->trackerTrack()) ;
228  if (!refitted0.empty()) tkTrajectory = new Trajectory(*(refitted0.begin()));
229  else edm::LogWarning(theCategory)<< " Failed to load tracker track trajectory";
230  } else tkTrajectory = it->trackerTrajectory();
231  if (tkTrajectory) tkTrajectory->setSeedRef(tmpSeed);
232 
233  // full track with all muon hits using theGlbRefitter
234  ConstRecHitContainer allRecHits = trackerRecHits;
235  allRecHits.insert(allRecHits.end(), muonRecHits.begin(),muonRecHits.end());
236  refitted1 = theGlbRefitter->refit( *it->trackerTrack(), tTT, allRecHits,theMuonHitsOption, theTopo);
237  LogTrace(theCategory)<<" This track-sta refitted to " << refitted1.size() << " trajectories";
238 
239  Trajectory *glbTrajectory1 = 0;
240  if (!refitted1.empty()) glbTrajectory1 = new Trajectory(*(refitted1.begin()));
241  else LogDebug(theCategory)<< " Failed to load global track trajectory 1";
242  if (glbTrajectory1) glbTrajectory1->setSeedRef(tmpSeed);
243 
244  finalTrajectory = 0;
245  if(glbTrajectory1 && tkTrajectory) finalTrajectory = new MuonCandidate(glbTrajectory1, it->muonTrack(), it->trackerTrack(),
246  tkTrajectory? new Trajectory(*tkTrajectory) : 0);
247 
248  if ( finalTrajectory ) refittedResult.push_back(finalTrajectory);
249  if(tkTrajectory) delete tkTrajectory;
250  }
251  else{
252  MuonCandidate* finalTrajectory = 0;
254  if(it->trackerTrack()->seedRef().isAvailable()) tmpSeed = it->trackerTrack()->seedRef();
255 
256  TC refitted0;
257  Trajectory *tkTrajectory = 0;
258  if ( ! (it->trackerTrajectory() && it->trackerTrajectory()->isValid()) ) {
259  refitted0 = theTrackTransformer->transform(it->trackerTrack());
260  if (!refitted0.empty()){
261  tkTrajectory = new Trajectory(*(refitted0.begin()));
262  }
263  else edm::LogWarning(theCategory)<< " Failed to load tracker track trajectory";
264  }
265  else tkTrajectory = it->trackerTrajectory();
266  if (tkTrajectory) tkTrajectory->setSeedRef(tmpSeed);
267  // Creating MuonCandidate using only the tracker trajectory:
268  finalTrajectory = new MuonCandidate(new Trajectory(*tkTrajectory), it->muonTrack(), it->trackerTrack(),new Trajectory(*tkTrajectory));
269  if (finalTrajectory) refittedResult.push_back(finalTrajectory);
270  if(tkTrajectory) delete tkTrajectory;
271  }
272  }
273 
274  // choose the best global fit for this Standalone Muon based on the track probability
275  CandidateContainer selectedResult;
276  MuonCandidate* tmpCand = 0;
277  if ( refittedResult.size() > 0 ) tmpCand = *(refittedResult.begin());
278  double minProb = std::numeric_limits<double>::max();
279 
280  for (auto&& iter: refittedResult){
281  double prob = trackProbability(*iter->trajectory());
282  LogTrace(theCategory)<<" refitted-track-sta with pT " << iter->trackerTrack()->pt() << " has probability " << prob;
283 
284  if (prob < minProb) {
285  minProb = prob;
286  tmpCand = iter;
287  }
288  }
289 
290  if ( tmpCand ) selectedResult.push_back(new MuonCandidate(new Trajectory(*(tmpCand->trajectory())), tmpCand->muonTrack(), tmpCand->trackerTrack(),
291  (tmpCand->trackerTrajectory())? new Trajectory( *(tmpCand->trackerTrajectory()) ):0 ) );
292 
293  for (auto&& it: refittedResult){
294  if ( it->trajectory() ) delete it->trajectory();
295  if ( it->trackerTrajectory() ) delete it->trackerTrajectory();
296  if ( it ) delete it;
297  }
298  refittedResult.clear();
299 
300  return selectedResult;
301 
302 }
303 
304 
305 //
306 // select tracker tracks within a region of interest
307 //
308 std::vector<GlobalTrajectoryBuilderBase::TrackCand>
310  const std::vector<TrackCand>& tkTs) {
311 
312  // define eta-phi region
313  RectangularEtaPhiTrackingRegion regionOfInterest = defineRegionOfInterest(staCand.second);
314 
315  // get region's etaRange and phiMargin
316  //UNUSED: PixelRecoRange<float> etaRange = regionOfInterest.etaRange();
317  //UNUSED: TkTrackingRegionsMargin<float> phiMargin = regionOfInterest.phiMargin();
318 
319  std::vector<TrackCand> result;
320 
321  double deltaR_max = 1.0;
322 
323  for (auto&& is: tkTs){
324  double deltaR_tmp = deltaR(static_cast<double>(regionOfInterest.direction().eta()),
325  static_cast<double>(regionOfInterest.direction().phi()),
326  is.second->eta(), is.second->phi());
327 
328  // for each trackCand in region, add trajectory and add to result
329  //if ( inEtaRange && inPhiRange ) {
330  if (deltaR_tmp < deltaR_max) {
331  TrackCand tmpCand = TrackCand(is);
332  result.push_back(tmpCand);
333  }
334  }
335 
336  return result;
337 
338 }
339 
340 
341 //
342 // define a region of interest within the tracker
343 //
346 
348 
349  TkTrackingRegionsMargin<float> etaMargin(std::abs(region1->etaRange().min() - region1->etaRange().mean()),
350  std::abs(region1->etaRange().max() - region1->etaRange().mean()));
351 
352  RectangularEtaPhiTrackingRegion region2(region1->direction(),
353  region1->origin(),
354  region1->ptMin(),
355  region1->originRBound(),
356  region1->originZBound(),
357  etaMargin,
358  region1->phiMargin());
359 
360  delete region1;
361  return region2;
362 
363 }
364 
365 
366 //
367 // calculate the tail probability (-ln(P)) of a fit
368 //
369 double
371 
372  if ( track.ndof() > 0 && track.chiSquared() > 0 ) {
373  return -LnChiSquaredProbability(track.chiSquared(), track.ndof());
374  } else {
375  return 0.0;
376  }
377 
378 }
379 
380 
381 //
382 // print RecHits
383 //
385 
386  LogTrace(theCategory) << "Used RecHits: " << hits.size();
387  for (auto&& ir: hits){
388  if ( !ir->isValid() ) {
389  LogTrace(theCategory) << "invalid RecHit";
390  continue;
391  }
392 
393  const GlobalPoint& pos = ir->globalPosition();
394 
396  << "r = " << sqrt(pos.x() * pos.x() + pos.y() * pos.y())
397  << " z = " << pos.z()
398  << " dimension = " << ir->dimension()
399  << " " << ir->det()->geographicalId().det()
400  << " " << ir->det()->subDetector();
401 
402  }
403 
404 }
405 
406 //
407 // check order of RechIts on a trajectory
408 //
411 
412  if ( !recHits.empty() ) {
413  ConstRecHitContainer::const_iterator frontHit = recHits.begin();
414  ConstRecHitContainer::const_iterator backHit = recHits.end() - 1;
415  while ( !(*frontHit)->isValid() && frontHit != backHit ) {frontHit++;}
416  while ( !(*backHit)->isValid() && backHit != frontHit ) {backHit--;}
417 
418  double rFirst = (*frontHit)->globalPosition().mag();
419  double rLast = (*backHit) ->globalPosition().mag();
420 
421  if ( rFirst < rLast ) return inToOut;
422  else if (rFirst > rLast) return outToIn;
423  else {
424  edm::LogError(theCategory) << "Impossible to determine the rechits order" << std::endl;
425  return undetermined;
426  }
427  }
428  else {
429  edm::LogError(theCategory) << "Impossible to determine the rechits order" << std::endl;
430  return undetermined;
431  }
432 }
433 
434 
435 //
436 // select trajectories with only a single TEC hit
437 //
440 
441  int nTEC(0);
442 
444  for (auto&& i: all){
445  if ( !i->isValid() ) continue;
446  if ( i->det()->geographicalId().det() == DetId::Tracker &&
447  i->det()->geographicalId().subdetId() == StripSubdetector::TEC) {
448  nTEC++;
449  } else {
450  hits.push_back(i);
451  }
452  if ( nTEC > 1 ) return all;
453  }
454 
455  return hits;
456 
457 }
458 
459 
460 //
461 // rescale errors of outermost TEC RecHit
462 //
464  double scl_x,
465  double scl_y) const {
466 
467  int nTEC(0);
468  ConstRecHitContainer::iterator lone_tec;
469 
470  for ( ConstRecHitContainer::iterator i = all.begin(); i != all.end(); i++) {
471  if ( !(*i)->isValid() ) continue;
472 
473  if ( (*i)->det()->geographicalId().det() == DetId::Tracker &&
474  (*i)->det()->geographicalId().subdetId() == StripSubdetector::TEC) {
475  lone_tec = i;
476  nTEC++;
477 
478  if ( (i+1) != all.end() && (*(i+1))->isValid() &&
479  (*(i+1))->det()->geographicalId().det() == DetId::Tracker &&
480  (*(i+1))->det()->geographicalId().subdetId() == StripSubdetector::TEC) {
481  nTEC++;
482  break;
483  }
484  }
485 
486  if (nTEC > 1) break;
487  }
488 
489  int hitDet = (*lone_tec)->hit()->geographicalId().det();
490  int hitSubDet = (*lone_tec)->hit()->geographicalId().subdetId();
491  if ( nTEC == 1 && (*lone_tec)->hit()->isValid() &&
492  hitDet == DetId::Tracker && hitSubDet == StripSubdetector::TEC) {
493 
494  // rescale the TEC rechit error matrix in its rotated frame
495  const SiStripRecHit2D* strip = dynamic_cast<const SiStripRecHit2D*>((*lone_tec)->hit());
496  if (strip && strip->det() ) {
497  LocalPoint pos = strip->localPosition();
498  if ((*lone_tec)->detUnit()) {
499  const StripTopology* topology = dynamic_cast<const StripTopology*>(&(*lone_tec)->detUnit()->topology());
500  if (topology) {
501  // rescale the local error along/perp the strip by a factor
502  float angle = topology->stripAngle(topology->strip((*lone_tec)->hit()->localPosition()));
504  LocalError rotError = error.rotate(angle);
505  LocalError scaledError(rotError.xx() * scl_x * scl_x, 0, rotError.yy() * scl_y * scl_y);
506  error = scaledError.rotate(-angle);
511  SiStripRecHit2D* st = new SiStripRecHit2D(pos,error,
512  *strip->det(),
513  strip->cluster());
514  *lone_tec = MuonTransientTrackingRecHit::build((*lone_tec)->det(),st);
515 
516  }
517  }
518  }
519  }
520 
521 }
522 
523 
525 //
526 // get transient RecHits
527 //
530 
532 
533 
534 
536 
537  auto tkbuilder = static_cast<TkTransientTrackingRecHitBuilder const *>(theTrackerRecHitBuilder.product());
538  auto hitCloner = tkbuilder->cloner();
539  for (trackingRecHit_iterator hit = track.recHitsBegin(); hit != track.recHitsEnd(); ++hit) {
540  if((*hit)->isValid()) {
541  DetId recoid = (*hit)->geographicalId();
542  if ( recoid.det() == DetId::Tracker ) {
543  if (!(*hit)->hasPositionAndError()){
544  TrajectoryStateOnSurface predTsos = theService->propagator(theTrackerPropagatorName)->propagate(currTsos, theService->trackingGeometry()->idToDet(recoid)->surface());
545 
546  if ( !predTsos.isValid() ) {
547  edm::LogError("MissingTransientHit")
548  <<"Could not get a tsos on the hit surface. We will miss a tracking hit.";
549  continue;
550  }
551  currTsos = predTsos;
552  auto h = (**hit).cloneForFit(*tkbuilder->geometry()->idToDet( (**hit).geographicalId() ) );
553  result.emplace_back(hitCloner.makeShared(h,predTsos));
554  }else{
555  result.push_back((*hit)->cloneSH());
556  }
557  } else if ( recoid.det() == DetId::Muon ) {
558  if ( (*hit)->geographicalId().subdetId() == 3 && !theRPCInTheFit) {
559  LogDebug(theCategory) << "RPC Rec Hit discarded";
560  continue;
561  }
562  result.push_back(theMuonRecHitBuilder->build(&**hit));
563  }
564  }
565  }
566 
567  return result;
568 }
#define LogDebug(id)
const reco::TrackRef muonTrack() const
return muon track
Definition: MuonCandidate.h:43
RectangularEtaPhiTrackingRegion * region(const reco::TrackRef &) const
Define tracking region.
float originRBound() const
bounds the particle vertex in the transverse plane
T getParameter(std::string const &) const
MuonCandidate::CandidateContainer CandidateContainer
void printHits(const ConstRecHitContainer &) const
print all RecHits of a trajectory
T getUntrackedParameter(std::string const &, T const &) const
int i
Definition: DBlmapReader.cc:9
float xx() const
Definition: LocalError.h:24
const edm::EventSetup & eventSetup() const
get the whole EventSetup
ConstRecHitContainer selectTrackerHits(const ConstRecHitContainer &) const
select tracker hits; exclude some tracker hits in the global trajectory
virtual void setEvent(const edm::Event &)
pass the Event to the algo at each event
GlobalPoint const & origin() const
std::pair< const Trajectory *, reco::TrackRef > TrackCand
T max() const
virtual float stripAngle(float strip) const =0
CaloTopology const * topology(0)
edm::ESHandle< TransientTrackingRecHitBuilder > theMuonRecHitBuilder
float LnChiSquaredProbability(double chiSquared, double nrDOF)
virtual void setEvent(const edm::Event &)
Pass the Event to the algo at each event.
Geom::Phi< T > phi() const
Definition: PV3DBase.h:69
T y() const
Definition: PV3DBase.h:63
void setServices(const edm::EventSetup &)
set the services needed by the TrackTransformer
std::vector< TrackCand > chooseRegionalTrackerTracks(const TrackCand &, const std::vector< TrackCand > &)
choose tracker tracks within region of interest
T min() const
edm::ESHandle< MagneticField > magneticField() const
get the magnetic field
virtual float strip(const LocalPoint &) const =0
const reco::TrackRef trackerTrack() const
return tracker track
Definition: MuonCandidate.h:46
void fixTEC(ConstRecHitContainer &all, double scl_x, double scl_y) const
rescale errors of outermost TEC RecHit
GlobalVector const & direction() const
the direction around which region is constructed
double trackProbability(const Trajectory &) const
calculate chi2 probability (-ln(P))
virtual LocalError localPositionError() const
float yy() const
Definition: LocalError.h:26
const GeomDet * det() const
virtual ~GlobalTrajectoryBuilderBase()
destructor
T sqrt(T t)
Definition: SSEVec.h:48
Trajectory * trackerTrajectory() const
return tracker trajectory
Definition: MuonCandidate.h:49
T z() const
Definition: PV3DBase.h:64
tuple result
Definition: query.py:137
TransientTrackingRecHit::ConstRecHitContainer getTransientRecHits(const reco::Track &) const
get transient RecHits of a Track
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
ClusterRef cluster() const
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
virtual void setServices(const edm::EventSetup &)
set the services needed by the TrackTransformer
trackingRecHit_iterator recHitsBegin() const
Iterator to first hit on the track.
Definition: Track.h:104
std::vector< MuonCandidate * > CandidateContainer
Definition: MuonCandidate.h:20
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
#define LogTrace(id)
float originZBound() const
bounds the particle vertex in the longitudinal plane
TransientTrackingRecHit::ConstRecHitContainer ConstRecHitContainer
std::vector< ConstRecHitPointer > ConstRecHitContainer
GlobalTrajectoryBuilderBase(const edm::ParameterSet &, const MuonServiceProxy *, edm::ConsumesCollector &)
constructor with Parameter Set and MuonServiceProxy
double deltaR(double eta1, double eta2, double phi1, double phi2)
Definition: TreeUtility.cc:17
virtual void setEvent(const edm::Event &)
pass the Event to the algo at each event
Definition: DetId.h:18
int ndof(bool bon=true) const
Definition: Trajectory.cc:78
GlobalMuonTrackMatcher * theTrackMatcher
T mean() const
const T & get() const
Definition: EventSetup.h:55
T const * product() const
Definition: ESHandle.h:86
MuonTrajectoryBuilder::CandidateContainer build(const TrackCand &, MuonTrajectoryBuilder::CandidateContainer &) const
build combined trajectory from sta Track and tracker RecHits
float ptMin() const
minimal pt of interest
void setSeedRef(const edm::RefToBase< TrajectorySeed > &seedRef)
Definition: Trajectory.h:308
float chiSquared() const
Definition: Trajectory.h:252
RectangularEtaPhiTrackingRegion defineRegionOfInterest(const reco::TrackRef &) const
define region of interest with tracker
edm::ESHandle< GlobalTrackingGeometry > trackingGeometry() const
get the tracking geometry
T eta() const
Definition: PV3DBase.h:76
virtual std::vector< Trajectory > transform(const reco::Track &) const
Convert a reco::Track into Trajectory.
RefitDirection checkRecHitsOrdering(const ConstRecHitContainer &) const
This does nothing now.
MuonTrackingRegionBuilder * theRegionBuilder
Trajectory * trajectory() const
return trajectory
Definition: MuonCandidate.h:40
LocalError rotate(float x, float y) const
Return a new LocalError, rotated by an angle defined by the direction (x,y)
Definition: LocalError.h:39
Detector det() const
get the detector field from this detid
Definition: DetId.h:35
T x() const
Definition: PV3DBase.h:62
virtual LocalPoint localPosition() const
static RecHitPointer build(const GeomDet *geom, const TrackingRecHit *rh)
FIXME virtual ConstMuonRecHitContainer specificTransientHits() const;.
std::vector< Trajectory > refit(const reco::Track &globalTrack, const int theMuonHitsOption, const TrackerTopology *tTopo) const
build combined trajectory from sta Track and tracker RecHits
edm::ESHandle< Propagator > propagator(std::string propagatorName) const
get the propagator
edm::ESHandle< TransientTrackingRecHitBuilder > theTrackerRecHitBuilder
TrackingRecHitCollection::base::const_iterator trackingRecHit_iterator
iterator over a vector of reference to TrackingRecHit in the same collection
TrajectoryStateOnSurface innerStateOnSurface(const reco::Track &tk, const TrackingGeometry &geom, const MagneticField *field, bool withErr=true)
T angle(T x1, T y1, T z1, T x2, T y2, T z2)
Definition: angle.h:11
trackingRecHit_iterator recHitsEnd() const
Iterator to last hit on the track.
Definition: Track.h:109
const Range & etaRange() const
allowed eta range [eta_min, eta_max] interval