33 for (
int ist = 1; ist <= 4; ++ist) {
60 float xcenter = (scsec == 4 || scsec == 10)
64 y =
track->localPosition().y();
99 int wh =
trig->whNum();
101 int st =
trig->stNum();
109 if (
sec == 4 && st == 4) {
113 phicenter = gpos.
phi();
115 }
else if (
sec == 10 && st == 4) {
119 phicenter = gpos.
phi();
123 phicenter = gpos.
phi();
127 float deltaphi = phicenter - phin;
128 float x = (
tan(
phi / 4096.) -
tan(deltaphi)) *
139 int wh =
trig->whNum();
142 int phib =
trig->phiB();
virtual ~DTTrigGeomUtils()
Destructor.
void thetaRange(const DTChamberId &id, float &min, float &max, int &nbins, float step=15)
Compute theta range in local chamber coordinates.
LocalPoint toLocal(const GlobalPoint &gp) const
Conversion to the R.F. of the GeomDet.
Geom::Phi< T > phi() const
float trigDir(const L1MuDTChambPhDigi *trig)
Return local direction (trigger RF) for a given trigger primitive.
LocalPoint toLocal(const GlobalPoint &gp) const
constexpr std::array< uint8_t, layerIndexSize< TrackerTraits > > layer
DTTrigGeomUtils(edm::ESHandle< DTGeometry > muonGeom, bool dirInDeg=true)
Constructor.
const DTSuperLayer * superLayer(const DTSuperLayerId &id) const
Return the superlayer corresponding to the given id.
float cellWidth() const
Returns the cell width.
Cos< T >::type cos(const T &t)
Tan< T >::type tan(const T &t)
Abs< T >::type abs(const T &t)
void phiRange(const DTChamberId &id, float &min, float &max, int &nbins, float step=15)
Compute phi range in local chamber coordinates.
const Plane & surface() const
The nominal surface of the GeomDet.
bool hasPosRF(int wh, int sec)
Checks id the chamber has positive RF;.
edm::ESHandle< DTGeometry > muonGeom_
const Surface::PositionType & position() const
The position (origin of the R.F.)
float trigPos(const L1MuDTChambPhDigi *trig)
Return local position (trigger RF) for a given trigger primitive.
int channels() const
Returns the number of wires in the layer.
const DTChamber * chamber(const DTChamberId &id) const
Return a DTChamber given its id.
void computeSCCoordinates(const DTRecSegment4D *track, int &scsec, float &x, float &xdir, float &y, float &ydir)
Compute track coordinates with SC sector numbering.
const DTLayer * layer(const DTLayerId &id) const
Return a layer given its id.