CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_13_patch3/src/CondFormats/CSCObjects/interface/CSCChannelTranslator.h

Go to the documentation of this file.
00001 #ifndef CSCChannelTranslator_h
00002 #define CSCChannelTranslator_h
00003 
00033 #include "DataFormats/MuonDetId/interface/CSCDetId.h"
00034 
00035 class CSCChannelTranslator{
00036  public:
00037   CSCChannelTranslator() {}
00038   ~CSCChannelTranslator() {}
00039 
00041   int rawStripChannel( const CSCDetId& id, int igeom ) const;
00043   int rawWireChannel( const CSCDetId& id, int igeom ) const { return igeom; }
00045   int geomStripChannel( const CSCDetId& id, int iraw ) const ;
00047   int geomWireChannel( const CSCDetId& id, int iraw ) const { return iraw; }
00048 
00050   int rawCathodeChannel( const CSCDetId& id, int igeom ) const { return rawStripChannel( id, igeom );}
00052   int rawAnodeChannel( const CSCDetId& id, int igeom ) const { return rawWireChannel( id, igeom );}
00054   int geomCathodeChannel( const CSCDetId& id, int iraw ) const { return geomStripChannel( id, iraw );}
00056   int geomAnodeChannel( const CSCDetId& id, int iraw ) const { return geomWireChannel( id, iraw );}
00057 
00060   int channelFromStrip( const CSCDetId& id, int strip ) const;
00061 
00064   CSCDetId rawCSCDetId( const CSCDetId& id ) const;
00065 
00066 };
00067 
00068 #endif