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 {
23 public:
25  GlobalTrackingGeometry(std::vector<const TrackingGeometry*>& geos);
26 
28  virtual ~GlobalTrackingGeometry();
29 
30  // Return a vector of all det types.
31  virtual const DetTypeContainer& detTypes() const;
32 
33  // Returm a vector of all GeomDetUnit
34  virtual const DetUnitContainer& detUnits() const;
35 
36  // Returm a vector of all GeomDet (including all GeomDetUnits)
37  virtual const DetContainer& dets() const;
38 
39  // Returm a vector of all GeomDetUnit DetIds
40  virtual const DetIdContainer& detUnitIds() const;
41 
42  // Returm a vector of all GeomDet DetIds (including those of GeomDetUnits)
43  virtual const DetIdContainer& detIds() const;
44 
45  // Return the pointer to the GeomDetUnit corresponding to a given DetId
46  virtual const GeomDetUnit* idToDetUnit(DetId) const;
47 
48  // Return the pointer to the GeomDet corresponding to a given DetId
49  // (valid also for GeomDetUnits)
50  virtual const GeomDet* idToDet(DetId) const;
51 
53  const TrackingGeometry* slaveGeometry(DetId id) const;
54 
55 private:
56 
57  std::vector<const TrackingGeometry*> theGeometries;
58 
59  // The const methods claim to simply return these vectors,
60  // but actually, they'll fill them up the first time they
61  // are called, which is rare (or never).
67 };
68 #endif
69 
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