CMS 3D CMS Logo

Public Member Functions | Protected Attributes

DTGeomSupplier Class Reference

#include <DTGeomSupplier.h>

Inheritance diagram for DTGeomSupplier:
DTBtiCard DTTracoCard DTTSPhi DTTSTheta

List of all members.

Public Member Functions

DTChamberId ChamberId () const
 Identifier of the associated chamber.
GlobalVector CMSDirection (const DTTrigData *trig) const
 CMS direction in chamber of a trigger -data object.
GlobalPoint CMSPosition (const DTTrigData *trig) const
 CMS position in chamber of a trigger-data object.
 DTGeomSupplier (DTTrigGeom *geom)
 Constructor.
DTTrigGeomgeom () const
 Associated geometry.
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 DTTrigData *trig) const
 Print a trigger-data object with also local and global position/direction.
int sector () const
 Return sector number.
const DTChamberstat () const
 Associated chamber.
int station () const
 Return station number.
int wheel () const
 Return wheel number.
virtual ~DTGeomSupplier ()
 Destructor.

Protected Attributes

DTTrigGeom_geom

Detailed Description

Defines the ability to calculate coordinates of L1DT Trigger objects

Date:
2008/11/05 00:08:28
Revision:
1.5
Author:
C.Grandi

Definition at line 45 of file DTGeomSupplier.h.


Constructor & Destructor Documentation

DTGeomSupplier::DTGeomSupplier ( DTTrigGeom geom) [inline]

Constructor.

Definition at line 50 of file DTGeomSupplier.h.

: _geom(geom) {}
virtual DTGeomSupplier::~DTGeomSupplier ( ) [inline, virtual]

Destructor.

Definition at line 53 of file DTGeomSupplier.h.

{}

Member Function Documentation

DTChamberId DTGeomSupplier::ChamberId ( ) const [inline]

Identifier of the associated chamber.

Definition at line 62 of file DTGeomSupplier.h.

References _geom, and DTTrigGeom::statId().

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

{ return _geom->statId(); }
GlobalVector DTGeomSupplier::CMSDirection ( const DTTrigData trig) const [inline]

CMS direction in chamber of a trigger -data object.

Definition at line 85 of file DTGeomSupplier.h.

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

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

                                                                 {
    return _geom->toGlobal(localDirection(trig));
  }
GlobalPoint DTGeomSupplier::CMSPosition ( const DTTrigData trig) const [inline]

CMS position in chamber of a trigger-data object.

Definition at line 80 of file DTGeomSupplier.h.

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

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

                                                               {
    return _geom->toGlobal(localPosition(trig));
  }
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 DTBtiCard, DTTracoCard, 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 DTBtiCard, DTTracoCard, 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().

                                                       {
  trig->print();
  std::cout << " Local (pos)(dir): " << localPosition(trig)
            << localDirection(trig) << std::endl;
  std::cout << " CMS (pos)(dir): " << CMSPosition(trig) 
            << CMSDirection(trig) << std::endl;
}    
int DTGeomSupplier::sector ( void  ) const [inline]
const DTChamber* DTGeomSupplier::stat ( ) const [inline]

Associated chamber.

Definition at line 59 of file DTGeomSupplier.h.

References _geom, and DTTrigGeom::stat().

{ return _geom->stat(); }
int DTGeomSupplier::station ( ) const [inline]
int DTGeomSupplier::wheel ( ) const [inline]

Member Data Documentation

Definition at line 94 of file DTGeomSupplier.h.

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