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::DTGeomSupplier ( DTTrigGeom geom)
inline

Constructor.

Definition at line 45 of file DTGeomSupplier.h.

45 : _geom(geom) {}

◆ ~DTGeomSupplier()

virtual DTGeomSupplier::~DTGeomSupplier ( )
inlinevirtual

Destructor.

Definition at line 48 of file DTGeomSupplier.h.

48 {}

Member Function Documentation

◆ ChamberId()

DTChamberId DTGeomSupplier::ChamberId ( ) const
inline

Identifier of the associated chamber.

Definition at line 57 of file DTGeomSupplier.h.

57 { return _geom->statId(); }

References _geom, and DTTrigGeom::statId().

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

◆ CMSDirection()

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.

78 { return _geom->toGlobal(localDirection(trig)); }

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

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

◆ CMSPosition()

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.

75 { return _geom->toGlobal(localPosition(trig)); }

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

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

◆ geom()

DTTrigGeom* DTGeomSupplier::geom ( ) const
inline

◆ localDirection()

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().

◆ localPosition()

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().

◆ 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.

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 }

References CMSDirection(), CMSPosition(), gather_cfg::cout, localDirection(), localPosition(), and ClusterTask_cfi::trig.

Referenced by DTSCTrigUnit::print().

◆ sector()

int DTGeomSupplier::sector ( void  ) const
inline

◆ stat()

const DTChamber* DTGeomSupplier::stat ( ) const
inline

Associated chamber.

Definition at line 54 of file DTGeomSupplier.h.

54 { return _geom->stat(); }

References _geom, and DTTrigGeom::stat().

◆ station()

int DTGeomSupplier::station ( ) const
inline

◆ wheel()

int DTGeomSupplier::wheel ( ) const
inline

Member Data Documentation

◆ _geom

DTTrigGeom* DTGeomSupplier::_geom
protected

Definition at line 84 of file DTGeomSupplier.h.

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

DTTrigGeom::wheel
int wheel() const
Return wheel number.
Definition: DTTrigGeom.h:59
gather_cfg.cout
cout
Definition: gather_cfg.py:144
DTTrigGeom::toGlobal
GlobalPoint toGlobal(const LocalPoint p) const
Go to CMS coordinate system for a point.
Definition: DTTrigGeom.h:110
DTGeomSupplier::localDirection
virtual LocalVector localDirection(const DTTrigData *) const =0
Local direction in chamber of a trigger-data object.
DTTrigGeom::stat
const DTChamber * stat() const
Associated chamber.
Definition: DTTrigGeom.h:50
DTTrigGeom::sector
int sector() const
Return sector number.
Definition: DTTrigGeom.h:65
DTGeomSupplier::CMSPosition
GlobalPoint CMSPosition(const DTTrigData *trig) const
CMS position in chamber of a trigger-data object.
Definition: DTGeomSupplier.h:75
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::CMSDirection
GlobalVector CMSDirection(const DTTrigData *trig) const
CMS direction in chamber of a trigger -data object.
Definition: DTGeomSupplier.h:78
DTGeomSupplier::geom
DTTrigGeom * geom() const
Associated geometry.
Definition: DTGeomSupplier.h:51
DTTrigGeom::statId
DTChamberId statId() const
Identifier of the associated chamber.
Definition: DTTrigGeom.h:53
DTTrigGeom::station
int station() const
Return station number.
Definition: DTTrigGeom.h:62