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

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

Destructor.

Definition at line 49 of file DTGeomSupplier.h.

49 {}

Member Function Documentation

DTChamberId DTGeomSupplier::ChamberId ( ) const
inline

Identifier of the associated chamber.

Definition at line 58 of file DTGeomSupplier.h.

References _geom, and DTTrigGeom::statId().

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

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

CMS direction in chamber of a trigger -data object.

Definition at line 81 of file DTGeomSupplier.h.

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

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

81  {
82  return _geom->toGlobal(localDirection(trig));
83  }
GlobalPoint toGlobal(const LocalPoint p) const
Go to CMS coordinate system for a point.
Definition: DTTrigGeom.h:113
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 76 of file DTGeomSupplier.h.

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

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

76  {
77  return _geom->toGlobal(localPosition(trig));
78  }
GlobalPoint toGlobal(const LocalPoint p) const
Go to CMS coordinate system for a point.
Definition: DTTrigGeom.h:113
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)
7  << localDirection(trig) << std::endl;
8  std::cout << " CMS (pos)(dir): " << CMSPosition(trig) << CMSDirection(trig)
9  << std::endl;
10 }
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 55 of file DTGeomSupplier.h.

References _geom, and DTTrigGeom::stat().

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

Member Data Documentation

DTTrigGeom* DTGeomSupplier::_geom
protected

Definition at line 89 of file DTGeomSupplier.h.

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