Go to the documentation of this file.
33 for (
int ist = 1; ist <= 4; ++ist) {
54 int sector =
track->chamberId().sector();
59 scsec = sector > 12 ? sector == 13 ? 4 : 10 : sector;
60 float xcenter = (scsec == 4 || scsec == 10)
61 ? (sector - 12.9) /
abs(sector - 12.9) *
xCenter_[(sector == 10 || sector == 14)]
64 y =
track->localPosition().y();
69 int sector =
id.sector();
77 if (
station == 4 && (sector == 4 || sector == 10)) {
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();
const Surface::PositionType & position() const
The position (origin of the R.F.)
float trigDir(const L1MuDTChambPhDigi *trig)
Return local direction (trigger RF) for a given trigger primitive.
edm::ESHandle< DTGeometry > muonGeom_
int channels() const
Returns the number of wires in the layer.
float trigPos(const L1MuDTChambPhDigi *trig)
Return local position (trigger RF) for a given trigger primitive.
float cellWidth() const
Returns the cell width.
const DTChamber * chamber(const DTChamberId &id) const
Return a DTChamber given its id.
const Plane & surface() const
The nominal surface of the GeomDet.
Cos< T >::type cos(const T &t)
LocalPoint toLocal(const GlobalPoint &gp) const
Conversion to the R.F. of the GeomDet.
void phiRange(const DTChamberId &id, float &min, float &max, int &nbins, float step=15)
Compute phi range in local chamber coordinates.
const DTLayer * layer(const DTLayerId &id) const
Return a layer given its id.
void thetaRange(const DTChamberId &id, float &min, float &max, int &nbins, float step=15)
Compute theta range in local chamber coordinates.
Tan< T >::type tan(const T &t)
void computeSCCoordinates(const DTRecSegment4D *track, int &scsec, float &x, float &xdir, float &y, float &ydir)
Compute track coordinates with SC sector numbering.
DTTrigGeomUtils(edm::ESHandle< DTGeometry > muonGeom, bool dirInDeg=true)
Constructor.
LocalPoint toLocal(const GlobalPoint &gp) const
const DTTopology & specificTopology() const
Abs< T >::type abs(const T &t)
const DTSuperLayer * superLayer(const DTSuperLayerId &id) const
Return the superlayer corresponding to the given id.
Geom::Phi< T > phi() const
virtual ~DTTrigGeomUtils()
Destructor.
bool hasPosRF(int wh, int sec)
Checks id the chamber has positive RF;.