00001 // $Id: TTUConfigurator.h,v 1.2 2009/10/29 20:04:03 ghete Exp $ 00002 #ifndef TTUCONFIGURATOR_H 00003 #define TTUCONFIGURATOR_H 1 00004 00005 // Include files 00006 00019 #include <iostream> 00020 #include <fstream> 00021 #include <ios> 00022 00023 #include "CondFormats/RPCObjects/interface/RBCBoardSpecs.h" 00024 #include "CondFormats/DataRecord/interface/RBCBoardSpecsRcd.h" 00025 #include "CondFormats/RPCObjects/interface/TTUBoardSpecs.h" 00026 #include "CondFormats/DataRecord/interface/TTUBoardSpecsRcd.h" 00027 00028 #include "L1Trigger/RPCTechnicalTrigger/interface/RBCBoardSpecsIO.h" 00029 #include "L1Trigger/RPCTechnicalTrigger/interface/TTUBoardSpecsIO.h" 00030 00031 class TTUConfigurator { 00032 public: 00034 TTUConfigurator( ) { }; 00035 00036 TTUConfigurator( const std::string& ); 00037 00038 virtual ~TTUConfigurator( ); 00039 00040 RBCBoardSpecs * getRbcSpecs(){ return m_rbcspecs; }; 00041 00042 TTUBoardSpecs * getTtuSpecs(){ return m_ttuspecs; }; 00043 00044 void process(); 00045 00046 bool m_hasConfig; 00047 00048 protected: 00049 00050 private: 00051 00052 std::ifstream * m_in; 00053 00054 void addData( RBCBoardSpecs * ); 00055 void addData( TTUBoardSpecs * ); 00056 00057 RBCBoardSpecs * m_rbcspecs; 00058 TTUBoardSpecs * m_ttuspecs; 00059 00060 }; 00061 #endif // TTUCONFIGURATOR_H