37 for (
int ist=1; ist<=4; ++ist) {
69 scsec = sector>12 ? sector==13 ? 4 : 10 : sector;
70 float xcenter = (scsec==4||scsec==10) ? (sector-12.9)/
abs(sector-12.9)*
xCenter_[(sector==10||sector==14)] : 0.;
80 int sector =
id.sector();
88 if (station==4 && (sector==4 || sector == 10)){
92 nbins =
static_cast<int>((max-
min)/step);
107 nbins =
static_cast<int>((max-
min)/step);
117 int wh = trig->
whNum();
118 int sec = trig->
scNum()+1;
119 int st = trig->
stNum();
127 if (sec==4 && st==4) {
130 phicenter = gpos.
phi();
132 }
else if (sec==10 && st==4) {
135 phicenter = gpos.
phi();
139 phicenter = gpos.
phi();
143 float deltaphi = phicenter-phin;
144 float x = (
tan(phi/4096.)-
tan(deltaphi))*(r*
cos(deltaphi) -
zcn_[st-1]);
156 int wh = trig->
whNum();
157 int sec = trig->
scNum()+1;
159 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.
float trigDir(const L1MuDTChambPhDigi *trig)
Return local direction (trigger RF) for a given trigger primitive.
Geom::Phi< T > phi() const
float cellWidth() const
Returns the cell width.
LocalPoint toLocal(const GlobalPoint &gp) const
Conversion to the R.F. of the GeomDet.
virtual DTChamberId chamberId() const
The (specific) DetId of the chamber on which the segment resides.
virtual LocalVector localDirection() const
Local direction in Chamber frame.
const DTTopology & specificTopology() const
DTTrigGeomUtils(edm::ESHandle< DTGeometry > muonGeom, bool dirInDeg=true)
Constructor.
const Surface::PositionType & position() const
The position (origin of the R.F.)
const T & max(const T &a, const T &b)
LocalPoint toLocal(const GlobalPoint &gp) const
Cos< T >::type cos(const T &t)
Tan< T >::type tan(const T &t)
virtual LocalPoint localPosition() const
Local position in Chamber frame.
void phiRange(const DTChamberId &id, float &min, float &max, int &nbins, float step=15)
Compute phi range in local chamber coordinates.
int channels() const
Returns the number of wires in the layer.
bool hasPosRF(int wh, int sec)
Checks id the chamber has positive RF;.
edm::ESHandle< DTGeometry > muonGeom_
const BoundPlane & surface() const
The nominal surface of the GeomDet.
float trigPos(const L1MuDTChambPhDigi *trig)
Return local position (trigger RF) for a given trigger primitive.
int station() const
Return the station number.
void computeSCCoordinates(const DTRecSegment4D *track, int &scsec, float &x, float &xdir, float &y, float &ydir)
Compute track coordinates with SC sector numbering.
const DTSuperLayer * superLayer(DTSuperLayerId id) const
Return the superlayer corresponding to the given id.