#include <DTTrigGeom.h>
Public Member Functions | |
float | cellH () const |
Height of a cell (cm) More... | |
float | cellPitch () const |
Width of a cell (cm) i.e. distance between ywo wires. More... | |
GlobalPoint | CMSPosition (const DTBtiId obj) const |
CMS position of a BTI. More... | |
GlobalPoint | CMSPosition (const DTTracoId obj) const |
CMS position of a TRACO. More... | |
float | distSL () const |
Distance between the phi view superlayers (cms) More... | |
DTTrigGeom (DTChamber *stat, bool debug) | |
Constructor. More... | |
void | dumpGeom () const |
Dump the geometry. More... | |
void | dumpLUT (short int btic) |
Dump the LUT for this chamber. More... | |
void | IEEE32toDSP (float f, short int &DSPmantissa, short int &DSPexp) |
LocalPoint | localPosition (const DTBtiId) const |
Local position in chamber of a BTI. More... | |
LocalPoint | localPosition (const DTTracoId) const |
Local position in chamber of a TRACO. More... | |
int | mapTubeInFEch (int nsl, int nlay, int ntube) const |
Staggering of first wire of layer respect to default: obsolete 19/6/06. More... | |
int | nCell (int sl) const |
Number of BTIs in a required superlayer (i.e. nCells in lay 1) More... | |
float | phiCh () const |
Rotation angle of chamber (deg) More... | |
float | phiSLOffset () |
Superlayer offset in chamber front-end frame, in cm. More... | |
int | posFE (int sl) const |
Front End position : 1=toward negative y, 0=toward positive y. More... | |
int | sector () const |
Return sector number. More... | |
void | setGeom (const DTChamber *stat) |
Set/Update Geometry. More... | |
const DTChamber * | stat () const |
Associated chamber. More... | |
DTChamberId | statId () const |
Identifier of the associated chamber. More... | |
int | station () const |
Return station number. More... | |
GlobalPoint | toGlobal (const LocalPoint p) const |
Go to CMS coordinate system for a point. More... | |
GlobalVector | toGlobal (const LocalVector v) const |
Go to CMS coordinate system for a vector. More... | |
LocalPoint | toLocal (const GlobalPoint p) const |
Go to Local coordinate system for a point. More... | |
LocalVector | toLocal (const GlobalVector v) const |
Go to Local coordinate system for a vector. More... | |
LocalPoint | tubePosInCh (int nsl, int nlay, int ntube) const |
Wire position in chamber frame. More... | |
int | wheel () const |
Return wheel number. More... | |
float | ZcenterSL () const |
Coordinate of center of the 2 Phi SL. More... | |
float | ZSL (int) const |
Radial coordinate in chamber frame of center of a superlayer. More... | |
~DTTrigGeom () | |
Destructor. More... | |
Private Member Functions | |
void | getGeom () |
Get the geometry from the station. More... | |
Private Attributes | |
bool | _debug |
float | _H |
int | _NCELL [3] |
float | _PHICH |
float | _PITCH |
const DTChamber * | _stat |
float | _ZSL [3] |
Muon Barrel Trigger Geometry
Definition at line 43 of file DTTrigGeom.h.
DTTrigGeom::DTTrigGeom | ( | DTChamber * | stat, |
bool | debug | ||
) |
DTTrigGeom::~DTTrigGeom | ( | ) |
|
inline |
Height of a cell (cm)
Definition at line 77 of file DTTrigGeom.h.
References _H.
Referenced by DTBtiChip::DTBtiChip(), DTBtiCard::localDirection(), localPosition(), DTTracoChip::setTracoAcceptances(), DTTracoChip::storeCorr(), and DTTracoChip::storeUncorr().
|
inline |
Width of a cell (cm) i.e. distance between ywo wires.
Definition at line 80 of file DTTrigGeom.h.
References _PITCH.
Referenced by DTBtiChip::DTBtiChip(), DTTracoChip::DTTracoChip(), DTBtiCard::localDirection(), DTTracoCard::localDirection(), DTBtiCard::localPosition(), DTTracoCard::localPosition(), localPosition(), and DTTracoChip::setTracoAcceptances().
|
inline |
CMS position of a BTI.
Definition at line 184 of file DTTrigGeom.h.
References localPosition(), and toGlobal().
Referenced by DTBtiChip::CMSPosition(), DTTracoChip::CMSPosition(), DTBtiChip::DTBtiChip(), and dumpGeom().
|
inline |
CMS position of a TRACO.
Definition at line 189 of file DTTrigGeom.h.
References localPosition(), and toGlobal().
|
inline |
Distance between the phi view superlayers (cms)
Definition at line 83 of file DTTrigGeom.h.
References _ZSL.
Referenced by getGeom(), DTTracoCard::localDirection(), DTTracoCard::localPosition(), DTTracoChip::setTracoAcceptances(), DTTracoChip::storeCorr(), and DTTracoChip::storeUncorr().
void DTTrigGeom::dumpGeom | ( | ) | const |
Dump the geometry.
Definition at line 276 of file DTTrigGeom.cc.
References _stat, CMSPosition(), gather_cfg::cout, findQualityFiles::jj, localPosition(), PV3DBase< T, PVType, FrameType >::mag(), nCell(), PV3DBase< T, PVType, FrameType >::perp(), PV3DBase< T, PVType, FrameType >::phi(), phiCh(), createTree::pp, sector(), statId(), station(), GeomDet::toGlobal(), tubePosInCh(), wheel(), PV3DBase< T, PVType, FrameType >::z(), and ZSL().
Referenced by DTSCTrigUnit::dumpGeom().
void DTTrigGeom::dumpLUT | ( | short int | btic | ) |
Dump the LUT for this chamber.
Definition at line 327 of file DTTrigGeom.cc.
References _stat, diffTreeTool::diff, DTSuperLayerId, groupFilesInBlocks::fout, IEEE32toDSP(), localPosition(), m, mergeVDriftHistosByStation::name, phiCh(), createTree::pp, q1, sector(), mathSSE::sqrt(), statId(), station(), funct::tan(), GeomDet::toGlobal(), toGlobal(), wheel(), PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and ZcenterSL().
Referenced by DTSCTrigUnit::dumpLUT().
|
private |
Get the geometry from the station.
Definition at line 211 of file DTTrigGeom.cc.
References _debug, _H, _NCELL, _PHICH, _PITCH, _stat, _ZSL, DTTopology::channels(), gather_cfg::cout, distSL(), DTLayerId, DTTopology::firstChannel(), i, PV3DBase< T, PVType, FrameType >::mag(), nCell(), PV3DBase< T, PVType, FrameType >::phi(), phiCh(), position, createTree::pp, sector(), DTLayer::specificTopology(), statId(), station(), DTChamber::superLayer(), GeomDet::surface(), GeomDet::toGlobal(), Surface::toGlobal(), GloballyPositioned< T >::toLocal(), wheel(), DTTopology::wirePosition(), PV3DBase< T, PVType, FrameType >::z(), and ZSL().
Referenced by DTTrigGeom(), and setGeom().
void DTTrigGeom::IEEE32toDSP | ( | float | f, |
short int & | DSPmantissa, | ||
short int & | DSPexp | ||
) |
LocalPoint DTTrigGeom::localPosition | ( | const DTBtiId | id | ) | const |
Local position in chamber of a BTI.
NB: attention: in NEWGEO definition has changed: +---------+---------+---------+ | 1 o | 5 o | 9 o | +----+----+----+----+----+----+ | 3 o | 7 o | +----+----+----+----+----+ - - - -> x/-x | 2 o | 6 o | +----+----+----+----+----+ | 4 o | 8 o | +---------+---------+ ^ | x=0
Definition at line 523 of file DTTrigGeom.cc.
References _stat, cellH(), cellPitch(), DTLayerId, DTSuperLayerId, DTSuperLayer::layer(), DTLayer::specificTopology(), statId(), DTChamber::superLayer(), GeomDet::surface(), GeomDet::toGlobal(), GloballyPositioned< T >::toLocal(), and DTTopology::wirePosition().
Referenced by CMSPosition(), DTTracoChip::DTTracoChip(), dumpGeom(), dumpLUT(), DTBtiCard::localDirection(), DTBtiCard::localPosition(), DTBtiChip::localPosition(), DTTracoCard::localPosition(), DTTracoChip::localPosition(), and localPosition().
LocalPoint DTTrigGeom::localPosition | ( | const DTTracoId | id | ) | const |
Local position in chamber of a TRACO.
NB: attention: in NEWGEO definition has changed: +----+----+----+----+----+----+----+----+----+----+----+----+ | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | +----+----+----+----+----+----+----+----+----+----+----+----+ \ / | \ / | \ / | \ / | \ / ----|-------------------------------------------------------------------> | \ / | \ / | \ / | \ / | \ / | +----+----+----+----+ | | 1 | 2 | 3 | 4 | | +----+----+----+----+ X=0 ^ | traco position
Definition at line 584 of file DTTrigGeom.cc.
References cellPitch(), DTSuperLayerId, localPosition(), DTConfig::NBTITC, sector(), station(), wheel(), PV3DBase< T, PVType, FrameType >::x(), vdt::x, detailsBasic3DVector::y, detailsBasic3DVector::z, and ZcenterSL().
int DTTrigGeom::mapTubeInFEch | ( | int | nsl, |
int | nlay, | ||
int | ntube | ||
) | const |
Staggering of first wire of layer respect to default: obsolete 19/6/06.
Map tube number into hw wire number, and reverse hw num->tube (nb NOT in bti hardware number, this depends on connectors)
Definition at line 144 of file DTTrigGeom.cc.
References gather_cfg::cout, and station().
Referenced by DTBtiCard::loadBTI().
|
inline |
Number of BTIs in a required superlayer (i.e. nCells in lay 1)
Definition at line 92 of file DTTrigGeom.h.
References _NCELL.
Referenced by DTBtiCard::activeGetBTI(), DTBtiChip::add_digi(), dumpGeom(), getGeom(), and DTBtiChip::run().
|
inline |
Rotation angle of chamber (deg)
Definition at line 74 of file DTTrigGeom.h.
References _PHICH.
Referenced by DTTracoChip::calculateAngles(), dumpGeom(), dumpLUT(), and getGeom().
float DTTrigGeom::phiSLOffset | ( | ) |
Superlayer offset in chamber front-end frame, in cm.
Definition at line 71 of file DTTrigGeom.cc.
References evf::evtn::offset(), tubePosInCh(), and PV3DBase< T, PVType, FrameType >::x().
Referenced by DTTracoChip::DTTracoChip(), and DTTracoChip::setTracoAcceptances().
int DTTrigGeom::posFE | ( | int | sl | ) | const |
Front End position : 1=toward negative y, 0=toward positive y.
Definition at line 191 of file DTTrigGeom.cc.
References gather_cfg::cout, and station().
|
inline |
Return sector number.
Definition at line 69 of file DTTrigGeom.h.
References _stat, DTChamber::id(), and DTChamberId::sector().
Referenced by dumpGeom(), dumpLUT(), getGeom(), geometryXMLparser.DTAlignable::index(), localPosition(), DTGeomSupplier::sector(), DTSCTrigUnit::sector(), DTTracoChip::sector(), and DTBtiChip::sector().
void DTTrigGeom::setGeom | ( | const DTChamber * | stat | ) |
Set/Update Geometry.
Definition at line 203 of file DTTrigGeom.cc.
References _stat, getGeom(), and stat().
Referenced by DTSCTrigUnit::setGeom().
|
inline |
Associated chamber.
Definition at line 54 of file DTTrigGeom.h.
References _stat.
Referenced by setGeom(), DTGeomSupplier::stat(), and DTSCTrigUnit::stat().
|
inline |
Identifier of the associated chamber.
Definition at line 57 of file DTTrigGeom.h.
References _stat, and DTChamber::id().
Referenced by DTBtiCard::activeGetBTI(), DTTracoCard::activeGetTRACO(), DTGeomSupplier::ChamberId(), DTBtiChip::DTBtiChip(), DTTracoChip::DTTracoChip(), dumpGeom(), dumpLUT(), getGeom(), localPosition(), DTSCTrigUnit::statId(), and tubePosInCh().
|
inline |
Return station number.
Definition at line 66 of file DTTrigGeom.h.
References _stat, DTChamber::id(), and DTChamberId::station().
Referenced by dumpGeom(), dumpLUT(), getGeom(), geometryXMLparser.DTAlignable::index(), geometryXMLparser.CSCAlignable::index(), localPosition(), mapTubeInFEch(), posFE(), DTGeomSupplier::station(), DTSCTrigUnit::station(), DTTracoChip::station(), and DTBtiChip::station().
|
inline |
Go to CMS coordinate system for a point.
Definition at line 117 of file DTTrigGeom.h.
References _stat, GeomDet::surface(), and Surface::toGlobal().
Referenced by DTGeomSupplier::CMSDirection(), DTGeomSupplier::CMSPosition(), CMSPosition(), and dumpLUT().
|
inline |
Go to CMS coordinate system for a vector.
Definition at line 120 of file DTTrigGeom.h.
References _stat, GeomDet::surface(), and Surface::toGlobal().
|
inline |
Go to Local coordinate system for a point.
Definition at line 123 of file DTTrigGeom.h.
References _stat, GeomDet::surface(), and GloballyPositioned< T >::toLocal().
|
inline |
Go to Local coordinate system for a vector.
Definition at line 126 of file DTTrigGeom.h.
References _stat, GeomDet::surface(), and GloballyPositioned< T >::toLocal().
LocalPoint DTTrigGeom::tubePosInCh | ( | int | nsl, |
int | nlay, | ||
int | ntube | ||
) | const |
Wire position in chamber frame.
Definition at line 169 of file DTTrigGeom.cc.
References _stat, gather_cfg::cout, DTLayerId, DTSuperLayerId, DTSuperLayer::layer(), DTLayer::specificTopology(), statId(), DTChamber::superLayer(), GeomDet::surface(), GeomDet::toGlobal(), GloballyPositioned< T >::toLocal(), and DTTopology::wirePosition().
Referenced by dumpGeom(), and phiSLOffset().
|
inline |
Return wheel number.
Definition at line 63 of file DTTrigGeom.h.
References _stat, DTChamber::id(), and DTChamberId::wheel().
Referenced by dumpGeom(), dumpLUT(), getGeom(), geometryXMLparser.DTAlignable::index(), localPosition(), DTGeomSupplier::wheel(), DTSCTrigUnit::wheel(), DTTracoChip::wheel(), and DTBtiChip::wheel().
|
inline |
Coordinate of center of the 2 Phi SL.
Definition at line 86 of file DTTrigGeom.h.
References _ZSL.
Referenced by dumpLUT(), and localPosition().
float DTTrigGeom::ZSL | ( | int | sl | ) | const |
Radial coordinate in chamber frame of center of a superlayer.
Definition at line 265 of file DTTrigGeom.cc.
References _ZSL, and gather_cfg::cout.
Referenced by dumpGeom(), and getGeom().
|
private |
Definition at line 215 of file DTTrigGeom.h.
Referenced by getGeom(), cmsPerfSuite.PerfSuite::optionParse(), and cmsPerfSuite.PerfSuite::runCmsReport().
|
private |
Definition at line 211 of file DTTrigGeom.h.
|
private |
Definition at line 214 of file DTTrigGeom.h.
|
private |
Definition at line 210 of file DTTrigGeom.h.
|
private |
Definition at line 212 of file DTTrigGeom.h.
Referenced by cellPitch(), and getGeom().
|
private |
Definition at line 207 of file DTTrigGeom.h.
Referenced by dumpGeom(), dumpLUT(), getGeom(), localPosition(), sector(), setGeom(), stat(), statId(), station(), toGlobal(), toLocal(), tubePosInCh(), and wheel().
|
private |
Definition at line 213 of file DTTrigGeom.h.
Referenced by distSL(), getGeom(), ZcenterSL(), and ZSL().