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 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 
79 
81  virtual void print(const DTTrigData *trig) const;
82 
83 protected:
85 };
86 
87 #endif
Vector3DBase< float, LocalTag >
DTTrigGeom::wheel
int wheel() const
Return wheel number.
Definition: DTTrigGeom.h:59
DTGeomSupplier
Definition: DTGeomSupplier.h:42
DTLayerId.h
DTChamber
Definition: DTChamber.h:24
DTTrigGeom.h
DTGeomSupplier::print
virtual void print(const DTTrigData *trig) const
Print a trigger-data object with also local and global position/direction.
Definition: DTGeomSupplier.cc:4
DTTrigGeom::toGlobal
GlobalPoint toGlobal(const LocalPoint p) const
Go to CMS coordinate system for a point.
Definition: DTTrigGeom.h:110
DTGeomSupplier::ChamberId
DTChamberId ChamberId() const
Identifier of the associated chamber.
Definition: DTGeomSupplier.h:57
DTGeomSupplier::sector
int sector() const
Return sector number.
Definition: DTGeomSupplier.h:66
DTGeomSupplier::~DTGeomSupplier
virtual ~DTGeomSupplier()
Destructor.
Definition: DTGeomSupplier.h:48
DTGeomSupplier::localDirection
virtual LocalVector localDirection(const DTTrigData *) const =0
Local direction in chamber of a trigger-data object.
Point3DBase< float, LocalTag >
DTChamberId.h
DTGeomSupplier::wheel
int wheel() const
Return wheel number.
Definition: DTGeomSupplier.h:60
DTTrigGeom::stat
const DTChamber * stat() const
Associated chamber.
Definition: DTTrigGeom.h:50
DTTrigGeom::sector
int sector() const
Return sector number.
Definition: DTTrigGeom.h:65
DTTrigData
Definition: DTTrigData.h:35
DTGeomSupplier::CMSPosition
GlobalPoint CMSPosition(const DTTrigData *trig) const
CMS position in chamber of a trigger-data object.
Definition: DTGeomSupplier.h:75
DTGeomSupplier::DTGeomSupplier
DTGeomSupplier(DTTrigGeom *geom)
Constructor.
Definition: DTGeomSupplier.h:45
DTGeomSupplier::_geom
DTTrigGeom * _geom
Definition: DTGeomSupplier.h:84
DTGeomSupplier::localPosition
virtual LocalPoint localPosition(const DTTrigData *) const =0
Local position in chamber of a trigger-data object.
ClusterTask_cfi.trig
trig
Definition: ClusterTask_cfi.py:336
DTGeomSupplier::stat
const DTChamber * stat() const
Associated chamber.
Definition: DTGeomSupplier.h:54
DTWireId.h
LocalPoint.h
DTTrigGeom
Definition: DTTrigGeom.h:41
DTGeomSupplier::station
int station() const
Return station number.
Definition: DTGeomSupplier.h:63
GlobalVector.h
DTGeomSupplier::CMSDirection
GlobalVector CMSDirection(const DTTrigData *trig) const
CMS direction in chamber of a trigger -data object.
Definition: DTGeomSupplier.h:78
DTTrigData.h
DTChamber.h
DTGeomSupplier::geom
DTTrigGeom * geom() const
Associated geometry.
Definition: DTGeomSupplier.h:51
DTChamberId
Definition: DTChamberId.h:14
DTTrigGeom::statId
DTChamberId statId() const
Identifier of the associated chamber.
Definition: DTTrigGeom.h:53
DTSuperLayerId.h
LocalVector.h
GlobalPoint.h
DTTrigGeom::station
int station() const
Return station number.
Definition: DTTrigGeom.h:62