#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 74 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 77 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 188 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 193 of file DTTrigGeom.h.
References dumpGeom(), dumpLUT(), f, getGeom(), IEEE32toDSP(), localPosition(), and toGlobal().
|
inline |
Distance between the phi view superlayers (cms)
Definition at line 80 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 275 of file DTTrigGeom.cc.
References _stat, CMSPosition(), gather_cfg::cout, cuy::ii, 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 CMSPosition(), and DTSCTrigUnit::dumpGeom().
void DTTrigGeom::dumpLUT | ( | short int | btic | ) |
Dump the LUT for this chamber.
Definition at line 331 of file DTTrigGeom.cc.
References _stat, edmIntegrityCheck::d, TauDecayModes::dec, diffTreeTool::diff, groupFilesInBlocks::fout, IEEE32toDSP(), localPosition(), funct::m, dataset::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 CMSPosition(), and DTSCTrigUnit::dumpLUT().
|
private |
Get the geometry from the station.
Definition at line 213 of file DTTrigGeom.cc.
References _debug, _H, _NCELL, _PHICH, _PITCH, _stat, _ZSL, DTTopology::channels(), gather_cfg::cout, distSL(), DTTopology::firstChannel(), alignBH_cfg::fixed, mps_fire::i, DTSuperLayer::layer(), PV3DBase< T, PVType, FrameType >::mag(), 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(), wheel(), DTTopology::wirePosition(), PV3DBase< T, PVType, FrameType >::z(), and ZSL().
Referenced by CMSPosition(), DTTrigGeom(), and setGeom().
void DTTrigGeom::IEEE32toDSP | ( | float | f, |
short int & | DSPmantissa, | ||
short int & | DSPexp | ||
) |
Definition at line 514 of file DTTrigGeom.cc.
References Validation_hcalonly_cfi::sign.
Referenced by CMSPosition(), and 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 541 of file DTTrigGeom.cc.
References _stat, cellH(), cellPitch(), DTSuperLayer::layer(), phase1PixelTopology::localX(), 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(), localPosition(), and toLocal().
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 606 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 148 of file DTTrigGeom.cc.
References gather_cfg::cout, and station().
Referenced by DTBtiCard::loadBTI(), and nCell().
|
inline |
Number of BTIs in a required superlayer (i.e. nCells in lay 1)
Definition at line 89 of file DTTrigGeom.h.
References _NCELL, mapTubeInFEch(), phiSLOffset(), posFE(), and tubePosInCh().
Referenced by DTBtiCard::activeGetBTI(), DTBtiChip::add_digi(), dumpGeom(), getGeom(), and DTBtiChip::run().
|
inline |
Rotation angle of chamber (deg)
Definition at line 71 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 68 of file DTTrigGeom.cc.
References PFRecoTauDiscriminationByIsolation_cfi::offset, tubePosInCh(), PV3DBase< T, PVType, FrameType >::x(), and globals_cff::x1.
Referenced by DTTracoChip::DTTracoChip(), nCell(), and DTTracoChip::setTracoAcceptances().
int DTTrigGeom::posFE | ( | int | sl | ) | const |
Front End position : 1=toward negative y, 0=toward positive y.
Definition at line 196 of file DTTrigGeom.cc.
References gather_cfg::cout, and station().
Referenced by nCell().
|
inline |
Return sector number.
Definition at line 66 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 207 of file DTTrigGeom.cc.
References _stat, getGeom(), and stat().
Referenced by DTSCTrigUnit::setGeom(), and statId().
|
inline |
Associated chamber.
Definition at line 51 of file DTTrigGeom.h.
References _stat.
Referenced by setGeom(), DTGeomSupplier::stat(), and DTSCTrigUnit::stat().
|
inline |
Identifier of the associated chamber.
Definition at line 54 of file DTTrigGeom.h.
References _stat, DTChamber::id(), and setGeom().
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 63 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 113 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 118 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 128 of file DTTrigGeom.h.
References _stat, localPosition(), GeomDet::surface(), and GloballyPositioned< T >::toLocal().
LocalPoint DTTrigGeom::tubePosInCh | ( | int | nsl, |
int | nlay, | ||
int | ntube | ||
) | const |
Wire position in chamber frame.
Definition at line 174 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(), nCell(), and phiSLOffset().
|
inline |
Return wheel number.
Definition at line 60 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 83 of file DTTrigGeom.h.
Referenced by dumpLUT(), and localPosition().
float DTTrigGeom::ZSL | ( | int | sl | ) | const |
Radial coordinate in chamber frame of center of a superlayer.
Definition at line 266 of file DTTrigGeom.cc.
References _ZSL, and gather_cfg::cout.
Referenced by dumpGeom(), getGeom(), and ZcenterSL().
|
private |
Definition at line 217 of file DTTrigGeom.h.
Referenced by getGeom(), cmsPerfSuite.PerfSuite::optionParse(), and cmsPerfSuite.PerfSuite::runCmsReport().
|
private |
Definition at line 213 of file DTTrigGeom.h.
|
private |
Definition at line 216 of file DTTrigGeom.h.
|
private |
Definition at line 212 of file DTTrigGeom.h.
|
private |
Definition at line 214 of file DTTrigGeom.h.
Referenced by cellPitch(), and getGeom().
|
private |
Definition at line 209 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 215 of file DTTrigGeom.h.
Referenced by distSL(), getGeom(), ZcenterSL(), and ZSL().