test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Attributes
DTGeomSupplier Class Referenceabstract

#include <DTGeomSupplier.h>

Inheritance diagram for DTGeomSupplier:
DTBtiCard DTTracoCard DTTSPhi DTTSTheta

Public Member Functions

DTChamberId ChamberId () const
 Identifier of the associated chamber. More...
 
GlobalVector CMSDirection (const DTTrigData *trig) const
 CMS direction in chamber of a trigger -data object. More...
 
GlobalPoint CMSPosition (const DTTrigData *trig) const
 CMS position in chamber of a trigger-data object. More...
 
 DTGeomSupplier (DTTrigGeom *geom)
 Constructor. More...
 
DTTrigGeomgeom () const
 Associated geometry. More...
 
virtual LocalVector localDirection (const DTTrigData *) const =0
 Local direction in chamber of a trigger-data object. More...
 
virtual LocalPoint localPosition (const DTTrigData *) const =0
 Local position in chamber of a trigger-data object. More...
 
virtual void print (const DTTrigData *trig) const
 Print a trigger-data object with also local and global position/direction. More...
 
int sector () const
 Return sector number. More...
 
const DTChamberstat () const
 Associated chamber. More...
 
int station () const
 Return station number. More...
 
int wheel () const
 Return wheel number. More...
 
virtual ~DTGeomSupplier ()
 Destructor. More...
 

Protected Attributes

DTTrigGeom_geom
 

Detailed Description

Defines the ability to calculate coordinates of L1DT Trigger objects

Author
C.Grandi

Definition at line 43 of file DTGeomSupplier.h.

Constructor & Destructor Documentation

DTGeomSupplier::DTGeomSupplier ( DTTrigGeom geom)
inline

Constructor.

Definition at line 48 of file DTGeomSupplier.h.

48 : _geom(geom) {}
DTTrigGeom * _geom
virtual DTGeomSupplier::~DTGeomSupplier ( )
inlinevirtual

Destructor.

Definition at line 51 of file DTGeomSupplier.h.

51 {}

Member Function Documentation

DTChamberId DTGeomSupplier::ChamberId ( ) const
inline

Identifier of the associated chamber.

Definition at line 60 of file DTGeomSupplier.h.

References _geom, and DTTrigGeom::statId().

Referenced by DTTSTheta::runDTTSTheta(), DTTSPhi::runTSPhi(), DTTSTheta::setConfig(), DTTSPhi::setConfig(), DTBtiCard::setConfig(), and DTTracoCard::setConfig().

60 { return _geom->statId(); }
DTChamberId statId() const
Identifier of the associated chamber.
Definition: DTTrigGeom.h:55
DTTrigGeom * _geom
GlobalVector DTGeomSupplier::CMSDirection ( const DTTrigData trig) const
inline

CMS direction in chamber of a trigger -data object.

Definition at line 83 of file DTGeomSupplier.h.

References _geom, localDirection(), and DTTrigGeom::toGlobal().

Referenced by DTSCTrigUnit::CMSDirection(), and print().

83  {
84  return _geom->toGlobal(localDirection(trig));
85  }
GlobalPoint toGlobal(const LocalPoint p) const
Go to CMS coordinate system for a point.
Definition: DTTrigGeom.h:115
DTTrigGeom * _geom
virtual LocalVector localDirection(const DTTrigData *) const =0
Local direction in chamber of a trigger-data object.
GlobalPoint DTGeomSupplier::CMSPosition ( const DTTrigData trig) const
inline

CMS position in chamber of a trigger-data object.

Definition at line 78 of file DTGeomSupplier.h.

References _geom, localPosition(), and DTTrigGeom::toGlobal().

Referenced by DTTracoChip::calculateAngles(), DTSCTrigUnit::CMSPosition(), and print().

78  {
79  return _geom->toGlobal(localPosition(trig));
80  }
GlobalPoint toGlobal(const LocalPoint p) const
Go to CMS coordinate system for a point.
Definition: DTTrigGeom.h:115
virtual LocalPoint localPosition(const DTTrigData *) const =0
Local position in chamber of a trigger-data object.
DTTrigGeom * _geom
DTTrigGeom* DTGeomSupplier::geom ( ) const
inline
virtual LocalVector DTGeomSupplier::localDirection ( const DTTrigData ) const
pure virtual

Local direction in chamber of a trigger-data object.

Implemented in DTTracoCard, DTBtiCard, DTTSPhi, and DTTSTheta.

Referenced by CMSDirection(), DTSCTrigUnit::localDirection(), and print().

virtual LocalPoint DTGeomSupplier::localPosition ( const DTTrigData ) const
pure virtual

Local position in chamber of a trigger-data object.

Implemented in DTTracoCard, DTBtiCard, DTTSPhi, and DTTSTheta.

Referenced by CMSPosition(), DTSCTrigUnit::localPosition(), and print().

void DTGeomSupplier::print ( const DTTrigData trig) const
virtual

Print a trigger-data object with also local and global position/direction.

Reimplemented in DTTSTheta.

Definition at line 4 of file DTGeomSupplier.cc.

References CMSDirection(), CMSPosition(), gather_cfg::cout, localDirection(), localPosition(), and DTTrigData::print().

Referenced by DTSCTrigUnit::print().

4  {
5  trig->print();
6  std::cout << " Local (pos)(dir): " << localPosition(trig)
7  << localDirection(trig) << std::endl;
8  std::cout << " CMS (pos)(dir): " << CMSPosition(trig)
9  << CMSDirection(trig) << std::endl;
10 }
virtual void print() const =0
Print a trigger-data object with also local and global position/direction.
GlobalPoint CMSPosition(const DTTrigData *trig) const
CMS position in chamber of a trigger-data object.
GlobalVector CMSDirection(const DTTrigData *trig) const
CMS direction in chamber of a trigger -data object.
virtual LocalPoint localPosition(const DTTrigData *) const =0
Local position in chamber of a trigger-data object.
tuple cout
Definition: gather_cfg.py:145
virtual LocalVector localDirection(const DTTrigData *) const =0
Local direction in chamber of a trigger-data object.
int DTGeomSupplier::sector ( void  ) const
inline
const DTChamber* DTGeomSupplier::stat ( ) const
inline

Associated chamber.

Definition at line 57 of file DTGeomSupplier.h.

References _geom, and DTTrigGeom::stat().

57 { return _geom->stat(); }
const DTChamber * stat() const
Associated chamber.
Definition: DTTrigGeom.h:52
DTTrigGeom * _geom
int DTGeomSupplier::station ( ) const
inline
int DTGeomSupplier::wheel ( ) const
inline

Member Data Documentation

DTTrigGeom* DTGeomSupplier::_geom
protected

Definition at line 92 of file DTGeomSupplier.h.

Referenced by ChamberId(), CMSDirection(), CMSPosition(), geom(), sector(), stat(), station(), and wheel().