CMS 3D CMS Logo

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 
44 public:
47 
49  virtual ~DTGeomSupplier() {}
50 
52  inline DTTrigGeom *geom() const { return _geom; }
53 
55  inline const DTChamber *stat() const { return _geom->stat(); }
56 
58  inline DTChamberId ChamberId() const { return _geom->statId(); }
59 
61  inline int wheel() const { return _geom->wheel(); }
62 
64  inline int station() const { return _geom->station(); }
65 
67  inline int sector() const { return _geom->sector(); }
68 
70  virtual LocalPoint localPosition(const DTTrigData *) const = 0;
71 
73  virtual LocalVector localDirection(const DTTrigData *) const = 0;
74 
76  inline GlobalPoint CMSPosition(const DTTrigData *trig) const {
77  return _geom->toGlobal(localPosition(trig));
78  }
79 
81  inline GlobalVector CMSDirection(const DTTrigData *trig) const {
82  return _geom->toGlobal(localDirection(trig));
83  }
84 
86  virtual void print(const DTTrigData *trig) const;
87 
88 protected:
90 };
91 
92 #endif
int sector() const
Return sector number.
Definition: DTTrigGeom.h:66
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:60
GlobalPoint toGlobal(const LocalPoint p) const
Go to CMS coordinate system for a point.
Definition: DTTrigGeom.h:113
GlobalVector CMSDirection(const DTTrigData *trig) const
CMS direction in chamber of a trigger -data object.
int station() const
Return station number.
virtual LocalVector localDirection(const DTTrigData *) const =0
Local direction in chamber of a trigger-data object.
int wheel() const
Return wheel number.
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.
virtual LocalPoint localPosition(const DTTrigData *) const =0
Local position in chamber of a trigger-data object.
int station() const
Return station number.
Definition: DTTrigGeom.h:63
DTGeomSupplier(DTTrigGeom *geom)
Constructor.
DTChamberId statId() const
Identifier of the associated chamber.
Definition: DTTrigGeom.h:54
const DTChamber * stat() const
Associated chamber.
Definition: DTTrigGeom.h:51
DTTrigGeom * _geom