CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 // C++ Headers --
36 //---------------
37 
38 // ---------------------
39 // -- Class Interface --
40 // ---------------------
41 
43 public:
46 
48  virtual ~DTGeomSupplier() {}
49 
51  inline DTTrigGeom *geom() const { return _geom; }
52 
54  inline const DTChamber *stat() const { return _geom->stat(); }
55 
57  inline DTChamberId ChamberId() const { return _geom->statId(); }
58 
60  inline int wheel() const { return _geom->wheel(); }
61 
63  inline int station() const { return _geom->station(); }
64 
66  inline int sector() const { return _geom->sector(); }
67 
69  virtual LocalPoint localPosition(const DTTrigData *) const = 0;
70 
72  virtual LocalVector localDirection(const DTTrigData *) const = 0;
73 
75  inline GlobalPoint CMSPosition(const DTTrigData *trig) const { return _geom->toGlobal(localPosition(trig)); }
76 
78  inline GlobalVector CMSDirection(const DTTrigData *trig) const { return _geom->toGlobal(localDirection(trig)); }
79 
81  virtual void print(const DTTrigData *trig) const;
82 
83 protected:
85 };
86 
87 #endif
int sector() const
Return sector number.
Definition: DTTrigGeom.h:65
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:59
GlobalPoint toGlobal(const LocalPoint p) const
Go to CMS coordinate system for a point.
Definition: DTTrigGeom.h:110
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:62
DTGeomSupplier(DTTrigGeom *geom)
Constructor.
DTChamberId statId() const
Identifier of the associated chamber.
Definition: DTTrigGeom.h:53
const DTChamber * stat() const
Associated chamber.
Definition: DTTrigGeom.h:50
DTTrigGeom * _geom
virtual LocalVector localDirection(const DTTrigData *) const =0
Local direction in chamber of a trigger-data object.