CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 }
int rawStripChannel(const CSCDetId &id, int igeom) const override
Return raw strip channel number for input geometrical channel number.
CSCDetId rawCSCDetId(const CSCDetId &id) const override
int geomStripChannel(const CSCDetId &id, int iraw) const override
Return geometrical strip channel number for input raw channel number.
int channelFromStrip(const CSCDetId &id, int strip) const override