CMS 3D CMS Logo

Typedefs | Functions | Variables
TrackQuality.cc File Reference
#include <algorithm>
#include <vector>
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "SimDataFormats/TrackingAnalysis/interface/TrackingParticleFwd.h"
#include "SimDataFormats/TrackingHit/interface/PSimHitContainer.h"
#include "DataFormats/DetId/interface/DetId.h"
#include "DataFormats/MuonDetId/interface/CSCDetId.h"
#include "DataFormats/MuonDetId/interface/DTLayerId.h"
#include "DataFormats/MuonDetId/interface/MuonSubdetId.h"
#include "DataFormats/MuonDetId/interface/RPCDetId.h"
#include "DataFormats/SiPixelDetId/interface/PixelSubdetector.h"
#include "DataFormats/SiStripDetId/interface/StripSubdetector.h"
#include "DataFormats/TrackerCommon/interface/TrackerTopology.h"
#include "Geometry/Records/interface/IdealGeometryRecord.h"
#include "DataFormats/TrackReco/interface/Track.h"
#include "DataFormats/TrackReco/interface/TrackFwd.h"
#include "DataFormats/TrackingRecHit/interface/TrackingRecHit.h"
#include "DataFormats/TrackingRecHit/interface/TrackingRecHitFwd.h"
#include "SimTracker/TrackerHitAssociation/interface/TrackerHitAssociator.h"
#include "SimTracker/TrackHistory/interface/TrackQuality.h"

Go to the source code of this file.

Typedefs

typedef std::pair< TrackQuality::Layer::SubDet, short int > DetLayer
 

Functions

DetLayer getDetLayer (DetId detId, const TrackerTopology *tTopo)
 

Variables

static const int statePriorities []
 

Typedef Documentation

◆ DetLayer

typedef std::pair<TrackQuality::Layer::SubDet, short int> DetLayer

Definition at line 77 of file TrackQuality.cc.

Function Documentation

◆ getDetLayer()

DetLayer getDetLayer ( DetId  detId,
const TrackerTopology tTopo 
)

Definition at line 90 of file TrackQuality.cc.

90  {
92  short int layer = 0;
93 
94  switch (detId.det()) {
95  case DetId::Tracker:
96  layer = tTopo->layer(detId);
97  break;
98 
99  case DetId::Muon:
100  switch (detId.subdetId()) {
101  case MuonSubdetId::DT:
103  layer = DTLayerId(detId).layer();
104  break;
105 
106  case MuonSubdetId::CSC:
108  layer = CSCDetId(detId).layer();
109  break;
110 
111  case MuonSubdetId::RPC:
112  if (RPCDetId(detId).region())
114  else
116  layer = RPCDetId(detId).layer();
117  break;
118 
119  default:
120  /* should not get here */
121  ;
122  }
123  break;
124 
125  default:
126  /* should not get here */
127  ;
128  }
129 
130  return DetLayer(det, layer);
131 }

References MuonSubdetId::CSC, DetId::det(), MuonSubdetId::DT, TrackQuality::Layer::Invalid, DTLayerId::layer(), CSCDetId::layer(), RPCDetId::layer(), TrackerTopology::layer(), DetId::Muon, TrackQuality::Layer::MuonCSC, TrackQuality::Layer::MuonDT, TrackQuality::Layer::MuonRPCBarrel, TrackQuality::Layer::MuonRPCEndcap, HLT_2018_cff::region, MuonSubdetId::RPC, DetId::subdetId(), and DetId::Tracker.

Referenced by fastsim::SimplifiedGeometryFactory::createSimplifiedGeometry(), TrackQuality::evaluate(), and MeasurementByLayerGrouper::operator()().

Variable Documentation

◆ statePriorities

const int statePriorities[]
static
Initial value:
= {
3,
5,
0,
7,
2,
4,
6,
1}

Definition at line 80 of file TrackQuality.cc.

Referenced by TrackQuality::evaluate().

MuonSubdetId::CSC
static constexpr int CSC
Definition: MuonSubdetId.h:12
DetId::det
constexpr Detector det() const
get the detector field from this detid
Definition: DetId.h:46
RPCDetId
Definition: RPCDetId.h:16
DetLayer
std::pair< TrackQuality::Layer::SubDet, short int > DetLayer
Definition: TrackQuality.cc:77
TrackerTopology::layer
unsigned int layer(const DetId &id) const
Definition: TrackerTopology.cc:47
CSCDetId::layer
int layer() const
Definition: CSCDetId.h:56
MuonSubdetId::DT
static constexpr int DT
Definition: MuonSubdetId.h:11
DTLayerId
Definition: DTLayerId.h:12
TrackQuality::Layer::MuonCSC
Definition: TrackQuality.h:42
DetId::subdetId
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum)
Definition: DetId.h:48
DetId::Tracker
Definition: DetId.h:25
CSCDetId
Definition: CSCDetId.h:26
TrackQuality::Layer::MuonRPCEndcap
Definition: TrackQuality.h:44
TrackQuality::Layer::Invalid
Definition: TrackQuality.h:34
MuonSubdetId::RPC
static constexpr int RPC
Definition: MuonSubdetId.h:13
HLT_2018_cff.region
region
Definition: HLT_2018_cff.py:81479
DetId::Muon
Definition: DetId.h:26
TrackQuality::Layer::MuonRPCBarrel
Definition: TrackQuality.h:43
TrackQuality::Layer::SubDet
SubDet
Definition: TrackQuality.h:33
RPCDetId::layer
int layer() const
Definition: RPCDetId.h:85
DTLayerId::layer
int layer() const
Return the layer number.
Definition: DTLayerId.h:42
TrackQuality::Layer::MuonDT
Definition: TrackQuality.h:41