#include <DTTrigGeomUtils.h>
Public Member Functions | |
void | computeSCCoordinates (const DTRecSegment4D *track, int &scsec, float &x, float &xdir, float &y, float &ydir) |
Compute track coordinates with SC sector numbering. More... | |
DTTrigGeomUtils (edm::ESHandle< DTGeometry > muonGeom, bool dirInDeg=true) | |
Constructor. More... | |
bool | hasPosRF (int wh, int sec) |
Checks id the chamber has positive RF;. More... | |
void | phiRange (const DTChamberId &id, float &min, float &max, int &nbins, float step=15) |
Compute phi range in local chamber coordinates. More... | |
void | thetaRange (const DTChamberId &id, float &min, float &max, int &nbins, float step=15) |
Compute theta range in local chamber coordinates. More... | |
float | trigDir (const L1MuDTChambPhDigi *trig) |
Return local direction (trigger RF) for a given trigger primitive. More... | |
float | trigPos (const L1MuDTChambPhDigi *trig) |
Return local position (trigger RF) for a given trigger primitive. More... | |
void | trigToSeg (int st, float &x, float dir) |
Compute Trigger x coordinate in chamber RF. More... | |
virtual | ~DTTrigGeomUtils () |
Destructor. More... | |
Private Attributes | |
edm::ESHandle< DTGeometry > | muonGeom_ |
float | radToDeg_ |
float | xCenter_ [2] |
float | zcn_ [4] |
Definition at line 23 of file DTTrigGeomUtils.h.
DTTrigGeomUtils::DTTrigGeomUtils | ( | edm::ESHandle< DTGeometry > | muonGeom, |
bool | dirInDeg = true |
||
) |
Constructor.
Definition at line 33 of file DTTrigGeomUtils.cc.
References DTChamberId, DTSuperLayerId, muonGeom_, Geom::pi(), GeomDet::position(), radToDeg_, DTChamber::superLayer(), GeomDet::surface(), GeomDet::toLocal(), GloballyPositioned< T >::toLocal(), vdt::x, xCenter_, detailsBasic3DVector::z, and zcn_.
|
virtual |
void DTTrigGeomUtils::computeSCCoordinates | ( | const DTRecSegment4D * | track, |
int & | scsec, | ||
float & | x, | ||
float & | xdir, | ||
float & | y, | ||
float & | ydir | ||
) |
Compute track coordinates with SC sector numbering.
Definition at line 61 of file DTTrigGeomUtils.cc.
References abs, DTRecSegment4D::chamberId(), DTRecSegment4D::localDirection(), DTRecSegment4D::localPosition(), radToDeg_, DTChamberId::sector(), DTChamberId::station(), relativeConstraints::station, PV3DBase< T, PVType, FrameType >::x(), xCenter_, PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by DTLocalTriggerLutTask::analyze(), DTTriggerEfficiencyTask::analyze(), and DTLocalTriggerTask::runSegmentAnalysis().
|
inline |
Checks id the chamber has positive RF;.
Definition at line 52 of file DTTrigGeomUtils.h.
void DTTrigGeomUtils::phiRange | ( | const DTChamberId & | id, |
float & | min, | ||
float & | max, | ||
int & | nbins, | ||
float | step = 15 |
||
) |
Compute phi range in local chamber coordinates.
Definition at line 77 of file DTTrigGeomUtils.cc.
References DTTopology::cellWidth(), DTTopology::channels(), DTLayerId, min, muonGeom_, DTLayer::specificTopology(), and relativeConstraints::station.
Referenced by DTTriggerEfficiencyTask::bookChamberHistos(), DTLocalTriggerEfficiencyTest::bookChambHistos(), DTLocalTriggerTask::bookHistos(), and DTLocalTriggerBaseTask::bookHistos().
void DTTrigGeomUtils::thetaRange | ( | const DTChamberId & | id, |
float & | min, | ||
float & | max, | ||
int & | nbins, | ||
float | step = 15 |
||
) |
Compute theta range in local chamber coordinates.
Definition at line 99 of file DTTrigGeomUtils.cc.
References DTTopology::cellWidth(), DTTopology::channels(), DTLayerId, min, muonGeom_, and DTLayer::specificTopology().
Referenced by DTLocalTriggerEfficiencyTest::bookChambHistos(), and DTLocalTriggerTask::bookHistos().
float DTTrigGeomUtils::trigDir | ( | const L1MuDTChambPhDigi * | trig | ) |
Return local direction (trigger RF) for a given trigger primitive.
Definition at line 153 of file DTTrigGeomUtils.cc.
References dir, hasPosRF(), phi, L1MuDTChambPhDigi::phi(), L1MuDTChambPhDigi::phiB(), radToDeg_, L1MuDTChambPhDigi::scNum(), and L1MuDTChambPhDigi::whNum().
Referenced by DTLocalTriggerLutTask::analyze(), DTLocalTriggerTask::runDCCAnalysis(), DTLocalTriggerBaseTask::runDCCAnalysis(), and DTLocalTriggerTask::runSegmentAnalysis().
float DTTrigGeomUtils::trigPos | ( | const L1MuDTChambPhDigi * | trig | ) |
Return local position (trigger RF) for a given trigger primitive.
Definition at line 114 of file DTTrigGeomUtils.cc.
References funct::cos(), DTChamberId, hasPosRF(), muonGeom_, PV3DBase< T, PVType, FrameType >::perp(), phi, L1MuDTChambPhDigi::phi(), PV3DBase< T, PVType, FrameType >::phi(), Geom::pi(), alignCSCRings::r, L1MuDTChambPhDigi::scNum(), L1MuDTChambPhDigi::stNum(), funct::tan(), L1MuDTChambPhDigi::whNum(), vdt::x, xCenter_, and zcn_.
Referenced by DTLocalTriggerLutTask::analyze(), DTLocalTriggerTask::runDCCAnalysis(), DTLocalTriggerBaseTask::runDCCAnalysis(), and DTLocalTriggerTask::runSegmentAnalysis().
|
inline |
Compute Trigger x coordinate in chamber RF.
Definition at line 49 of file DTTrigGeomUtils.h.
References radToDeg_, funct::tan(), and zcn_.
Referenced by DTLocalTriggerLutTask::analyze(), and DTLocalTriggerTask::runSegmentAnalysis().
|
private |
Definition at line 52 of file DTTrigGeomUtils.h.
Referenced by DTTrigGeomUtils(), phiRange(), thetaRange(), and trigPos().
|
private |
Definition at line 58 of file DTTrigGeomUtils.h.
Referenced by computeSCCoordinates(), DTTrigGeomUtils(), trigDir(), and trigToSeg().
|
private |
Definition at line 59 of file DTTrigGeomUtils.h.
Referenced by computeSCCoordinates(), DTTrigGeomUtils(), and trigPos().
|
private |
Definition at line 57 of file DTTrigGeomUtils.h.
Referenced by DTTrigGeomUtils(), trigPos(), and trigToSeg().