#include <CSCChannelTranslator.h>
Public Member Functions | |
int | channelFromStrip (const CSCDetId &id, int strip) const |
CSCChannelTranslator () | |
int | geomAnodeChannel (const CSCDetId &id, int iraw) const |
Alias for geomWireChannel. More... | |
int | geomCathodeChannel (const CSCDetId &id, int iraw) const |
Alias for geomStripChannel. More... | |
int | geomStripChannel (const CSCDetId &id, int iraw) const |
Return geometrical strip channel number for input raw channel number. More... | |
int | geomWireChannel (const CSCDetId &id, int iraw) const |
Return geometrical wiregroup channel number for input raw channel number. More... | |
int | rawAnodeChannel (const CSCDetId &id, int igeom) const |
Alias for rawWireChannel. More... | |
int | rawCathodeChannel (const CSCDetId &id, int igeom) const |
Alias for rawStripChannel. More... | |
CSCDetId | rawCSCDetId (const CSCDetId &id) const |
int | rawStripChannel (const CSCDetId &id, int igeom) const |
Return raw strip channel number for input geometrical channel number. More... | |
int | rawWireChannel (const CSCDetId &id, int igeom) const |
Return raw wiregroup channel number for input geometrical channel number. More... | |
~CSCChannelTranslator () | |
Maps between raw/online channel numbers (for strips/cathodes and wires/anodes) and offline geometry-oriented channel numbers, in which increasing number corresponds to increasing local x (strips) or y (wire groups) as defined in CMS Note CMS IN-2007/024.
It is expected that this class will one day need to make use of a 'cable map' stored in conditions data. At present it does not, and the mappings are hard-coded.
Currently this class does the following:
Beware that the 48 strips in ME1a are ganged to 16 channels, so be careful to distinguish the nomenclatures 'strip' vs 'channel'. It is usually a meaningful distinction!
Also note that CSCDetId for ME11 and ME1b are identical. Offline we presume ring=1 of station 1 to mean the ME1b strips. We use the identifier ring=4 to denote the ME1a strips.
Definition at line 35 of file CSCChannelTranslator.h.
|
inline |
Definition at line 37 of file CSCChannelTranslator.h.
|
inline |
Definition at line 38 of file CSCChannelTranslator.h.
int CSCChannelTranslator::channelFromStrip | ( | const CSCDetId & | id, |
int | strip | ||
) | const |
Offline conversion of a strip (geometric labelling) back to channel (At present this just has to convert the 48 strips of ME1A to 16 ganged channels.)
Definition at line 52 of file CSCChannelTranslator.cc.
References relativeConstraints::ring, and nano_mu_digi_cff::strip.
|
inline |
Alias for geomWireChannel.
Definition at line 56 of file CSCChannelTranslator.h.
References geomWireChannel().
|
inline |
Alias for geomStripChannel.
Definition at line 54 of file CSCChannelTranslator.h.
References geomStripChannel().
int CSCChannelTranslator::geomStripChannel | ( | const CSCDetId & | id, |
int | iraw | ||
) | const |
Return geometrical strip channel number for input raw channel number.
Definition at line 27 of file CSCChannelTranslator.cc.
References relativeConstraints::ring, and SurfaceOrientation::zplus.
Referenced by geomCathodeChannel().
|
inline |
Return geometrical wiregroup channel number for input raw channel number.
Definition at line 47 of file CSCChannelTranslator.h.
Referenced by geomAnodeChannel().
|
inline |
Alias for rawWireChannel.
Definition at line 52 of file CSCChannelTranslator.h.
References rawWireChannel().
|
inline |
Alias for rawStripChannel.
Definition at line 50 of file CSCChannelTranslator.h.
References rawStripChannel().
Construct raw CSCDetId matching supplied offline CSCDetid (At present all this has to do is return the ME11 CSCDetID when supplied with that for ME1A)
Definition at line 63 of file CSCChannelTranslator.cc.
References relativeConstraints::chamber, makeMuonMisalignmentScenario::endcap, nano_mu_digi_cff::layer, relativeConstraints::ring, and relativeConstraints::station.
int CSCChannelTranslator::rawStripChannel | ( | const CSCDetId & | id, |
int | igeom | ||
) | const |
Return raw strip channel number for input geometrical channel number.
Definition at line 3 of file CSCChannelTranslator.cc.
References relativeConstraints::ring, and SurfaceOrientation::zplus.
Referenced by rawCathodeChannel().
|
inline |
Return raw wiregroup channel number for input geometrical channel number.
Definition at line 43 of file CSCChannelTranslator.h.
Referenced by rawAnodeChannel().