#include <DTGeomSupplier.h>
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. | |
DTTrigGeom * | geom () 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 DTChamber * | stat () const |
Associated chamber. | |
int | station () const |
Return station number. | |
int | wheel () const |
Return wheel number. | |
virtual | ~DTGeomSupplier () |
Destructor. | |
Protected Attributes | |
DTTrigGeom * | _geom |
Defines the ability to calculate coordinates of L1DT Trigger objects
Definition at line 45 of file DTGeomSupplier.h.
DTGeomSupplier::DTGeomSupplier | ( | DTTrigGeom * | geom | ) | [inline] |
virtual DTGeomSupplier::~DTGeomSupplier | ( | ) | [inline, virtual] |
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().
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] |
Associated geometry.
Definition at line 56 of file DTGeomSupplier.h.
References _geom.
Referenced by DTBtiCard::activeGetBTI(), DTTracoCard::activeGetTRACO(), DTTSTheta::add_btiT(), DTTracoChip::DTTracoChip(), DTBtiCard::loadBTI(), DTTracoCard::loadTRACO(), DTBtiCard::localDirection(), DTTracoCard::localDirection(), DTTracoCard::localPosition(), and DTBtiCard::localPosition().
{ 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().
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] |
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().
const DTChamber* DTGeomSupplier::stat | ( | ) | const [inline] |
Associated chamber.
Definition at line 59 of file DTGeomSupplier.h.
References _geom, and DTTrigGeom::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().
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().
DTTrigGeom* DTGeomSupplier::_geom [protected] |
Definition at line 94 of file DTGeomSupplier.h.
Referenced by ChamberId(), CMSDirection(), CMSPosition(), geom(), sector(), stat(), station(), and wheel().