CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Member Functions | Private Attributes | Friends
TrackerGeometry Class Referencefinal

#include <TrackerGeometry.h>

Inheritance diagram for TrackerGeometry:
TrackingGeometry

Public Types

enum  ModuleType {
  ModuleType::UNKNOWN, ModuleType::PXB, ModuleType::PXF, ModuleType::IB1,
  ModuleType::IB2, ModuleType::OB1, ModuleType::OB2, ModuleType::W1A,
  ModuleType::W2A, ModuleType::W3A, ModuleType::W1B, ModuleType::W2B,
  ModuleType::W3B, ModuleType::W4, ModuleType::W5, ModuleType::W6,
  ModuleType::W7, ModuleType::Ph1PXB, ModuleType::Ph1PXF, ModuleType::Ph2PXB,
  ModuleType::Ph2PXF, ModuleType::Ph2PSP, ModuleType::Ph2PSS, ModuleType::Ph2SS
}
 
typedef
GeomDetEnumerators::SubDetector 
SubDetector
 
- Public Types inherited from TrackingGeometry
typedef std::vector< GeomDet
const * > 
DetContainer
 
typedef std::vector< DetIdDetIdContainer
 
typedef std::vector
< GeomDetType const * > 
DetTypeContainer
 
typedef std::vector
< GeomDetUnit const * > 
DetUnitContainer
 
typedef std::unordered_map
< unsigned int, GeomDet const * > 
mapIdToDet
 
typedef std::unordered_map
< unsigned int, GeomDetUnit
const * > 
mapIdToDetUnit
 

Public Member Functions

const DetIdContainerdetIds () const
 Returm a vector of all GeomDet DetIds (including those of GeomDetUnits) More...
 
const DetContainerdets () const
 Returm a vector of all GeomDet (including all GeomDetUnits) More...
 
const DetContainerdetsPXB () const
 
const DetContainerdetsPXF () const
 
const DetContainerdetsTEC () const
 
const DetContainerdetsTIB () const
 
const DetContainerdetsTID () const
 
const DetContainerdetsTOB () const
 
const DetTypeContainerdetTypes () const
 Return a vector of all det types. More...
 
const DetIdContainerdetUnitIds () const
 Returm a vector of all GeomDetUnit DetIds. More...
 
const DetUnitContainerdetUnits () const
 Returm a vector of all GeomDetUnit. More...
 
unsigned int endsetDU (SubDetector sid) const
 
void fillTestMap (const GeometricDet *gd)
 
const
GeomDetEnumerators::SubDetector 
geomDetSubDetector (int subdet) const
 
float getDetectorThickness (DetId) const
 
ModuleType getDetectorType (DetId) const
 
const TrackerGeomDetidToDet (DetId) const
 
const TrackerGeomDetidToDetUnit (DetId) const
 Return the pointer to the GeomDetUnit corresponding to a given DetId. More...
 
bool isThere (GeomDetEnumerators::SubDetector subdet) const
 
ModuleType moduleType (const std::string &name) const
 
unsigned int numberOfLayers (int subdet) const
 
unsigned int offsetDU (SubDetector sid) const
 
void setEndsetDU (SubDetector sid)
 
void setOffsetDU (SubDetector sid)
 
GeometricDet const * trackerDet () const
 
virtual ~TrackerGeometry ()
 
- Public Member Functions inherited from TrackingGeometry
virtual ~TrackingGeometry ()
 Destructor. More...
 

Private Member Functions

void addDet (GeomDet const *p)
 
void addDetId (DetId p)
 
void addDetUnit (GeomDetUnit const *p)
 
void addDetUnitId (DetId p)
 
void addType (GeomDetType const *p)
 
void finalize ()
 
 TrackerGeometry (GeometricDet const *gd=0)
 

Private Attributes

DetIdContainer theDetIds
 
DetContainer theDets
 
DetTypeContainer theDetTypes
 
std::vector< std::tuple< DetId,
TrackerGeometry::ModuleType,
float > > 
theDetTypetList
 
DetIdContainer theDetUnitIds
 
DetUnitContainer theDetUnits
 
unsigned int theEndsetDU [6]
 
mapIdToDet theMap
 
mapIdToDetUnit theMapUnit
 
unsigned int theNumberOfLayers [6]
 
unsigned int theOffsetDU [6]
 
DetContainer thePXBDets
 
DetContainer thePXFDets
 
GeomDetEnumerators::SubDetector theSubDetTypeMap [6]
 
DetContainer theTECDets
 
DetContainer theTIBDets
 
DetContainer theTIDDets
 
DetContainer theTOBDets
 
GeometricDet const * theTrackerDet
 

Friends

class GeometryAligner
 Aligner has access to map. More...
 
class TrackerGeomBuilderFromGeometricDet
 

Detailed Description

A specific Tracker Builder which builds a Tracker from a list of DetUnits. Pattern recognition is used to discover layers, rings etc.

Definition at line 28 of file TrackerGeometry.h.

Member Typedef Documentation

Definition at line 42 of file TrackerGeometry.h.

Member Enumeration Documentation

Enumerator
UNKNOWN 
PXB 
PXF 
IB1 
IB2 
OB1 
OB2 
W1A 
W2A 
W3A 
W1B 
W2B 
W3B 
W4 
W5 
W6 
W7 
Ph1PXB 
Ph1PXF 
Ph2PXB 
Ph2PXF 
Ph2PSP 
Ph2PSS 
Ph2SS 

Definition at line 48 of file TrackerGeometry.cc.

Constructor & Destructor Documentation

TrackerGeometry::TrackerGeometry ( GeometricDet const *  gd = 0)
explicitprivate

Definition at line 76 of file TrackerGeometry.cc.

TrackerGeometry::~TrackerGeometry ( )
virtual

Definition at line 122 of file TrackerGeometry.cc.

Member Function Documentation

void TrackerGeometry::addDet ( GeomDet const *  p)
private

Definition at line 158 of file TrackerGeometry.cc.

void TrackerGeometry::addDetId ( DetId  p)
private

Definition at line 190 of file TrackerGeometry.cc.

void TrackerGeometry::addDetUnit ( GeomDetUnit const *  p)
private

Definition at line 147 of file TrackerGeometry.cc.

void TrackerGeometry::addDetUnitId ( DetId  p)
private

Definition at line 154 of file TrackerGeometry.cc.

void TrackerGeometry::addType ( GeomDetType const *  p)
private

Definition at line 143 of file TrackerGeometry.cc.

const DetIdContainer& TrackerGeometry::detIds ( ) const
inlinevirtual

Returm a vector of all GeomDet DetIds (including those of GeomDetUnits)

Implements TrackingGeometry.

Definition at line 52 of file TrackerGeometry.h.

References theDetIds.

52 { return theDetIds;}
DetIdContainer theDetIds
const DetContainer& TrackerGeometry::dets ( ) const
inlinevirtual

Returm a vector of all GeomDet (including all GeomDetUnits)

Implements TrackingGeometry.

Definition at line 50 of file TrackerGeometry.h.

References theDets.

50 {return theDets;}
DetContainer theDets
const TrackerGeometry::DetContainer & TrackerGeometry::detsPXB ( ) const

Definition at line 196 of file TrackerGeometry.cc.

const TrackerGeometry::DetContainer & TrackerGeometry::detsPXF ( ) const

Definition at line 202 of file TrackerGeometry.cc.

const TrackerGeometry::DetContainer & TrackerGeometry::detsTEC ( ) const

Definition at line 226 of file TrackerGeometry.cc.

const TrackerGeometry::DetContainer & TrackerGeometry::detsTIB ( ) const

Definition at line 208 of file TrackerGeometry.cc.

const TrackerGeometry::DetContainer & TrackerGeometry::detsTID ( ) const

Definition at line 214 of file TrackerGeometry.cc.

const TrackerGeometry::DetContainer & TrackerGeometry::detsTOB ( ) const

Definition at line 220 of file TrackerGeometry.cc.

const DetTypeContainer& TrackerGeometry::detTypes ( ) const
inlinevirtual

Return a vector of all det types.

Implements TrackingGeometry.

Definition at line 48 of file TrackerGeometry.h.

References theDetTypes.

48 {return theDetTypes;}
DetTypeContainer theDetTypes
const DetIdContainer& TrackerGeometry::detUnitIds ( ) const
inlinevirtual

Returm a vector of all GeomDetUnit DetIds.

Implements TrackingGeometry.

Definition at line 51 of file TrackerGeometry.h.

References theDetUnitIds.

51 {return theDetUnitIds;}
DetIdContainer theDetUnitIds
const DetUnitContainer& TrackerGeometry::detUnits ( ) const
inlinevirtual

Returm a vector of all GeomDetUnit.

Implements TrackingGeometry.

Definition at line 49 of file TrackerGeometry.h.

References theDetUnits.

Referenced by StripCPE::fillParams(), setEndsetDU(), and setOffsetDU().

49 {return theDetUnits;}
DetUnitContainer theDetUnits
unsigned int TrackerGeometry::endsetDU ( SubDetector  sid) const
inline

Definition at line 61 of file TrackerGeometry.h.

References theEndsetDU.

61 { return theEndsetDU[sid];}
unsigned int theEndsetDU[6]
void TrackerGeometry::fillTestMap ( const GeometricDet gd)

Definition at line 277 of file TrackerGeometry.cc.

void TrackerGeometry::finalize ( void  )
private

Definition at line 127 of file TrackerGeometry.cc.

const GeomDetEnumerators::SubDetector TrackerGeometry::geomDetSubDetector ( int  subdet) const

Definition at line 252 of file TrackerGeometry.cc.

float TrackerGeometry::getDetectorThickness ( DetId  detid) const

Definition at line 304 of file TrackerGeometry.cc.

TrackerGeometry::ModuleType TrackerGeometry::getDetectorType ( DetId  detid) const

Definition at line 296 of file TrackerGeometry.cc.

const TrackerGeomDet * TrackerGeometry::idToDet ( DetId  ) const
virtual
const TrackerGeomDet * TrackerGeometry::idToDetUnit ( DetId  ) const
virtual

Return the pointer to the GeomDetUnit corresponding to a given DetId.

Implements TrackingGeometry.

Definition at line 232 of file TrackerGeometry.cc.

Referenced by PixelVertexProducerClusters::produce(), Phase2TrackerClusterizer::produce(), and Phase2TrackerRecHits::produce().

bool TrackerGeometry::isThere ( GeomDetEnumerators::SubDetector  subdet) const

Definition at line 270 of file TrackerGeometry.cc.

TrackerGeometry::ModuleType TrackerGeometry::moduleType ( const std::string &  name) const

Definition at line 313 of file TrackerGeometry.cc.

unsigned int TrackerGeometry::numberOfLayers ( int  subdet) const

Definition at line 261 of file TrackerGeometry.cc.

unsigned int TrackerGeometry::offsetDU ( SubDetector  sid) const
inline

Definition at line 60 of file TrackerGeometry.h.

References theOffsetDU.

Referenced by StripCPE::fillParams().

60 { return theOffsetDU[sid];}
unsigned int theOffsetDU[6]
void TrackerGeometry::setEndsetDU ( SubDetector  sid)
inline

Definition at line 64 of file TrackerGeometry.h.

References detUnits(), and theEndsetDU.

64 { theEndsetDU[sid]=detUnits().size();}
unsigned int theEndsetDU[6]
const DetUnitContainer & detUnits() const
Returm a vector of all GeomDetUnit.
void TrackerGeometry::setOffsetDU ( SubDetector  sid)
inline

Definition at line 63 of file TrackerGeometry.h.

References detUnits(), and theOffsetDU.

63 { theOffsetDU[sid]=detUnits().size();}
unsigned int theOffsetDU[6]
const DetUnitContainer & detUnits() const
Returm a vector of all GeomDetUnit.
GeometricDet const* TrackerGeometry::trackerDet ( ) const
inline

Definition at line 69 of file TrackerGeometry.h.

References theTrackerDet.

69 {return theTrackerDet;}
GeometricDet const * theTrackerDet

Friends And Related Function Documentation

friend class GeometryAligner
friend

Aligner has access to map.

Definition at line 87 of file TrackerGeometry.h.

Definition at line 32 of file TrackerGeometry.h.

Member Data Documentation

DetIdContainer TrackerGeometry::theDetIds
private

Definition at line 95 of file TrackerGeometry.h.

Referenced by detIds().

DetContainer TrackerGeometry::theDets
private

Definition at line 93 of file TrackerGeometry.h.

Referenced by dets().

DetTypeContainer TrackerGeometry::theDetTypes
private

Definition at line 89 of file TrackerGeometry.h.

Referenced by detTypes().

std::vector< std::tuple< DetId, TrackerGeometry::ModuleType, float> > TrackerGeometry::theDetTypetList
private

Definition at line 108 of file TrackerGeometry.h.

DetIdContainer TrackerGeometry::theDetUnitIds
private

Definition at line 94 of file TrackerGeometry.h.

Referenced by detUnitIds().

DetUnitContainer TrackerGeometry::theDetUnits
private

Definition at line 90 of file TrackerGeometry.h.

Referenced by detUnits().

unsigned int TrackerGeometry::theEndsetDU[6]
private

Definition at line 92 of file TrackerGeometry.h.

Referenced by endsetDU(), and setEndsetDU().

mapIdToDet TrackerGeometry::theMap
private

Definition at line 97 of file TrackerGeometry.h.

mapIdToDetUnit TrackerGeometry::theMapUnit
private

Definition at line 96 of file TrackerGeometry.h.

unsigned int TrackerGeometry::theNumberOfLayers[6]
private

Definition at line 107 of file TrackerGeometry.h.

unsigned int TrackerGeometry::theOffsetDU[6]
private

Definition at line 91 of file TrackerGeometry.h.

Referenced by offsetDU(), and setOffsetDU().

DetContainer TrackerGeometry::thePXBDets
private

Definition at line 99 of file TrackerGeometry.h.

DetContainer TrackerGeometry::thePXFDets
private

Definition at line 100 of file TrackerGeometry.h.

GeomDetEnumerators::SubDetector TrackerGeometry::theSubDetTypeMap[6]
private

Definition at line 106 of file TrackerGeometry.h.

DetContainer TrackerGeometry::theTECDets
private

Definition at line 104 of file TrackerGeometry.h.

DetContainer TrackerGeometry::theTIBDets
private

Definition at line 101 of file TrackerGeometry.h.

DetContainer TrackerGeometry::theTIDDets
private

Definition at line 102 of file TrackerGeometry.h.

DetContainer TrackerGeometry::theTOBDets
private

Definition at line 103 of file TrackerGeometry.h.

GeometricDet const* TrackerGeometry::theTrackerDet
private

Definition at line 84 of file TrackerGeometry.h.

Referenced by trackerDet().