CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/CalibTracker/SiPixelConnectivity/interface/PixelToFEDAssociate.h

Go to the documentation of this file.
00001 #ifndef PixelToFEDAssociate_H
00002 #define PixelToFEDAssociate_H
00003 
00009 #include <string>
00010 
00011 #include "DataFormats/SiPixelDetId/interface/PixelModuleName.h"
00012 
00013 
00014 class PixelToFEDAssociate {
00015 public:
00016 
00017   struct CablingRocId { int fedId; int linkId; int rocLinkId; }; 
00018   struct DetectorRocId { const PixelModuleName * module; int rocDetId; };
00019 
00020   virtual ~PixelToFEDAssociate() {}
00021 
00023   virtual std::string version() const = 0;
00024 
00026   virtual int operator()(const PixelModuleName &) const {
00027     return 0;
00028   } 
00029 
00031   virtual const CablingRocId * operator()(const DetectorRocId & roc) const {
00032     return 0;
00033   }
00034 };
00035 #endif