/search.css" rel="stylesheet" type="text/css"/> /search.js">
00001 /* 00002 RPCTool.h 00003 * Generate readout RPC modules 00004 * ningzhe@ihep.ac.cn 2011/04/05 00005 */ 00006 00007 #ifndef RPCTOOL_H 00008 #define RPCTOOL_H 00009 00010 #include "GaudiAlg/GaudiTool.h" 00011 00012 #include "RPCCalib/IRPCTool.h" 00013 #include "Conventions/Electronics.h" 00014 #include "Conventions/Detectors.h" 00015 #include "Context/Context.h" 00016 #include "Context/TimeStamp.h" 00017 00018 #include <fstream> 00019 #include <string> 00020 #include <vector> 00021 #include <map> 00022 00023 using namespace std; 00024 00025 namespace DayaBay 00026 { 00027 class ReadoutRpcCrate; 00028 } 00029 00030 class ICableSvc; 00031 class IStatisticsSvc; 00032 00033 class RPCTool: public GaudiTool, virtual public IRPCTool 00034 { 00035 public: 00036 RPCTool(const string& type, 00037 const string& name, 00038 const IInterface* parent); 00039 00040 virtual ~RPCTool(); 00041 00042 virtual StatusCode initialize(); 00043 virtual StatusCode finalize(); 00044 00045 private: 00046 //Names of the Tdc calibration tools 00047 string m_rpcreadoutToolName; 00048 00049 //Tools for processing Fee 00050 IRPCTool* m_rpcTool; 00051 vector<int> m_TriggerModule; 00052 std::vector<int> ReturnModule(unsigned int triggermap, unsigned int rpcCFId); 00053 std::vector<int> AjacentModule(int row, int col); 00054 int rowCol(int cfId, int fecId); 00055 }; 00056 00057 #endif // RPCREADOUT_H