CMS 3D CMS Logo

CSCChannelMapperBase.h
Go to the documentation of this file.
1 #ifndef CSCChannelMapperBase_H
2 #define CSCChannelMapperBase_H
3 
41 
43 public:
45  virtual ~CSCChannelMapperBase() {}
46 
47  virtual std::string name() const { return "CSCChannelMapperBase"; }
48 
50  virtual int rawStripChannel(const CSCDetId &id, int igeom) const = 0;
52  int rawWireChannel(const CSCDetId &id, int igeom) const { return igeom; }
54  virtual int geomStripChannel(const CSCDetId &id, int iraw) const = 0;
56  int geomWireChannel(const CSCDetId &id, int iraw) const { return iraw; }
57 
59  int rawCathodeChannel(const CSCDetId &id, int igeom) const { return rawStripChannel(id, igeom); }
61  int rawAnodeChannel(const CSCDetId &id, int igeom) const { return rawWireChannel(id, igeom); }
63  int geomCathodeChannel(const CSCDetId &id, int iraw) const { return geomStripChannel(id, iraw); }
65  int geomAnodeChannel(const CSCDetId &id, int iraw) const { return geomWireChannel(id, iraw); }
66 
70  virtual int channelFromStrip(const CSCDetId &id, int strip) const = 0;
71 
75  virtual CSCDetId rawCSCDetId(const CSCDetId &id) const = 0;
76 };
77 
78 #endif
int geomAnodeChannel(const CSCDetId &id, int iraw) const
Alias for geomWireChannel.
virtual int rawStripChannel(const CSCDetId &id, int igeom) const =0
Return raw strip channel number for input geometrical channel number.
virtual CSCDetId rawCSCDetId(const CSCDetId &id) const =0
virtual int geomStripChannel(const CSCDetId &id, int iraw) const =0
Return geometrical strip channel number for input raw channel number.
int rawWireChannel(const CSCDetId &id, int igeom) const
Return raw wiregroup channel number for input geometrical channel number.
virtual std::string name() const
virtual int channelFromStrip(const CSCDetId &id, int strip) const =0
int rawAnodeChannel(const CSCDetId &id, int igeom) const
Alias for rawWireChannel.
int geomWireChannel(const CSCDetId &id, int iraw) const
Return geometrical wiregroup channel number for input raw channel number.
int rawCathodeChannel(const CSCDetId &id, int igeom) const
Alias for rawStripChannel.
int geomCathodeChannel(const CSCDetId &id, int iraw) const
Alias for geomStripChannel.