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
CSCChannelMapperBase::geomWireChannel
int geomWireChannel(const CSCDetId &id, int iraw) const
Return geometrical wiregroup channel number for input raw channel number.
Definition: CSCChannelMapperBase.h:56
digitizers_cfi.strip
strip
Definition: digitizers_cfi.py:19
CSCChannelMapperBase::rawAnodeChannel
int rawAnodeChannel(const CSCDetId &id, int igeom) const
Alias for rawWireChannel.
Definition: CSCChannelMapperBase.h:61
CSCChannelMapperBase::rawCSCDetId
virtual CSCDetId rawCSCDetId(const CSCDetId &id) const =0
CSCChannelMapperBase::geomStripChannel
virtual int geomStripChannel(const CSCDetId &id, int iraw) const =0
Return geometrical strip channel number for input raw channel number.
CSCDetId.h
CSCChannelMapperBase::geomAnodeChannel
int geomAnodeChannel(const CSCDetId &id, int iraw) const
Alias for geomWireChannel.
Definition: CSCChannelMapperBase.h:65
CSCChannelMapperBase::rawStripChannel
virtual int rawStripChannel(const CSCDetId &id, int igeom) const =0
Return raw strip channel number for input geometrical channel number.
CSCDetId
Definition: CSCDetId.h:26
CSCChannelMapperBase::rawWireChannel
int rawWireChannel(const CSCDetId &id, int igeom) const
Return raw wiregroup channel number for input geometrical channel number.
Definition: CSCChannelMapperBase.h:52
CSCChannelMapperBase::~CSCChannelMapperBase
virtual ~CSCChannelMapperBase()
Definition: CSCChannelMapperBase.h:45
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
CSCChannelMapperBase
Definition: CSCChannelMapperBase.h:42
CSCChannelMapperBase::name
virtual std::string name() const
Definition: CSCChannelMapperBase.h:47
CSCChannelMapperBase::rawCathodeChannel
int rawCathodeChannel(const CSCDetId &id, int igeom) const
Alias for rawStripChannel.
Definition: CSCChannelMapperBase.h:59
CSCChannelMapperBase::CSCChannelMapperBase
CSCChannelMapperBase()
Definition: CSCChannelMapperBase.h:44
CSCChannelMapperBase::channelFromStrip
virtual int channelFromStrip(const CSCDetId &id, int strip) const =0
CSCChannelMapperBase::geomCathodeChannel
int geomCathodeChannel(const CSCDetId &id, int iraw) const
Alias for geomStripChannel.
Definition: CSCChannelMapperBase.h:63