CMS 3D CMS Logo

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 42 of file DTGeomSupplier.h.

Constructor & Destructor Documentation

DTGeomSupplier::DTGeomSupplier ( DTTrigGeom geom)
inline

Constructor.

Definition at line 45 of file DTGeomSupplier.h.

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

Destructor.

Definition at line 48 of file DTGeomSupplier.h.

48 {}

Member Function Documentation

DTChamberId DTGeomSupplier::ChamberId ( ) const
inline

Identifier of the associated chamber.

Definition at line 57 of file DTGeomSupplier.h.

References _geom, and DTTrigGeom::statId().

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

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

CMS direction in chamber of a trigger -data object.

Definition at line 78 of file DTGeomSupplier.h.

References _geom, localDirection(), print(), DTTrigGeom::toGlobal(), and ClusterTask_cfi::trig.

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

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

CMS position in chamber of a trigger-data object.

Definition at line 75 of file DTGeomSupplier.h.

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

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

75 { return _geom->toGlobal(localPosition(trig)); }
GlobalPoint toGlobal(const LocalPoint p) const
Go to CMS coordinate system for a point.
Definition: DTTrigGeom.h:110
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(), print(), and sector().

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(), print(), and sector().

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 CMSDirection(), and DTSCTrigUnit::print().

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

Associated chamber.

Definition at line 54 of file DTGeomSupplier.h.

References _geom, and DTTrigGeom::stat().

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

Member Data Documentation

DTTrigGeom* DTGeomSupplier::_geom
protected

Definition at line 84 of file DTGeomSupplier.h.

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