#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 21 of file DTTrigGeomUtils.h.
DTTrigGeomUtils::DTTrigGeomUtils | ( | edm::ESHandle< DTGeometry > | muonGeom, |
bool | dirInDeg = true |
||
) |
Constructor.
Definition at line 30 of file DTTrigGeomUtils.cc.
References DTGeometry::chamber(), muonGeom_, Geom::pi(), GeomDet::position(), radToDeg_, DTChamber::superLayer(), GeomDet::surface(), GeomDet::toLocal(), GloballyPositioned< T >::toLocal(), x, xCenter_, 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 52 of file DTTrigGeomUtils.cc.
References funct::abs(), radToDeg_, nano_mu_digi_cff::sector, relativeConstraints::station, HLT_2024v13_cff::track, x, xCenter_, xdir, y, and ydir.
Referenced by DTLocalTriggerLutTask::analyze(), DTTriggerEfficiencyTask::analyze(), and DTLocalTriggerTask::runSegmentAnalysis().
|
inline |
Checks id the chamber has positive RF;.
Definition at line 48 of file DTTrigGeomUtils.h.
Referenced by trigDir(), and trigPos().
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 67 of file DTTrigGeomUtils.cc.
References DTTopology::cellWidth(), DTTopology::channels(), nano_mu_digi_cff::layer, DTGeometry::layer(), SiStripPI::max, SiStripPI::min, muonGeom_, LaserClient_cfi::nbins, FastTimerService_cff::range, nano_mu_digi_cff::sector, 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 86 of file DTTrigGeomUtils.cc.
References DTTopology::cellWidth(), DTTopology::channels(), nano_mu_digi_cff::layer, DTGeometry::layer(), SiStripPI::max, SiStripPI::min, muonGeom_, LaserClient_cfi::nbins, and FastTimerService_cff::range.
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 138 of file DTTrigGeomUtils.cc.
References DeadROC_duringRun::dir, hasPosRF(), phi, radToDeg_, fileinputsource_cfi::sec, and ClusterTask_cfi::trig.
Referenced by DTLocalTriggerLutTask::analyze(), DTLocalTriggerTask::runSegmentAnalysis(), DTLocalTriggerBaseTask::runTMAnalysis(), and DTLocalTriggerTask::runTMAnalysis().
float DTTrigGeomUtils::trigPos | ( | const L1MuDTChambPhDigi * | trig | ) |
Return local position (trigger RF) for a given trigger primitive.
Definition at line 98 of file DTTrigGeomUtils.cc.
References DTGeometry::chamber(), funct::cos(), hasPosRF(), muonGeom_, PV3DBase< T, PVType, FrameType >::perp(), phi, PV3DBase< T, PVType, FrameType >::phi(), Geom::pi(), GeomDet::position(), alignCSCRings::r, fileinputsource_cfi::sec, funct::tan(), ClusterTask_cfi::trig, x, xCenter_, and zcn_.
Referenced by DTLocalTriggerLutTask::analyze(), DTLocalTriggerTask::runSegmentAnalysis(), DTLocalTriggerBaseTask::runTMAnalysis(), and DTLocalTriggerTask::runTMAnalysis().
|
inline |
Compute Trigger x coordinate in chamber RF.
Definition at line 45 of file DTTrigGeomUtils.h.
References DeadROC_duringRun::dir, radToDeg_, funct::tan(), x, and zcn_.
Referenced by DTLocalTriggerLutTask::analyze(), and DTLocalTriggerTask::runSegmentAnalysis().
|
private |
Definition at line 48 of file DTTrigGeomUtils.h.
Referenced by DTTrigGeomUtils(), phiRange(), thetaRange(), and trigPos().
|
private |
Definition at line 53 of file DTTrigGeomUtils.h.
Referenced by computeSCCoordinates(), DTTrigGeomUtils(), trigDir(), and trigToSeg().
|
private |
Definition at line 54 of file DTTrigGeomUtils.h.
Referenced by computeSCCoordinates(), DTTrigGeomUtils(), and trigPos().
|
private |
Definition at line 52 of file DTTrigGeomUtils.h.
Referenced by DTTrigGeomUtils(), trigPos(), and trigToSeg().