CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
GlobalTrackingGeometry.h
Go to the documentation of this file.
1 #ifndef GlobalTrackingGeometry_h
2 #define GlobalTrackingGeometry_h
3 
19 #include <vector>
20 
22  public:
24  GlobalTrackingGeometry(std::vector<const TrackingGeometry*>& geos);
25 
27  virtual ~GlobalTrackingGeometry();
28 
29  // Return a vector of all det types.
30  virtual const DetTypeContainer& detTypes() const;
31 
32  // Returm a vector of all GeomDetUnit
33  virtual const DetUnitContainer& detUnits() const;
34 
35  // Returm a vector of all GeomDet (including all GeomDetUnits)
36  virtual const DetContainer& dets() const;
37 
38  // Returm a vector of all GeomDetUnit DetIds
39  virtual const DetIdContainer& detUnitIds() const;
40 
41  // Returm a vector of all GeomDet DetIds (including those of GeomDetUnits)
42  virtual const DetIdContainer& detIds() const;
43 
44  // Return the pointer to the GeomDetUnit corresponding to a given DetId
45  virtual const GeomDetUnit* idToDetUnit(DetId) const;
46 
47  // Return the pointer to the GeomDet corresponding to a given DetId
48  // (valid also for GeomDetUnits)
49  virtual const GeomDet* idToDet(DetId) const;
50 
52  const TrackingGeometry* slaveGeometry(DetId id) const;
53 
54  private:
55 
56  std::vector<const TrackingGeometry*> theGeometries;
57 };
58 #endif
59 
std::vector< const TrackingGeometry * > theGeometries
std::vector< GeomDet * > DetContainer
virtual const GeomDet * idToDet(DetId) const
virtual const GeomDetUnit * idToDetUnit(DetId) const
Return the pointer to the GeomDetUnit corresponding to a given DetId.
std::vector< GeomDetUnit * > DetUnitContainer
const TrackingGeometry * slaveGeometry(DetId id) const
Return the pointer to the actual geometry for a given DetId.
virtual ~GlobalTrackingGeometry()
Destructor.
virtual const DetUnitContainer & detUnits() const
Returm a vector of all GeomDetUnit.
std::vector< GeomDetType * > DetTypeContainer
virtual const DetIdContainer & detIds() const
Returm a vector of all GeomDet DetIds (including those of GeomDetUnits)
virtual const DetContainer & dets() const
Returm a vector of all GeomDet (including all GeomDetUnits)
Definition: DetId.h:20
GlobalTrackingGeometry(std::vector< const TrackingGeometry * > &geos)
Constructor.
virtual const DetTypeContainer & detTypes() const
Return a vector of all det types.
virtual const DetIdContainer & detUnitIds() const
Returm a vector of all GeomDetUnit DetIds.
std::vector< DetId > DetIdContainer