CMS 3D CMS Logo

CSCChannelMapperPostls1.cc
Go to the documentation of this file.
2 
3 int CSCChannelMapperPostls1::rawStripChannel(const CSCDetId &id, int igeo) const {
4  // Translate a geometry-oriented strip channel in range 1-80, igeo,
5  // into corresponding raw channel.
6 
7  int iraw = igeo;
8 
9  bool zplus = (id.endcap() == 1);
10 
11  bool me1a = (id.station() == 1) && (id.ring() == 4);
12  bool me1b = (id.station() == 1) && (id.ring() == 1);
13 
14  if (me1a && zplus) {
15  iraw = 49 - iraw;
16  } // 1-48 -> 48-1
17  if (me1b && !zplus) {
18  iraw = 65 - iraw;
19  } // 1-64 -> 64-1
20 
21  return iraw;
22 }
23 
24 int CSCChannelMapperPostls1::geomStripChannel(const CSCDetId &id, int iraw) const {
25  // Translate a raw strip channel in range 1-80, iraw, into
26  // corresponding geometry-oriented channel in which increasing
27  // channel number <-> strip number increasing with +ve local x.
28 
29  int igeo = iraw;
30 
31  bool zplus = (id.endcap() == 1);
32  bool me1a = (id.station() == 1) && (id.ring() == 4);
33  bool me1b = (id.station() == 1) && (id.ring() == 1);
34 
35  if (me1a && zplus) {
36  igeo = 49 - igeo;
37  } // 1-48 -> 48-1
38  if (me1b && !zplus) {
39  igeo = 65 - igeo;
40  } // 1-64 -> 64-1
41 
42  return igeo;
43 }
44 
46  // This just returns the electronics channel label to which a given strip is
47  // connected In all chambers (including upgraded ME1A) this is just a direct
48  // 1-1 correspondence.
49  int ichan = strip;
50  return ichan;
51 }
52 
54  // Return the effective online CSCDetId for given offline CSCDetId
55  // That means the same one (for upgraded ME1A)
56  CSCDetId idraw(id);
57  return idraw;
58 }
CSCChannelMapperPostls1::geomStripChannel
int geomStripChannel(const CSCDetId &id, int iraw) const override
Return geometrical strip channel number for input raw channel number.
Definition: CSCChannelMapperPostls1.cc:24
CSCChannelMapperPostls1::rawCSCDetId
CSCDetId rawCSCDetId(const CSCDetId &id) const override
Definition: CSCChannelMapperPostls1.cc:53
digitizers_cfi.strip
strip
Definition: digitizers_cfi.py:19
CSCDetId
Definition: CSCDetId.h:26
SurfaceOrientation::zplus
Definition: Surface.h:19
CSCChannelMapperPostls1.h
relativeConstraints.ring
ring
Definition: relativeConstraints.py:68
CSCChannelMapperPostls1::channelFromStrip
int channelFromStrip(const CSCDetId &id, int strip) const override
Definition: CSCChannelMapperPostls1.cc:45
CSCChannelMapperPostls1::rawStripChannel
int rawStripChannel(const CSCDetId &id, int igeom) const override
Return raw strip channel number for input geometrical channel number.
Definition: CSCChannelMapperPostls1.cc:3