00001 #ifndef RPCDBSimSetUp_h 00002 #define RPCDBSimSetUp_h 00003 00004 #include "FWCore/Framework/interface/EDProducer.h" 00005 #include "FWCore/Framework/interface/Event.h" 00006 #include "FWCore/Framework/interface/EventSetup.h" 00007 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00008 #include <map> 00009 #include <vector> 00010 #include <fstream> 00011 #include <sstream> 00012 #include <iostream> 00013 #include<cstring> 00014 #include<string> 00015 #include<stdlib.h> 00016 #include <utility> 00017 00018 class RPCDigitizer; 00019 class RPCGeometry; 00020 class RPCDetId; 00021 00022 class RPCDBSimSetUp 00023 { 00024 public: 00025 00026 explicit RPCDBSimSetUp(const edm::ParameterSet& ps); 00027 virtual ~RPCDBSimSetUp(); 00028 00029 std::vector<float> getNoise(uint32_t id); 00030 std::vector<float> getEff(uint32_t id); 00031 float getTime(uint32_t id); 00032 std::map< int, std::vector<double> > getClsMap(); 00033 00035 void setGeometry(const RPCGeometry * geom) {theGeometry = geom;} 00036 const RPCGeometry * getGeometry() { return theGeometry; } 00037 00038 const RPCGeometry * theGeometry; 00039 00040 std::map<uint32_t, std::vector<float> > _mapDetIdNoise; 00041 std::map<uint32_t, std::vector<float> > _mapDetIdEff; 00042 std::map<RPCDetId, float> _bxmap; 00043 std::map< int, std::vector<double> > _clsMap; 00044 00045 std::ifstream *_infile1; 00046 std::ifstream *_infile2; 00047 std::ifstream *_infile3; 00048 std::ifstream *_infile4; 00049 00050 }; 00051 00052 #endif