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 //
12 //
13 //--------------------------------------------------
14 #ifndef DT_GEOM_SUPPLIER_H
15 #define DT_GEOM_SUPPLIER_H
16 
17 //------------------------------------
18 // Collaborating Class Declarations --
19 //------------------------------------
20 
21 //----------------------
22 // Base Class Headers --
23 //----------------------
35 
36 
37 //---------------
38 // C++ Headers --
39 //---------------
40 
41 // ---------------------
42 // -- Class Interface --
43 // ---------------------
44 
46 
47  public:
48 
51 
53  virtual ~DTGeomSupplier() {}
54 
56  inline DTTrigGeom* geom() const { return _geom; }
57 
59  inline const DTChamber* stat() const { return _geom->stat(); }
60 
62  inline DTChamberId ChamberId() const { return _geom->statId(); }
63 
65  inline int wheel() const { return _geom->wheel(); }
66 
68  inline int station() const { return _geom->station(); }
69 
71  inline int sector() const { return _geom->sector(); }
72 
74  virtual LocalPoint localPosition(const DTTrigData*) const = 0;
75 
77  virtual LocalVector localDirection(const DTTrigData*) const = 0;
78 
80  inline GlobalPoint CMSPosition(const DTTrigData* trig) const {
81  return _geom->toGlobal(localPosition(trig));
82  }
83 
85  inline GlobalVector CMSDirection(const DTTrigData* trig) const {
86  return _geom->toGlobal(localDirection(trig));
87  }
88 
90  virtual void print(const DTTrigData* trig) const;
91 
92 protected:
93 
95 
96 };
97 
98 #endif
int sector() const
Return sector number.
Definition: DTTrigGeom.h:69
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:63
GlobalPoint toGlobal(const LocalPoint p) const
Go to CMS coordinate system for a point.
Definition: DTTrigGeom.h:117
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:66
DTGeomSupplier(DTTrigGeom *geom)
Constructor.
DTChamberId statId() const
Identifier of the associated chamber.
Definition: DTTrigGeom.h:57
const DTChamber * stat() const
Associated chamber.
Definition: DTTrigGeom.h:54
DTTrigGeom * _geom
virtual LocalVector localDirection(const DTTrigData *) const =0
Local direction in chamber of a trigger-data object.