CMS 3D CMS Logo

DTGeomSupplier Class Reference

Defines the ability to calculate coordinates of L1DT Trigger objects. More...

#include <L1Trigger/DTUtilities/interface/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/09/05 15:52:40
Revision
1.4

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.

00050 : _geom(geom) {}

virtual DTGeomSupplier::~DTGeomSupplier (  )  [inline, virtual]

Destructor.

Definition at line 53 of file DTGeomSupplier.h.

00053 {}


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(), DTTSTheta::setConfig(), DTTSPhi::setConfig(), and DTBtiCard::setConfig().

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

00085                                                                  {
00086     return _geom->toGlobal(localDirection(trig));
00087   }

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

00080                                                                {
00081     return _geom->toGlobal(localPosition(trig));
00082   }

DTTrigGeom* DTGeomSupplier::geom (  )  const [inline]

Associated geometry.

Definition at line 56 of file DTGeomSupplier.h.

References _geom.

Referenced by DTBtiCard::activeGetBTI(), DTTracoCard::activeGetTRACO(), DTTSTheta::add_btiT(), DTTracoCard::config_traco(), DTTracoChip::DTTracoChip(), DTBtiCard::loadBTI(), DTTracoCard::loadTRACO(), DTBtiCard::localDirection(), DTTracoCard::localDirection(), DTTracoCard::localPosition(), and DTBtiCard::localPosition().

00056 { return _geom; }

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

virtual void DTGeomSupplier::print ( const DTTrigData trig  )  const [inline, virtual]

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

Reimplemented in DTTSTheta.

Definition at line 90 of file DTGeomSupplier.h.

References CMSDirection(), CMSPosition(), GenMuonPlsPt100GeV_cfg::cout, lat::endl(), localDirection(), localPosition(), and DTTrigData::print().

Referenced by DTSCTrigUnit::print().

00090                                                    {
00091     trig->print();
00092     std::cout << " Local (pos)(dir): " << localPosition(trig)
00093               << localDirection(trig) << std::endl;
00094     std::cout << " CMS (pos)(dir): " << CMSPosition(trig) 
00095               << CMSDirection(trig) << std::endl;
00096   }    

int DTGeomSupplier::sector ( void   )  const [inline]

Return sector number.

Definition at line 71 of file DTGeomSupplier.h.

References _geom, and DTTrigGeom::sector().

Referenced by DTTSPhi::ignoreSecondTrack(), DTBtiCard::loadBTI(), DTTSTheta::loadDTTSTheta(), DTTracoCard::loadTRACO(), DTTSPhi::loadTSPhi(), DTBtiCard::runBTI(), DTTSTheta::runDTTSTheta(), DTTracoCard::runTRACO(), DTTSPhi::runTSPhi(), DTTracoCard::storeTrigger(), and DTBtiCard::storeTrigger().

00071 { return _geom->sector(); }

const DTChamber* DTGeomSupplier::stat (  )  const [inline]

Associated chamber.

Definition at line 59 of file DTGeomSupplier.h.

References _geom, and DTTrigGeom::stat().

00059 { return _geom->stat(); }

int DTGeomSupplier::station (  )  const [inline]

Return station number.

Definition at line 68 of file DTGeomSupplier.h.

References _geom, and DTTrigGeom::station().

Referenced by DTTSPhi::ignoreSecondTrack(), DTBtiCard::loadBTI(), DTTSTheta::loadDTTSTheta(), DTTracoCard::loadTRACO(), DTTSPhi::loadTSPhi(), DTBtiCard::runBTI(), DTTSTheta::runDTTSTheta(), DTTracoCard::runTRACO(), DTTSPhi::runTSPhi(), DTTracoCard::storeTrigger(), and DTBtiCard::storeTrigger().

00068 { return _geom->station(); }

int DTGeomSupplier::wheel (  )  const [inline]

Return wheel number.

Definition at line 65 of file DTGeomSupplier.h.

References _geom, and DTTrigGeom::wheel().

Referenced by DTBtiCard::loadBTI(), DTTSTheta::loadDTTSTheta(), DTTracoCard::loadTRACO(), DTTSPhi::loadTSPhi(), DTBtiCard::runBTI(), DTTSTheta::runDTTSTheta(), DTTracoCard::runTRACO(), DTTracoCard::storeTrigger(), and DTBtiCard::storeTrigger().

00065 { return _geom->wheel(); }


Member Data Documentation

DTTrigGeom* DTGeomSupplier::_geom [protected]

Definition at line 100 of file DTGeomSupplier.h.

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


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:18:54 2009 for CMSSW by  doxygen 1.5.4