00001 #ifndef RPCCalibSetUp_h 00002 #define RPCCalibSetUp_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 "SimDataFormats/TrackingHit/interface/PSimHitContainer.h" 00009 #include <map> 00010 #include <vector> 00011 #include <fstream> 00012 #include <sstream> 00013 #include <iostream> 00014 #include<cstring> 00015 #include<string> 00016 #include<stdlib.h> 00017 #include <utility> 00018 00019 class RPCDigitizer; 00020 class RPCGeometry; 00021 class RPCDetId; 00022 00023 class RPCCalibSetUp 00024 { 00025 public: 00026 00027 explicit RPCCalibSetUp(const edm::ParameterSet& ps); 00028 virtual ~RPCCalibSetUp(); 00029 00030 std::vector<float> getNoise(uint32_t id); 00031 std::vector<float> getEff(uint32_t id); 00032 float getTime(uint32_t id); 00033 std::map< int, std::vector<double> > getClsMap(); 00034 // std::map<int, std::vector<double> > getClsMap(uint32_t id); 00035 std::vector<double> getCls(uint32_t id); 00036 00038 void setGeometry(const RPCGeometry * geom) {theGeometry = geom;} 00039 const RPCGeometry * getGeometry() { return theGeometry; } 00040 00041 const RPCGeometry * theGeometry; 00042 00043 std::map<uint32_t, std::vector<float> > _mapDetIdNoise; 00044 std::map<uint32_t, std::vector<float> > _mapDetIdEff; 00045 std::map<RPCDetId, float> _bxmap; 00046 std::map< int, std::vector<double> > _clsMap; 00047 std::map<uint32_t, std::vector<double> > _mapDetClsMap; 00048 00049 }; 00050 00051 #endif