#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 (const 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] |
Definition at line 41 of file DTTrigGeom.h.
DTTrigGeom::DTTrigGeom | ( | const DTChamber * | stat, |
bool | debug | ||
) |
DTTrigGeom::~DTTrigGeom | ( | ) |
|
inline |
Height of a cell (cm)
Definition at line 73 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 76 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 177 of file DTTrigGeom.h.
References localPosition(), getGTfromDQMFile::obj, and toGlobal().
Referenced by DTBtiChip::CMSPosition(), DTTracoChip::CMSPosition(), DTBtiChip::DTBtiChip(), and dumpGeom().
|
inline |
CMS position of a TRACO.
Definition at line 180 of file DTTrigGeom.h.
References localPosition(), getGTfromDQMFile::obj, and toGlobal().
|
inline |
Distance between the phi view superlayers (cms)
Definition at line 79 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 266 of file DTTrigGeom.cc.
References _stat, CMSPosition(), gather_cfg::cout, cuy::ii, findQualityFiles::jj, localPosition(), 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 316 of file DTTrigGeom.cc.
References _stat, ztail::d, TauDecayModes::dec, change_name::diff, groupFilesInBlocks::fout, IEEE32toDSP(), localPosition(), visualization-live-secondInstance_cfg::m, Skims_PA_cff::name, phiCh(), createTree::pp, 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 208 of file DTTrigGeom.cc.
References _debug, _H, _NCELL, _PHICH, _PITCH, _stat, _ZSL, DTTopology::channels(), gather_cfg::cout, distSL(), alignBH_cfg::fixed, mps_fire::i, DTSuperLayer::layer(), nCell(), PV3DBase< T, PVType, FrameType >::phi(), phiCh(), position, RecoTauValidation_cfi::posX, createTree::pp, sector(), DTLayer::specificTopology(), statId(), station(), DTChamber::superLayer(), GeomDet::surface(), GeomDet::toGlobal(), Surface::toGlobal(), GloballyPositioned< T >::toLocal(), cmsswSequenceInfo::tp, wheel(), PV3DBase< T, PVType, FrameType >::z(), and ZSL().
Referenced by DTTrigGeom(), and setGeom().
void DTTrigGeom::IEEE32toDSP | ( | float | f, |
short int & | DSPmantissa, | ||
short int & | DSPexp | ||
) |
Definition at line 482 of file DTTrigGeom.cc.
References f, and Validation_hcalonly_cfi::sign.
Referenced by dumpLUT().
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 508 of file DTTrigGeom.cc.
References _stat, cellH(), cellPitch(), DTSuperLayer::layer(), phase1PixelTopology::localX(), DTLayer::specificTopology(), statId(), DTChamber::superLayer(), GeomDet::surface(), GeomDet::toGlobal(), GloballyPositioned< T >::toLocal(), DTTopology::wirePosition(), and gpuVertexFinder::zt.
Referenced by CMSPosition(), DTTracoChip::DTTracoChip(), dumpGeom(), dumpLUT(), DTBtiCard::localDirection(), DTBtiCard::localPosition(), DTTracoCard::localPosition(), DTBtiChip::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 572 of file DTTrigGeom.cc.
References cellPitch(), localPosition(), DTConfig::NBTITC, sector(), station(), wheel(), x, PV3DBase< T, PVType, FrameType >::x(), y, 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 88 of file DTTrigGeom.h.
References _NCELL.
Referenced by DTBtiCard::activeGetBTI(), DTBtiChip::add_digi(), dumpGeom(), getGeom(), AngleConverterBase::getGlobalEta(), and DTBtiChip::run().
|
inline |
Rotation angle of chamber (deg)
Definition at line 70 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 64 of file DTTrigGeom.cc.
References hltrates_dqm_sourceclient-live_cfg::offset, tubePosInCh(), PV3DBase< T, PVType, FrameType >::x(), and testProducerWithPsetDescEmpty_cfi::x1.
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 192 of file DTTrigGeom.cc.
References gather_cfg::cout, and station().
|
inline |
Return sector number.
Definition at line 65 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 50 of file DTTrigGeom.h.
References _stat.
Referenced by setGeom(), DTGeomSupplier::stat(), and DTSCTrigUnit::stat().
|
inline |
Identifier of the associated chamber.
Definition at line 53 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 62 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 110 of file DTTrigGeom.h.
References _stat, AlCaHLTBitMon_ParallelJobs::p, 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 113 of file DTTrigGeom.h.
References _stat, GeomDet::surface(), Surface::toGlobal(), and findQualityFiles::v.
|
inline |
Go to Local coordinate system for a point.
Definition at line 116 of file DTTrigGeom.h.
References _stat, AlCaHLTBitMon_ParallelJobs::p, GeomDet::surface(), and GloballyPositioned< T >::toLocal().
|
inline |
Go to Local coordinate system for a vector.
Definition at line 119 of file DTTrigGeom.h.
References _stat, GeomDet::surface(), GloballyPositioned< T >::toLocal(), and findQualityFiles::v.
LocalPoint DTTrigGeom::tubePosInCh | ( | int | nsl, |
int | nlay, | ||
int | ntube | ||
) | const |
Wire position in chamber frame.
Definition at line 170 of file DTTrigGeom.cc.
References _stat, gather_cfg::cout, DTSuperLayer::layer(), phase1PixelTopology::localX(), 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 59 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 82 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 257 of file DTTrigGeom.cc.
References _ZSL, and gather_cfg::cout.
Referenced by dumpGeom(), and getGeom().
|
private |
Definition at line 202 of file DTTrigGeom.h.
Referenced by getGeom().
|
private |
Definition at line 198 of file DTTrigGeom.h.
|
private |
Definition at line 201 of file DTTrigGeom.h.
|
private |
Definition at line 197 of file DTTrigGeom.h.
|
private |
Definition at line 199 of file DTTrigGeom.h.
Referenced by cellPitch(), and getGeom().
|
private |
Definition at line 194 of file DTTrigGeom.h.
Referenced by plotting.Plot::_setStats(), dumpGeom(), dumpLUT(), getGeom(), localPosition(), sector(), setGeom(), stat(), statId(), station(), toGlobal(), toLocal(), tubePosInCh(), and wheel().
|
private |
Definition at line 200 of file DTTrigGeom.h.
Referenced by distSL(), getGeom(), ZcenterSL(), and ZSL().