CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DTGeomSupplier.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
10 //
11 //--------------------------------------------------
12 #ifndef DT_GEOM_SUPPLIER_H
13 #define DT_GEOM_SUPPLIER_H
14 
15 //------------------------------------
16 // Collaborating Class Declarations --
17 //------------------------------------
18 
19 //----------------------
20 // Base Class Headers --
21 //----------------------
33 
34 
35 //---------------
36 // C++ Headers --
37 //---------------
38 
39 // ---------------------
40 // -- Class Interface --
41 // ---------------------
42 
44 
45  public:
46 
49 
51  virtual ~DTGeomSupplier() {}
52 
54  inline DTTrigGeom* geom() const { return _geom; }
55 
57  inline const DTChamber* stat() const { return _geom->stat(); }
58 
60  inline DTChamberId ChamberId() const { return _geom->statId(); }
61 
63  inline int wheel() const { return _geom->wheel(); }
64 
66  inline int station() const { return _geom->station(); }
67 
69  inline int sector() const { return _geom->sector(); }
70 
72  virtual LocalPoint localPosition(const DTTrigData*) const = 0;
73 
75  virtual LocalVector localDirection(const DTTrigData*) const = 0;
76 
78  inline GlobalPoint CMSPosition(const DTTrigData* trig) const {
79  return _geom->toGlobal(localPosition(trig));
80  }
81 
83  inline GlobalVector CMSDirection(const DTTrigData* trig) const {
84  return _geom->toGlobal(localDirection(trig));
85  }
86 
88  virtual void print(const DTTrigData* trig) const;
89 
90 protected:
91 
93 
94 };
95 
96 #endif
int sector() const
Return sector number.
Definition: DTTrigGeom.h:67
GlobalPoint CMSPosition(const DTTrigData *trig) const
CMS position in chamber of a trigger-data object.
DTTrigGeom * geom() const
Associated geometry.
int sector() const
Return sector number.
virtual ~DTGeomSupplier()
Destructor.
int wheel() const
Return wheel number.
Definition: DTTrigGeom.h:61
GlobalPoint toGlobal(const LocalPoint p) const
Go to CMS coordinate system for a point.
Definition: DTTrigGeom.h:115
GlobalVector CMSDirection(const DTTrigData *trig) const
CMS direction in chamber of a trigger -data object.
int station() const
Return station number.
int wheel() const
Return wheel number.
virtual LocalPoint localPosition(const DTTrigData *) const =0
Local position in chamber of a trigger-data object.
DTChamberId ChamberId() const
Identifier of the associated chamber.
virtual void print(const DTTrigData *trig) const
Print a trigger-data object with also local and global position/direction.
const DTChamber * stat() const
Associated chamber.
int station() const
Return station number.
Definition: DTTrigGeom.h:64
DTGeomSupplier(DTTrigGeom *geom)
Constructor.
DTChamberId statId() const
Identifier of the associated chamber.
Definition: DTTrigGeom.h:55
const DTChamber * stat() const
Associated chamber.
Definition: DTTrigGeom.h:52
DTTrigGeom * _geom
virtual LocalVector localDirection(const DTTrigData *) const =0
Local direction in chamber of a trigger-data object.