CMS 3D CMS Logo

List of all members | Classes | Public Types | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Private Attributes
GlobalTrajectoryBuilderBase Class Referenceabstract

#include <GlobalTrajectoryBuilderBase.h>

Inheritance diagram for GlobalTrajectoryBuilderBase:
MuonTrajectoryBuilder GlobalMuonTrajectoryBuilder L3MuonTrajectoryBuilder

Classes

struct  ComparatorInOut
 

Public Types

typedef MuonTransientTrackingRecHit::ConstMuonRecHitContainer ConstMuonRecHitContainer
 
typedef MuonTransientTrackingRecHit::ConstMuonRecHitPointer ConstMuonRecHitPointer
 
typedef TransientTrackingRecHit::ConstRecHitContainer ConstRecHitContainer
 
typedef TransientTrackingRecHit::ConstRecHitPointer ConstRecHitPointer
 
typedef MuonTransientTrackingRecHit::MuonRecHitContainer MuonRecHitContainer
 
typedef MuonTransientTrackingRecHit::MuonRecHitPointer MuonRecHitPointer
 
typedef TransientTrackingRecHit::RecHitContainer RecHitContainer
 
typedef TransientTrackingRecHit::RecHitPointer RecHitPointer
 
typedef std::vector< TrajectoryTC
 
typedef TC::const_iterator TI
 
- Public Types inherited from MuonTrajectoryBuilder
typedef MuonCandidate::CandidateContainer CandidateContainer
 
typedef std::pair< const Trajectory *, reco::TrackRefTrackCand
 
typedef MuonCandidate::TrajectoryContainer TrajectoryContainer
 

Public Member Functions

 GlobalTrajectoryBuilderBase (const edm::ParameterSet &, const MuonServiceProxy *, edm::ConsumesCollector &)
 constructor with Parameter Set and MuonServiceProxy More...
 
void setEvent (const edm::Event &) override
 pass the Event to the algo at each event More...
 
MuonTrajectoryBuilder::TrajectoryContainer trajectories (const TrajectorySeed &) override
 dummy implementation, unused in this class More...
 
 ~GlobalTrajectoryBuilderBase () override
 destructor More...
 
- Public Member Functions inherited from MuonTrajectoryBuilder
 MuonTrajectoryBuilder ()
 constructor More...
 
virtual CandidateContainer trajectories (const TrackCand &)=0
 return a container reconstructed muons starting from a given track More...
 
virtual ~MuonTrajectoryBuilder ()
 destructor More...
 

Protected Types

enum  RefitDirection { inToOut, outToIn, undetermined }
 

Protected Member Functions

void addTraj (TrackCand &)
 if TrackCand has only a TrackRef, attempt to add Trajectory* More...
 
MuonTrajectoryBuilder::CandidateContainer build (const TrackCand &, MuonTrajectoryBuilder::CandidateContainer &) const
 build combined trajectory from sta Track and tracker RecHits More...
 
void checkMuonHits (const reco::Track &, ConstRecHitContainer &, ConstRecHitContainer &, std::vector< int > &) const
 check muon RecHits, calculate chamber occupancy and select hits to be used in the final fit More...
 
RefitDirection checkRecHitsOrdering (const ConstRecHitContainer &) const
 This does nothing now. More...
 
std::vector< TrackCandchooseRegionalTrackerTracks (const TrackCand &, const std::vector< TrackCand > &)
 choose tracker tracks within region of interest More...
 
const TrajectorychooseTrajectory (const std::vector< Trajectory * > &, int) const
 choose final trajectory More...
 
RectangularEtaPhiTrackingRegion defineRegionOfInterest (const reco::TrackRef &) const
 define region of interest with tracker More...
 
void fixTEC (ConstRecHitContainer &all, double scl_x, double scl_y) const
 rescale errors of outermost TEC RecHit More...
 
TransientTrackingRecHit::ConstRecHitContainer getTransientRecHits (const reco::Track &) const
 get transient RecHits of a Track More...
 
virtual std::vector< TrackCandmakeTkCandCollection (const TrackCand &)=0
 make a TrackCand collection using tracker Track, Trajectory information More...
 
void printHits (const ConstRecHitContainer &) const
 print all RecHits of a trajectory More...
 
ConstRecHitContainer selectMuonHits (const Trajectory &, const std::vector< int > &) const
 select muon hits compatible with trajectory; check hits in chambers with showers More...
 
ConstRecHitContainer selectTrackerHits (const ConstRecHitContainer &) const
 select tracker hits; exclude some tracker hits in the global trajectory More...
 
const MuonServiceProxyservice () const
 
GlobalMuonTrackMatchertrackMatcher () const
 
double trackProbability (const Trajectory &) const
 calculate chi2 probability (-ln(P)) More...
 

Protected Attributes

std::string theCategory
 
float thePCut
 
float thePtCut
 

Private Attributes

unsigned long long theCacheId_TRH
 
const edm::EventtheEvent
 
GlobalMuonRefittertheGlbRefitter
 
MuonDetLayerMeasurementstheLayerMeasurements
 
int theMuonHitsOption
 
edm::ESHandle< TransientTrackingRecHitBuildertheMuonRecHitBuilder
 
std::string theMuonRecHitBuilderName
 
bool theRefitFlag
 
MuonTrackingRegionBuildertheRegionBuilder
 
bool theRPCInTheFit
 
const MuonServiceProxytheService
 
float theTECxScale
 
float theTECyScale
 
const TrackerTopologytheTopo
 
std::string theTrackerPropagatorName
 
edm::ESHandle< TransientTrackingRecHitBuildertheTrackerRecHitBuilder
 
std::string theTrackerRecHitBuilderName
 
GlobalMuonTrackMatchertheTrackMatcher
 
TrackTransformertheTrackTransformer
 

Detailed Description

Base class for GlobalMuonTrajectoryBuilder and L3MuonTrajectoryBuilder Provide common tools and interface to reconstruct muons starting from a muon track reconstructed in the standalone muon system (with DT, CSC and RPC information). It tries to reconstruct the corresponding track in the tracker and performs matching between the reconstructed tracks in the muon system and the tracker.

Author
N. Neumeister Purdue University
C. Liu Purdue University
A. Everett Purdue University

Definition at line 42 of file GlobalTrajectoryBuilderBase.h.

Member Typedef Documentation

◆ ConstMuonRecHitContainer

Definition at line 51 of file GlobalTrajectoryBuilderBase.h.

◆ ConstMuonRecHitPointer

Definition at line 49 of file GlobalTrajectoryBuilderBase.h.

◆ ConstRecHitContainer

Definition at line 45 of file GlobalTrajectoryBuilderBase.h.

◆ ConstRecHitPointer

Definition at line 47 of file GlobalTrajectoryBuilderBase.h.

◆ MuonRecHitContainer

Definition at line 50 of file GlobalTrajectoryBuilderBase.h.

◆ MuonRecHitPointer

Definition at line 48 of file GlobalTrajectoryBuilderBase.h.

◆ RecHitContainer

Definition at line 44 of file GlobalTrajectoryBuilderBase.h.

◆ RecHitPointer

Definition at line 46 of file GlobalTrajectoryBuilderBase.h.

◆ TC

Definition at line 52 of file GlobalTrajectoryBuilderBase.h.

◆ TI

typedef TC::const_iterator GlobalTrajectoryBuilderBase::TI

Definition at line 53 of file GlobalTrajectoryBuilderBase.h.

Member Enumeration Documentation

◆ RefitDirection

Enumerator
inToOut 
outToIn 
undetermined 

Definition at line 70 of file GlobalTrajectoryBuilderBase.h.

Constructor & Destructor Documentation

◆ GlobalTrajectoryBuilderBase()

GlobalTrajectoryBuilderBase::GlobalTrajectoryBuilderBase ( const edm::ParameterSet par,
const MuonServiceProxy service,
edm::ConsumesCollector iC 
)

constructor with Parameter Set and MuonServiceProxy

Class: GlobalTrajectoryBuilderBase

Base class for GlobalMuonTrajectoryBuilder and L3MuonTrajectoryBuilder Provide common tools and interface to reconstruct muons starting from a muon track reconstructed in the standalone muon system (with DT, CSC and RPC information). It tries to reconstruct the corresponding track in the tracker and performs matching between the reconstructed tracks in the muon system and the tracker.

Author
N. Neumeister Purdue University
C. Liu Purdue University
A. Everett Purdue University

Definition at line 76 of file GlobalTrajectoryBuilderBase.cc.

79  : theLayerMeasurements(nullptr),
80  theTrackTransformer(nullptr),
81  theRegionBuilder(nullptr),
83  theGlbRefitter(nullptr) {
84  theCategory =
85  par.getUntrackedParameter<std::string>("Category", "Muon|RecoMuon|GlobalMuon|GlobalTrajectoryBuilderBase");
86 
87  edm::ParameterSet trackMatcherPSet = par.getParameter<edm::ParameterSet>("GlobalMuonTrackMatcher");
88  theTrackMatcher = new GlobalMuonTrackMatcher(trackMatcherPSet, theService);
89 
90  theTrackerPropagatorName = par.getParameter<std::string>("TrackerPropagator");
91 
92  edm::ParameterSet trackTransformerPSet = par.getParameter<edm::ParameterSet>("TrackTransformer");
93  theTrackTransformer = new TrackTransformer(trackTransformerPSet);
94 
95  edm::ParameterSet regionBuilderPSet = par.getParameter<edm::ParameterSet>("MuonTrackingRegionBuilder");
96 
97  theRegionBuilder = new MuonTrackingRegionBuilder(regionBuilderPSet, iC);
98 
99  // TrackRefitter parameters
100  edm::ParameterSet refitterParameters = par.getParameter<edm::ParameterSet>("GlbRefitterParameters");
101  theGlbRefitter = new GlobalMuonRefitter(refitterParameters, theService, iC);
102 
103  theMuonHitsOption = refitterParameters.getParameter<int>("MuonHitsOption");
104  theRefitFlag = refitterParameters.getParameter<bool>("RefitFlag");
105 
106  theTrackerRecHitBuilderName = par.getParameter<std::string>("TrackerRecHitBuilder");
107  theMuonRecHitBuilderName = par.getParameter<std::string>("MuonRecHitBuilder");
108 
109  theRPCInTheFit = par.getParameter<bool>("RefitRPCHits");
110 
111  theTECxScale = par.getParameter<double>("ScaleTECxFactor");
112  theTECyScale = par.getParameter<double>("ScaleTECyFactor");
113  thePtCut = par.getParameter<double>("PtCut");
114  thePCut = par.getParameter<double>("PCut");
115 
116  theCacheId_TRH = 0;
117 }

References edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), GlobalMuonRefitter_cff::GlobalMuonRefitter, HLT_2018_cff::GlobalMuonTrackMatcher, HLT_2018_cff::MuonTrackingRegionBuilder, AlCaHLTBitMon_QueryRunRegistry::string, theCacheId_TRH, theCategory, theGlbRefitter, theMuonHitsOption, theMuonRecHitBuilderName, thePCut, thePtCut, theRefitFlag, theRegionBuilder, theRPCInTheFit, theService, theTECxScale, theTECyScale, theTrackerPropagatorName, theTrackerRecHitBuilderName, theTrackMatcher, theTrackTransformer, and HLT_2018_cff::TrackTransformer.

◆ ~GlobalTrajectoryBuilderBase()

GlobalTrajectoryBuilderBase::~GlobalTrajectoryBuilderBase ( )
override

destructor

Definition at line 122 of file GlobalTrajectoryBuilderBase.cc.

122  {
123  if (theTrackMatcher)
124  delete theTrackMatcher;
125  if (theRegionBuilder)
126  delete theRegionBuilder;
128  delete theTrackTransformer;
129  if (theGlbRefitter)
130  delete theGlbRefitter;
131 }

References theGlbRefitter, theRegionBuilder, theTrackMatcher, and theTrackTransformer.

Member Function Documentation

◆ addTraj()

void GlobalTrajectoryBuilderBase::addTraj ( TrackCand )
inlineprotected

if TrackCand has only a TrackRef, attempt to add Trajectory*

Definition at line 106 of file GlobalTrajectoryBuilderBase.h.

106 {}

◆ build()

MuonCandidate::CandidateContainer GlobalTrajectoryBuilderBase::build ( const TrackCand staCand,
MuonTrajectoryBuilder::CandidateContainer tkTrajs 
) const
protected

build combined trajectory from sta Track and tracker RecHits

Definition at line 162 of file GlobalTrajectoryBuilderBase.cc.

163  {
164  LogTrace(theCategory) << " Begin Build" << std::endl;
165 
166  // tracker trajectory should be built and refit before this point
167  if (tkTrajs.empty())
168  return CandidateContainer();
169 
170  // add muon hits and refit/smooth trajectories
171  CandidateContainer refittedResult;
172  ConstRecHitContainer muonRecHits = getTransientRecHits(*(staCand.second));
173 
174  // check order of muon measurements
175  if ((muonRecHits.size() > 1) &&
176  (muonRecHits.front()->globalPosition().mag() > muonRecHits.back()->globalPosition().mag())) {
177  LogTrace(theCategory) << " reverse order: ";
178  }
179 
180  for (auto&& it : tkTrajs) {
181  // cut on tracks with low momenta
182  LogTrace(theCategory) << " Track p and pT " << it->trackerTrack()->p() << " " << it->trackerTrack()->pt();
183  if (it->trackerTrack()->p() < thePCut || it->trackerTrack()->pt() < thePtCut)
184  continue;
185 
186  // If true we will run theGlbRefitter->refit from all hits
187  if (theRefitFlag) {
188  ConstRecHitContainer trackerRecHits;
189  if (it->trackerTrack().isNonnull()) {
190  trackerRecHits = getTransientRecHits(*it->trackerTrack());
191  } else {
192  LogDebug(theCategory) << " NEED HITS FROM TRAJ";
193  }
194 
195  // ToDo: Do we need the following ?:
196  // check for single TEC RecHits in trajectories in the overalp region
197  if (std::abs(it->trackerTrack()->eta()) > 0.95 && std::abs(it->trackerTrack()->eta()) < 1.15 &&
198  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)
207  reverse(trackerRecHits.begin(), trackerRecHits.end());
208 
209  reco::TransientTrack tTT(it->trackerTrack(), &*theService->magneticField(), theService->trackingGeometry());
210  TrajectoryStateOnSurface innerTsos = tTT.innermostMeasurementState();
211 
213  if (it->trackerTrack()->seedRef().isAvailable())
214  tmpSeed = it->trackerTrack()->seedRef();
215 
216  if (!innerTsos.isValid()) {
217  LogTrace(theCategory) << " inner Trajectory State is invalid. ";
218  continue;
219  }
220 
221  innerTsos.rescaleError(100.);
222 
223  TC refitted0, refitted1;
224  std::unique_ptr<Trajectory> tkTrajectory;
225 
226  // tracker only track
227  if (!(it->trackerTrajectory() && it->trackerTrajectory()->isValid())) {
228  refitted0 = theTrackTransformer->transform(it->trackerTrack());
229  if (!refitted0.empty())
230  tkTrajectory = std::make_unique<Trajectory>(*(refitted0.begin()));
231  else
232  edm::LogWarning(theCategory) << " Failed to load tracker track trajectory";
233  } else
234  tkTrajectory = it->releaseTrackerTrajectory();
235  if (tkTrajectory)
236  tkTrajectory->setSeedRef(tmpSeed);
237 
238  // full track with all muon hits using theGlbRefitter
239  ConstRecHitContainer allRecHits = trackerRecHits;
240  allRecHits.insert(allRecHits.end(), muonRecHits.begin(), muonRecHits.end());
241  refitted1 = theGlbRefitter->refit(*it->trackerTrack(), tTT, allRecHits, theMuonHitsOption, theTopo);
242  LogTrace(theCategory) << " This track-sta refitted to " << refitted1.size() << " trajectories";
243 
244  std::unique_ptr<Trajectory> glbTrajectory1;
245  if (!refitted1.empty())
246  glbTrajectory1 = std::make_unique<Trajectory>(*(refitted1.begin()));
247  else
248  LogDebug(theCategory) << " Failed to load global track trajectory 1";
249  if (glbTrajectory1)
250  glbTrajectory1->setSeedRef(tmpSeed);
251 
252  if (glbTrajectory1 && tkTrajectory) {
253  refittedResult.emplace_back(std::make_unique<MuonCandidate>(
254  std::move(glbTrajectory1), it->muonTrack(), it->trackerTrack(), std::move(tkTrajectory)));
255  }
256  } else {
258  if (it->trackerTrack()->seedRef().isAvailable())
259  tmpSeed = it->trackerTrack()->seedRef();
260 
261  TC refitted0;
262  std::unique_ptr<Trajectory> tkTrajectory;
263  if (!(it->trackerTrajectory() && it->trackerTrajectory()->isValid())) {
264  refitted0 = theTrackTransformer->transform(it->trackerTrack());
265  if (!refitted0.empty()) {
266  tkTrajectory = std::make_unique<Trajectory>(*(refitted0.begin()));
267  } else
268  edm::LogWarning(theCategory) << " Failed to load tracker track trajectory";
269  } else
270  tkTrajectory = it->releaseTrackerTrajectory();
271  std::unique_ptr<Trajectory> cpy;
272  if (tkTrajectory) {
273  tkTrajectory->setSeedRef(tmpSeed);
274  cpy = std::make_unique<Trajectory>(*tkTrajectory);
275  }
276  // Creating MuonCandidate using only the tracker trajectory:
277  refittedResult.emplace_back(std::make_unique<MuonCandidate>(
278  std::move(tkTrajectory), it->muonTrack(), it->trackerTrack(), std::move(cpy)));
279  }
280  }
281 
282  // choose the best global fit for this Standalone Muon based on the track probability
283  CandidateContainer selectedResult;
284  std::unique_ptr<MuonCandidate> tmpCand;
286 
287  for (auto&& cand : refittedResult) {
288  double prob = trackProbability(*cand->trajectory());
289  LogTrace(theCategory) << " refitted-track-sta with pT " << cand->trackerTrack()->pt() << " has probability "
290  << prob;
291 
292  if (prob < minProb or not tmpCand) {
293  minProb = prob;
294  tmpCand = std::move(cand);
295  }
296  }
297 
298  if (tmpCand)
299  selectedResult.push_back(std::move(tmpCand));
300 
301  refittedResult.clear();
302 
303  return selectedResult;
304 }

References funct::abs(), checkRecHitsOrdering(), fixTEC(), getTransientRecHits(), LogDebug, LogTrace, MuonServiceProxy::magneticField(), SiStripPI::max, conversionTrackMerger_cfi::minProb, eostools::move(), or, outToIn, TtFullHadEvtBuilder_cfi::prob, GlobalMuonRefitter::refit(), groupFilesInBlocks::reverse, selectTrackerHits(), theCategory, theGlbRefitter, theMuonHitsOption, thePCut, thePtCut, theRefitFlag, theService, theTECxScale, theTECyScale, theTopo, theTrackTransformer, MuonServiceProxy::trackingGeometry(), trackProbability(), and TrackTransformer::transform().

Referenced by GlobalMuonTrajectoryBuilder::trajectories(), and L3MuonTrajectoryBuilder::trajectories().

◆ checkMuonHits()

void GlobalTrajectoryBuilderBase::checkMuonHits ( const reco::Track ,
ConstRecHitContainer ,
ConstRecHitContainer ,
std::vector< int > &   
) const
protected

check muon RecHits, calculate chamber occupancy and select hits to be used in the final fit

◆ checkRecHitsOrdering()

GlobalTrajectoryBuilderBase::RefitDirection GlobalTrajectoryBuilderBase::checkRecHitsOrdering ( const ConstRecHitContainer recHits) const
protected

This does nothing now.

check order of RechIts on a trajectory

Definition at line 393 of file GlobalTrajectoryBuilderBase.cc.

394  {
395  if (!recHits.empty()) {
396  ConstRecHitContainer::const_iterator frontHit = recHits.begin();
397  ConstRecHitContainer::const_iterator backHit = recHits.end() - 1;
398  while (!(*frontHit)->isValid() && frontHit != backHit) {
399  frontHit++;
400  }
401  while (!(*backHit)->isValid() && backHit != frontHit) {
402  backHit--;
403  }
404 
405  double rFirst = (*frontHit)->globalPosition().mag();
406  double rLast = (*backHit)->globalPosition().mag();
407 
408  if (rFirst < rLast)
409  return inToOut;
410  else if (rFirst > rLast)
411  return outToIn;
412  else {
413  edm::LogError(theCategory) << "Impossible to determine the rechits order" << std::endl;
414  return undetermined;
415  }
416  } else {
417  edm::LogError(theCategory) << "Impossible to determine the rechits order" << std::endl;
418  return undetermined;
419  }
420 }

References inToOut, outToIn, FastTrackerRecHitMaskProducer_cfi::recHits, theCategory, and undetermined.

Referenced by build().

◆ chooseRegionalTrackerTracks()

std::vector< GlobalTrajectoryBuilderBase::TrackCand > GlobalTrajectoryBuilderBase::chooseRegionalTrackerTracks ( const TrackCand staCand,
const std::vector< TrackCand > &  tkTs 
)
protected

choose tracker tracks within region of interest

Definition at line 309 of file GlobalTrajectoryBuilderBase.cc.

310  {
311  // define eta-phi region
312  RectangularEtaPhiTrackingRegion regionOfInterest = defineRegionOfInterest(staCand.second);
313 
314  // get region's etaRange and phiMargin
315  //UNUSED: PixelRecoRange<float> etaRange = regionOfInterest.etaRange();
316  //UNUSED: TkTrackingRegionsMargin<float> phiMargin = regionOfInterest.phiMargin();
317 
318  std::vector<TrackCand> result;
319 
320  double deltaR_max = 1.0;
321 
322  for (auto&& is : tkTs) {
323  double deltaR_tmp = deltaR(static_cast<double>(regionOfInterest.direction().eta()),
324  static_cast<double>(regionOfInterest.direction().phi()),
325  is.second->eta(),
326  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 }

References defineRegionOfInterest(), PbPb_ZMuSkimMuonDPG_cff::deltaR, TrackingRegion::direction(), PV3DBase< T, PVType, FrameType >::eta(), PV3DBase< T, PVType, FrameType >::phi(), and mps_fire::result.

Referenced by GlobalMuonTrajectoryBuilder::makeTkCandCollection().

◆ chooseTrajectory()

const Trajectory* GlobalTrajectoryBuilderBase::chooseTrajectory ( const std::vector< Trajectory * > &  ,
int   
) const
protected

choose final trajectory

◆ defineRegionOfInterest()

RectangularEtaPhiTrackingRegion GlobalTrajectoryBuilderBase::defineRegionOfInterest ( const reco::TrackRef staTrack) const
protected

define region of interest with tracker

Definition at line 342 of file GlobalTrajectoryBuilderBase.cc.

343  {
344  std::unique_ptr<RectangularEtaPhiTrackingRegion> region1 = theRegionBuilder->region(staTrack);
345 
346  TkTrackingRegionsMargin<float> etaMargin(std::abs(region1->etaRange().min() - region1->etaRange().mean()),
347  std::abs(region1->etaRange().max() - region1->etaRange().mean()));
348 
349  RectangularEtaPhiTrackingRegion region2(region1->direction(),
350  region1->origin(),
351  region1->ptMin(),
352  region1->originRBound(),
353  region1->originZBound(),
354  etaMargin,
355  region1->phiMargin());
356 
357  return region2;
358 }

References funct::abs(), MuonTrackingRegionBuilder::region(), and theRegionBuilder.

Referenced by chooseRegionalTrackerTracks().

◆ fixTEC()

void GlobalTrajectoryBuilderBase::fixTEC ( ConstRecHitContainer all,
double  scl_x,
double  scl_y 
) const
protected

rescale errors of outermost TEC RecHit

freeze this hit, make sure it will not be recomputed during fitting / the implemetantion below works with cloning / to get a RecHitPointer to SiStripRecHit2D, the only method that works is / RecHitPointer MuonTransientTrackingRecHit::build(const GeomDet*,const TrackingRecHit*)

Definition at line 449 of file GlobalTrajectoryBuilderBase.cc.

449  {
450  int nTEC(0);
451  ConstRecHitContainer::iterator lone_tec;
452 
453  for (ConstRecHitContainer::iterator i = all.begin(); i != all.end(); i++) {
454  if (!(*i)->isValid())
455  continue;
456 
457  if ((*i)->det()->geographicalId().det() == DetId::Tracker &&
458  (*i)->det()->geographicalId().subdetId() == StripSubdetector::TEC) {
459  lone_tec = i;
460  nTEC++;
461 
462  if ((i + 1) != all.end() && (*(i + 1))->isValid() &&
463  (*(i + 1))->det()->geographicalId().det() == DetId::Tracker &&
464  (*(i + 1))->det()->geographicalId().subdetId() == StripSubdetector::TEC) {
465  nTEC++;
466  break;
467  }
468  }
469 
470  if (nTEC > 1)
471  break;
472  }
473 
474  int hitDet = (*lone_tec)->hit()->geographicalId().det();
475  int hitSubDet = (*lone_tec)->hit()->geographicalId().subdetId();
476  if (nTEC == 1 && (*lone_tec)->hit()->isValid() && hitDet == DetId::Tracker && hitSubDet == StripSubdetector::TEC) {
477  // rescale the TEC rechit error matrix in its rotated frame
478  const SiStripRecHit2D* strip = dynamic_cast<const SiStripRecHit2D*>((*lone_tec)->hit());
479  if (strip && strip->det()) {
480  LocalPoint pos = strip->localPosition();
481  if ((*lone_tec)->detUnit()) {
482  const StripTopology* topology = dynamic_cast<const StripTopology*>(&(*lone_tec)->detUnit()->topology());
483  if (topology) {
484  // rescale the local error along/perp the strip by a factor
485  float angle = topology->stripAngle(topology->strip((*lone_tec)->hit()->localPosition()));
486  LocalError error = strip->localPositionError();
487  LocalError rotError = error.rotate(angle);
488  LocalError scaledError(rotError.xx() * scl_x * scl_x, 0, rotError.yy() * scl_y * scl_y);
489  error = scaledError.rotate(-angle);
494  SiStripRecHit2D* st = new SiStripRecHit2D(pos, error, *strip->det(), strip->cluster());
495  *lone_tec = MuonTransientTrackingRecHit::build((*lone_tec)->det(), st);
496  }
497  }
498  }
499  }
500 }

References python.cmstools::all(), angle(), MuonTransientTrackingRecHit::build(), relativeConstraints::error, mps_fire::i, digitizers_cfi::strip, StripSubdetector::TEC, ecaldqm::topology(), DetId::Tracker, LocalError::xx(), and LocalError::yy().

Referenced by build().

◆ getTransientRecHits()

TransientTrackingRecHit::ConstRecHitContainer GlobalTrajectoryBuilderBase::getTransientRecHits ( const reco::Track track) const
protected

get transient RecHits of a Track

Definition at line 506 of file GlobalTrajectoryBuilderBase.cc.

507  {
509 
512 
513  auto tkbuilder = static_cast<TkTransientTrackingRecHitBuilder const*>(theTrackerRecHitBuilder.product());
514  auto hitCloner = tkbuilder->cloner();
515  for (trackingRecHit_iterator hit = track.recHitsBegin(); hit != track.recHitsEnd(); ++hit) {
516  if ((*hit)->isValid()) {
517  DetId recoid = (*hit)->geographicalId();
518  if (recoid.det() == DetId::Tracker) {
519  if (!(*hit)->hasPositionAndError()) {
520  TrajectoryStateOnSurface predTsos =
522  ->propagate(currTsos, theService->trackingGeometry()->idToDet(recoid)->surface());
523 
524  if (!predTsos.isValid()) {
525  edm::LogError("MissingTransientHit")
526  << "Could not get a tsos on the hit surface. We will miss a tracking hit.";
527  continue;
528  }
529  currTsos = predTsos;
530  auto h = (**hit).cloneForFit(*tkbuilder->geometry()->idToDet((**hit).geographicalId()));
531  result.emplace_back(hitCloner.makeShared(h, predTsos));
532  } else {
533  result.push_back((*hit)->cloneSH());
534  }
535  } else if (recoid.det() == DetId::Muon) {
536  if ((*hit)->geographicalId().subdetId() == 3 && !theRPCInTheFit) {
537  LogDebug(theCategory) << "RPC Rec Hit discarded";
538  continue;
539  }
540  result.push_back(theMuonRecHitBuilder->build(&**hit));
541  }
542  }
543  }
544 
545  return result;
546 }

References TransientTrackingRecHitBuilder::build(), DetId::det(), GlobalTrackingGeometry::idToDet(), trajectoryStateTransform::innerStateOnSurface(), TrajectoryStateOnSurface::isValid(), LogDebug, MuonServiceProxy::magneticField(), DetId::Muon, edm::ESHandle< T >::product(), Propagator::propagate(), MuonServiceProxy::propagator(), mps_fire::result, GeomDet::surface(), theCategory, theMuonRecHitBuilder, theRPCInTheFit, theService, theTrackerPropagatorName, theTrackerRecHitBuilder, HLT_2018_cff::track, DetId::Tracker, and MuonServiceProxy::trackingGeometry().

Referenced by build().

◆ makeTkCandCollection()

virtual std::vector<TrackCand> GlobalTrajectoryBuilderBase::makeTkCandCollection ( const TrackCand )
protectedpure virtual

make a TrackCand collection using tracker Track, Trajectory information

Implemented in L3MuonTrajectoryBuilder, and GlobalMuonTrajectoryBuilder.

◆ printHits()

void GlobalTrajectoryBuilderBase::printHits ( const ConstRecHitContainer hits) const
protected

print all RecHits of a trajectory

Definition at line 374 of file GlobalTrajectoryBuilderBase.cc.

374  {
375  LogTrace(theCategory) << "Used RecHits: " << hits.size();
376  for (auto&& ir : hits) {
377  if (!ir->isValid()) {
378  LogTrace(theCategory) << "invalid RecHit";
379  continue;
380  }
381 
382  const GlobalPoint& pos = ir->globalPosition();
383 
384  LogTrace(theCategory) << "r = " << sqrt(pos.x() * pos.x() + pos.y() * pos.y()) << " z = " << pos.z()
385  << " dimension = " << ir->dimension() << " " << ir->det()->geographicalId().det() << " "
386  << ir->det()->subDetector();
387  }
388 }

References hfClusterShapes_cfi::hits, LogTrace, mathSSE::sqrt(), and theCategory.

Referenced by ntuplePrintersDiff.TrackingParticlePrinter::__call__(), ntuplePrintersDiff.SeedPrinter::diff(), ntuplePrintersDiff.TrackPrinter::diff(), ntuplePrintersDiff.TrackingParticlePrinter::diff(), ntuplePrintersDiff.SeedPrinter::printSeed(), and ntuplePrintersDiff.TrackPrinter::printTrack().

◆ selectMuonHits()

ConstRecHitContainer GlobalTrajectoryBuilderBase::selectMuonHits ( const Trajectory ,
const std::vector< int > &   
) const
protected

select muon hits compatible with trajectory; check hits in chambers with showers

◆ selectTrackerHits()

GlobalTrajectoryBuilderBase::ConstRecHitContainer GlobalTrajectoryBuilderBase::selectTrackerHits ( const ConstRecHitContainer all) const
protected

select tracker hits; exclude some tracker hits in the global trajectory

Definition at line 425 of file GlobalTrajectoryBuilderBase.cc.

426  {
427  int nTEC(0);
428 
430  for (auto&& i : all) {
431  if (!i->isValid())
432  continue;
433  if (i->det()->geographicalId().det() == DetId::Tracker &&
434  i->det()->geographicalId().subdetId() == StripSubdetector::TEC) {
435  nTEC++;
436  } else {
437  hits.push_back(i);
438  }
439  if (nTEC > 1)
440  return all;
441  }
442 
443  return hits;
444 }

References python.cmstools::all(), hfClusterShapes_cfi::hits, mps_fire::i, StripSubdetector::TEC, and DetId::Tracker.

Referenced by build().

◆ service()

const MuonServiceProxy* GlobalTrajectoryBuilderBase::service ( ) const
inlineprotected

Definition at line 118 of file GlobalTrajectoryBuilderBase.h.

118 { return theService; }

References theService.

◆ setEvent()

void GlobalTrajectoryBuilderBase::setEvent ( const edm::Event event)
overridevirtual

pass the Event to the algo at each event

Implements MuonTrajectoryBuilder.

Reimplemented in L3MuonTrajectoryBuilder.

Definition at line 136 of file GlobalTrajectoryBuilderBase.cc.

136  {
137  theEvent = &event;
138 
141 
144 
145  unsigned long long newCacheId_TRH = theService->eventSetup().get<TransientRecHitRecord>().cacheIdentifier();
146  if (newCacheId_TRH != theCacheId_TRH) {
147  LogDebug(theCategory) << "TransientRecHitRecord changed!";
148  theCacheId_TRH = newCacheId_TRH;
151  }
152 
153  //Retrieve tracker topology from geometry
156  theTopo = tTopoHand.product();
157 }

References event(), MuonServiceProxy::eventSetup(), edm::EventSetup::get(), get, LogDebug, edm::ESHandle< T >::product(), MuonTrackingRegionBuilder::setEvent(), GlobalMuonRefitter::setEvent(), GlobalMuonRefitter::setServices(), TrackTransformer::setServices(), theCacheId_TRH, theCategory, theEvent, theGlbRefitter, theMuonRecHitBuilder, theMuonRecHitBuilderName, theRegionBuilder, theService, theTopo, theTrackerRecHitBuilder, theTrackerRecHitBuilderName, and theTrackTransformer.

Referenced by GlobalMuonTrajectoryBuilder::setEvent(), and L3MuonTrajectoryBuilder::setEvent().

◆ trackMatcher()

GlobalMuonTrackMatcher* GlobalTrajectoryBuilderBase::trackMatcher ( ) const
inlineprotected

◆ trackProbability()

double GlobalTrajectoryBuilderBase::trackProbability ( const Trajectory track) const
protected

calculate chi2 probability (-ln(P))

Definition at line 363 of file GlobalTrajectoryBuilderBase.cc.

363  {
364  if (track.ndof() > 0 && track.chiSquared() > 0) {
365  return -LnChiSquaredProbability(track.chiSquared(), track.ndof());
366  } else {
367  return 0.0;
368  }
369 }

References LnChiSquaredProbability(), and HLT_2018_cff::track.

Referenced by build().

◆ trajectories()

MuonTrajectoryBuilder::TrajectoryContainer GlobalTrajectoryBuilderBase::trajectories ( const TrajectorySeed )
inlineoverridevirtual

dummy implementation, unused in this class

Implements MuonTrajectoryBuilder.

Definition at line 62 of file GlobalTrajectoryBuilderBase.h.

62  {
64  }

Member Data Documentation

◆ theCacheId_TRH

unsigned long long GlobalTrajectoryBuilderBase::theCacheId_TRH
private

Definition at line 154 of file GlobalTrajectoryBuilderBase.h.

Referenced by GlobalTrajectoryBuilderBase(), and setEvent().

◆ theCategory

std::string GlobalTrajectoryBuilderBase::theCategory
protected

◆ theEvent

const edm::Event* GlobalTrajectoryBuilderBase::theEvent
private

Definition at line 161 of file GlobalTrajectoryBuilderBase.h.

Referenced by setEvent().

◆ theGlbRefitter

GlobalMuonRefitter* GlobalTrajectoryBuilderBase::theGlbRefitter
private

◆ theLayerMeasurements

MuonDetLayerMeasurements* GlobalTrajectoryBuilderBase::theLayerMeasurements
private

Definition at line 149 of file GlobalTrajectoryBuilderBase.h.

◆ theMuonHitsOption

int GlobalTrajectoryBuilderBase::theMuonHitsOption
private

Definition at line 157 of file GlobalTrajectoryBuilderBase.h.

Referenced by build(), and GlobalTrajectoryBuilderBase().

◆ theMuonRecHitBuilder

edm::ESHandle<TransientTrackingRecHitBuilder> GlobalTrajectoryBuilderBase::theMuonRecHitBuilder
private

Definition at line 165 of file GlobalTrajectoryBuilderBase.h.

Referenced by getTransientRecHits(), and setEvent().

◆ theMuonRecHitBuilderName

std::string GlobalTrajectoryBuilderBase::theMuonRecHitBuilderName
private

Definition at line 164 of file GlobalTrajectoryBuilderBase.h.

Referenced by GlobalTrajectoryBuilderBase(), and setEvent().

◆ thePCut

float GlobalTrajectoryBuilderBase::thePCut
protected

Definition at line 145 of file GlobalTrajectoryBuilderBase.h.

Referenced by build(), and GlobalTrajectoryBuilderBase().

◆ thePtCut

float GlobalTrajectoryBuilderBase::thePtCut
protected

◆ theRefitFlag

bool GlobalTrajectoryBuilderBase::theRefitFlag
private

Definition at line 156 of file GlobalTrajectoryBuilderBase.h.

Referenced by build(), and GlobalTrajectoryBuilderBase().

◆ theRegionBuilder

MuonTrackingRegionBuilder* GlobalTrajectoryBuilderBase::theRegionBuilder
private

◆ theRPCInTheFit

bool GlobalTrajectoryBuilderBase::theRPCInTheFit
private

◆ theService

const MuonServiceProxy* GlobalTrajectoryBuilderBase::theService
private

◆ theTECxScale

float GlobalTrajectoryBuilderBase::theTECxScale
private

Definition at line 158 of file GlobalTrajectoryBuilderBase.h.

Referenced by build(), and GlobalTrajectoryBuilderBase().

◆ theTECyScale

float GlobalTrajectoryBuilderBase::theTECyScale
private

Definition at line 159 of file GlobalTrajectoryBuilderBase.h.

Referenced by build(), and GlobalTrajectoryBuilderBase().

◆ theTopo

const TrackerTopology* GlobalTrajectoryBuilderBase::theTopo
private

Definition at line 166 of file GlobalTrajectoryBuilderBase.h.

Referenced by build(), and setEvent().

◆ theTrackerPropagatorName

std::string GlobalTrajectoryBuilderBase::theTrackerPropagatorName
private

◆ theTrackerRecHitBuilder

edm::ESHandle<TransientTrackingRecHitBuilder> GlobalTrajectoryBuilderBase::theTrackerRecHitBuilder
private

Definition at line 163 of file GlobalTrajectoryBuilderBase.h.

Referenced by getTransientRecHits(), and setEvent().

◆ theTrackerRecHitBuilderName

std::string GlobalTrajectoryBuilderBase::theTrackerRecHitBuilderName
private

Definition at line 162 of file GlobalTrajectoryBuilderBase.h.

Referenced by GlobalTrajectoryBuilderBase(), and setEvent().

◆ theTrackMatcher

GlobalMuonTrackMatcher* GlobalTrajectoryBuilderBase::theTrackMatcher
private

◆ theTrackTransformer

TrackTransformer* GlobalTrajectoryBuilderBase::theTrackTransformer
private
GlobalMuonRefitter_cff.GlobalMuonRefitter
GlobalMuonRefitter
Definition: GlobalMuonRefitter_cff.py:3
edm::ESHandle::product
T const * product() const
Definition: ESHandle.h:86
service
Definition: service.py:1
GlobalTrajectoryBuilderBase::thePtCut
float thePtCut
Definition: GlobalTrajectoryBuilderBase.h:144
mps_fire.i
i
Definition: mps_fire.py:355
GlobalTrajectoryBuilderBase::theService
const MuonServiceProxy * theService
Definition: GlobalTrajectoryBuilderBase.h:152
RectangularEtaPhiTrackingRegion
Definition: RectangularEtaPhiTrackingRegion.h:25
GlobalTrajectoryBuilderBase::theEvent
const edm::Event * theEvent
Definition: GlobalTrajectoryBuilderBase.h:161
hfClusterShapes_cfi.hits
hits
Definition: hfClusterShapes_cfi.py:5
GlobalTrajectoryBuilderBase::theTrackerPropagatorName
std::string theTrackerPropagatorName
Definition: GlobalTrajectoryBuilderBase.h:160
TrackTransformer::setServices
void setServices(const edm::EventSetup &) override
set the services needed by the TrackTransformer
Definition: TrackTransformer.cc:66
GlobalTrajectoryBuilderBase::theTrackerRecHitBuilder
edm::ESHandle< TransientTrackingRecHitBuilder > theTrackerRecHitBuilder
Definition: GlobalTrajectoryBuilderBase.h:163
digitizers_cfi.strip
strip
Definition: digitizers_cfi.py:19
DetId::det
constexpr Detector det() const
get the detector field from this detid
Definition: DetId.h:46
pos
Definition: PixelAliasList.h:18
GlobalTrajectoryBuilderBase::theMuonRecHitBuilder
edm::ESHandle< TransientTrackingRecHitBuilder > theMuonRecHitBuilder
Definition: GlobalTrajectoryBuilderBase.h:165
HLT_2018_cff.TrackTransformer
TrackTransformer
Definition: HLT_2018_cff.py:8374
TransientRecHitRecord
Definition: TransientRecHitRecord.h:14
TrackTransformer::transform
std::vector< Trajectory > transform(const reco::Track &) const override
Convert a reco::Track into Trajectory.
Definition: TrackTransformer.cc:164
MuonTrackingRegionBuilder::region
std::unique_ptr< RectangularEtaPhiTrackingRegion > region(const reco::TrackRef &) const
Define tracking region.
Definition: MuonTrackingRegionBuilder.cc:117
SiStripRecHit2D
Definition: SiStripRecHit2D.h:7
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
TransientTrackingRecHitBuilder::build
virtual RecHitPointer build(const TrackingRecHit *p) const =0
build a tracking rechit from an existing rechit
GlobalTrajectoryBuilderBase::TC
std::vector< Trajectory > TC
Definition: GlobalTrajectoryBuilderBase.h:52
relativeConstraints.error
error
Definition: relativeConstraints.py:53
python.cmstools.all
def all(container)
workaround iterator generators for ROOT classes
Definition: cmstools.py:26
MuonTrajectoryBuilder::CandidateContainer
MuonCandidate::CandidateContainer CandidateContainer
Definition: MuonTrajectoryBuilder.h:24
groupFilesInBlocks.reverse
reverse
Definition: groupFilesInBlocks.py:131
GlobalTrajectoryBuilderBase::theTECxScale
float theTECxScale
Definition: GlobalTrajectoryBuilderBase.h:158
MuonTrackingRegionBuilder::setEvent
virtual void setEvent(const edm::Event &)
Pass the Event to the algo at each event.
Definition: MuonTrackingRegionBuilder.cc:124
DetId
Definition: DetId.h:17
GeomDet::surface
const Plane & surface() const
The nominal surface of the GeomDet.
Definition: GeomDet.h:37
TrajectoryStateOnSurface
Definition: TrajectoryStateOnSurface.h:16
GlobalTrajectoryBuilderBase::theRefitFlag
bool theRefitFlag
Definition: GlobalTrajectoryBuilderBase.h:156
edm::EventSetup::get
T get() const
Definition: EventSetup.h:73
GlobalTrajectoryBuilderBase::inToOut
Definition: GlobalTrajectoryBuilderBase.h:70
LocalError::xx
float xx() const
Definition: LocalError.h:22
ecaldqm::topology
const CaloTopology * topology(nullptr)
LnChiSquaredProbability
float LnChiSquaredProbability(double chiSquared, double nrDOF)
Definition: ChiSquaredProbability.cc:17
mathSSE::sqrt
T sqrt(T t)
Definition: SSEVec.h:19
edm::ESHandle< TrackerTopology >
h
GlobalTrajectoryBuilderBase::defineRegionOfInterest
RectangularEtaPhiTrackingRegion defineRegionOfInterest(const reco::TrackRef &) const
define region of interest with tracker
Definition: GlobalTrajectoryBuilderBase.cc:342
Point3DBase< float, LocalTag >
GlobalTrajectoryBuilderBase::theTrackMatcher
GlobalMuonTrackMatcher * theTrackMatcher
Definition: GlobalTrajectoryBuilderBase.h:148
GlobalTrajectoryBuilderBase::theLayerMeasurements
MuonDetLayerMeasurements * theLayerMeasurements
Definition: GlobalTrajectoryBuilderBase.h:149
PbPb_ZMuSkimMuonDPG_cff.deltaR
deltaR
Definition: PbPb_ZMuSkimMuonDPG_cff.py:63
edm::OwnVector::const_iterator
Definition: OwnVector.h:41
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
FastTrackerRecHitMaskProducer_cfi.recHits
recHits
Definition: FastTrackerRecHitMaskProducer_cfi.py:8
edm::LogWarning
Definition: MessageLogger.h:141
GlobalTrajectoryBuilderBase::fixTEC
void fixTEC(ConstRecHitContainer &all, double scl_x, double scl_y) const
rescale errors of outermost TEC RecHit
Definition: GlobalTrajectoryBuilderBase.cc:449
MuonServiceProxy::eventSetup
const edm::EventSetup & eventSetup() const
Definition: MuonServiceProxy.h:76
GlobalTrajectoryBuilderBase::theTECyScale
float theTECyScale
Definition: GlobalTrajectoryBuilderBase.h:159
LogDebug
#define LogDebug(id)
Definition: MessageLogger.h:670
edm::ParameterSet
Definition: ParameterSet.h:36
edm::LogError
Definition: MessageLogger.h:183
DetId::Tracker
Definition: DetId.h:25
GlobalTrajectoryBuilderBase::theGlbRefitter
GlobalMuonRefitter * theGlbRefitter
Definition: GlobalTrajectoryBuilderBase.h:153
GlobalTrajectoryBuilderBase::theTrackerRecHitBuilderName
std::string theTrackerRecHitBuilderName
Definition: GlobalTrajectoryBuilderBase.h:162
TrackingRecHit::ConstRecHitContainer
std::vector< ConstRecHitPointer > ConstRecHitContainer
Definition: TrackingRecHit.h:32
SiStripPI::max
Definition: SiStripPayloadInspectorHelper.h:169
LocalError
Definition: LocalError.h:12
GlobalTrajectoryBuilderBase::theCacheId_TRH
unsigned long long theCacheId_TRH
Definition: GlobalTrajectoryBuilderBase.h:154
GlobalTrajectoryBuilderBase::trackProbability
double trackProbability(const Trajectory &) const
calculate chi2 probability (-ln(P))
Definition: GlobalTrajectoryBuilderBase.cc:363
MuonTransientTrackingRecHit::build
static RecHitPointer build(const GeomDet *geom, const TrackingRecHit *rh)
FIXME virtual ConstMuonRecHitContainer specificTransientHits() const;.
Definition: MuonTransientTrackingRecHit.h:71
GlobalTrajectoryBuilderBase::outToIn
Definition: GlobalTrajectoryBuilderBase.h:70
PV3DBase::eta
T eta() const
Definition: PV3DBase.h:73
cand
Definition: decayParser.h:34
GlobalTrajectoryBuilderBase::theCategory
std::string theCategory
Definition: GlobalTrajectoryBuilderBase.h:143
TrackingRegion::direction
GlobalVector const & direction() const
the direction around which region is constructed
Definition: TrackingRegion.h:62
MuonServiceProxy::propagator
edm::ESHandle< Propagator > propagator(std::string propagatorName) const
get the propagator
Definition: MuonServiceProxy.cc:177
RefitDirection
Definition: RefitDirection.h:13
conversionTrackMerger_cfi.minProb
minProb
Definition: conversionTrackMerger_cfi.py:10
TkTrackingRegionsMargin< float >
Propagator::propagate
TrajectoryStateOnSurface propagate(STA const &state, SUR const &surface) const
Definition: Propagator.h:50
GlobalMuonRefitter::setServices
void setServices(const edm::EventSetup &)
set the services needed by the TrackTransformer
Definition: GlobalMuonRefitter.cc:163
get
#define get
HLT_2018_cff.MuonTrackingRegionBuilder
MuonTrackingRegionBuilder
Definition: HLT_2018_cff.py:8346
GlobalTrajectoryBuilderBase::theMuonHitsOption
int theMuonHitsOption
Definition: GlobalTrajectoryBuilderBase.h:157
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
GlobalTrajectoryBuilderBase::checkRecHitsOrdering
RefitDirection checkRecHitsOrdering(const ConstRecHitContainer &) const
This does nothing now.
Definition: GlobalTrajectoryBuilderBase.cc:393
eostools.move
def move(src, dest)
Definition: eostools.py:511
MuonTrajectoryBuilder::TrajectoryContainer
MuonCandidate::TrajectoryContainer TrajectoryContainer
Definition: MuonTrajectoryBuilder.h:23
GlobalTrajectoryBuilderBase::theMuonRecHitBuilderName
std::string theMuonRecHitBuilderName
Definition: GlobalTrajectoryBuilderBase.h:164
GlobalMuonRefitter::setEvent
virtual void setEvent(const edm::Event &)
pass the Event to the algo at each event
Definition: GlobalMuonRefitter.cc:153
reco::TransientTrack
Definition: TransientTrack.h:19
StripSubdetector::TEC
static constexpr auto TEC
Definition: StripSubdetector.h:19
ConstRecHitContainer
TransientTrackingRecHit::ConstRecHitContainer ConstRecHitContainer
Definition: MillePedeAlignmentAlgorithm.cc:74
GlobalTrajectoryBuilderBase::getTransientRecHits
TransientTrackingRecHit::ConstRecHitContainer getTransientRecHits(const reco::Track &) const
get transient RecHits of a Track
Definition: GlobalTrajectoryBuilderBase.cc:506
HLT_2018_cff.GlobalMuonTrackMatcher
GlobalMuonTrackMatcher
Definition: HLT_2018_cff.py:8323
MuonServiceProxy::trackingGeometry
edm::ESHandle< GlobalTrackingGeometry > trackingGeometry() const
get the tracking geometry
Definition: MuonServiceProxy.h:59
GlobalTrackingGeometry::idToDet
const GeomDet * idToDet(DetId) const override
Definition: GlobalTrackingGeometry.cc:44
GlobalTrajectoryBuilderBase::thePCut
float thePCut
Definition: GlobalTrajectoryBuilderBase.h:145
angle
T angle(T x1, T y1, T z1, T x2, T y2, T z2)
Definition: angle.h:11
MuonServiceProxy::magneticField
edm::ESHandle< MagneticField > magneticField() const
get the magnetic field
Definition: MuonServiceProxy.h:56
or
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
Definition: Activities.doc:12
GlobalTrajectoryBuilderBase::theTrackTransformer
TrackTransformer * theTrackTransformer
Definition: GlobalTrajectoryBuilderBase.h:150
edm::RefToBase< TrajectorySeed >
MuonTrajectoryBuilder::TrackCand
std::pair< const Trajectory *, reco::TrackRef > TrackCand
Definition: MuonTrajectoryBuilder.h:25
GlobalTrajectoryBuilderBase::undetermined
Definition: GlobalTrajectoryBuilderBase.h:70
HLT_2018_cff.track
track
Definition: HLT_2018_cff.py:10352
mps_fire.result
result
Definition: mps_fire.py:303
GlobalTrajectoryBuilderBase::theRegionBuilder
MuonTrackingRegionBuilder * theRegionBuilder
Definition: GlobalTrajectoryBuilderBase.h:151
DetId::Muon
Definition: DetId.h:26
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
LogTrace
#define LogTrace(id)
Definition: MessageLogger.h:671
TrackerTopologyRcd
Definition: TrackerTopologyRcd.h:10
trajectoryStateTransform::innerStateOnSurface
TrajectoryStateOnSurface innerStateOnSurface(const reco::Track &tk, const TrackingGeometry &geom, const MagneticField *field, bool withErr=true)
Definition: TrajectoryStateTransform.cc:110
event
Definition: event.py:1
GlobalMuonRefitter::refit
std::vector< Trajectory > refit(const reco::Track &globalTrack, const int theMuonHitsOption, const TrackerTopology *tTopo) const
build combined trajectory from sta Track and tracker RecHits
Definition: GlobalMuonRefitter.cc:182
event
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
StripTopology
Definition: StripTopology.h:11
TtFullHadEvtBuilder_cfi.prob
prob
Definition: TtFullHadEvtBuilder_cfi.py:33
LocalError::yy
float yy() const
Definition: LocalError.h:24
PV3DBase::phi
Geom::Phi< T > phi() const
Definition: PV3DBase.h:66
GlobalTrajectoryBuilderBase::selectTrackerHits
ConstRecHitContainer selectTrackerHits(const ConstRecHitContainer &) const
select tracker hits; exclude some tracker hits in the global trajectory
Definition: GlobalTrajectoryBuilderBase.cc:425
TrajectoryStateOnSurface::isValid
bool isValid() const
Definition: TrajectoryStateOnSurface.h:54
hit
Definition: SiStripHitEffFromCalibTree.cc:88
GlobalTrajectoryBuilderBase::theRPCInTheFit
bool theRPCInTheFit
Definition: GlobalTrajectoryBuilderBase.h:155
GlobalTrajectoryBuilderBase::theTopo
const TrackerTopology * theTopo
Definition: GlobalTrajectoryBuilderBase.h:166