/search.css" rel="stylesheet" type="text/css"/> /search.js">
00001 /* 00002 * IRPCReadoutTool.h 00003 * 00004 * Interface for generating TDC offset calibration parameters from LED-run file 00005 * 00006 * zhangfh@ihep.ac.cn 2010/11/11 00007 */ 00008 00009 #ifndef IRPCTOOL_H 00010 #define IRPCTOOL_H 00011 00012 #include "GaudiKernel/IAlgTool.h" 00013 #include "GaudiKernel/IProperty.h" 00014 #include <string> 00015 00016 using namespace std; 00017 00018 namespace DayaBay 00019 { 00020 class ReadoutRpcCrate; 00021 } 00022 using namespace DayaBay; 00023 00024 const InterfaceID IID_IRPCTool("IRPCTool",0,0); 00025 00026 class IRPCTool : virtual public IAlgTool, 00027 virtual public IProperty 00028 { 00029 public: 00030 // Retrieve interface ID 00031 static const InterfaceID& interfaceID() 00032 { 00033 return IID_IRPCTool; 00034 } 00035 00036 virtual std::vector<int> ReturnModule(unsigned int triggermap, unsigned int rpcCFId)=0; 00037 virtual std::vector<int> AjacentModule(int row, int col)=0; 00038 // Conversion between electronics id and offline id for PRC module 00039 virtual int rowCol(int cfId, int fecId)=0; 00040 virtual ~IRPCTool(){} 00041 }; 00042 00043 #endif //IRPCTOOL_H