Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-02-18 08:23:17

0001 #ifndef RPCDBSimSetUp_h
0002 #define RPCDBSimSetUp_h
0003 
0004 #include "FWCore/Framework/interface/Event.h"
0005 #include "FWCore/Framework/interface/EventSetup.h"
0006 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0007 #include <map>
0008 #include <vector>
0009 #include <fstream>
0010 #include <sstream>
0011 #include <iostream>
0012 #include <cstring>
0013 #include <string>
0014 #include <cstdlib>
0015 #include <utility>
0016 
0017 class RPCDigitizer;
0018 class RPCGeometry;
0019 class RPCDetId;
0020 
0021 class RPCDBSimSetUp {
0022 public:
0023   explicit RPCDBSimSetUp(const edm::ParameterSet &ps);
0024   virtual ~RPCDBSimSetUp();
0025 
0026   std::vector<float> getNoise(uint32_t id);
0027   std::vector<float> getEff(uint32_t id);
0028   float getTime(uint32_t id);
0029   std::map<int, std::vector<double> > getClsMap();
0030 
0031   /// sets geometry
0032   void setGeometry(const RPCGeometry *geom) { theGeometry = geom; }
0033   const RPCGeometry *getGeometry() { return theGeometry; }
0034 
0035   const RPCGeometry *theGeometry;
0036 
0037   std::map<uint32_t, std::vector<float> > _mapDetIdNoise;
0038   std::map<uint32_t, std::vector<float> > _mapDetIdEff;
0039   std::map<RPCDetId, float> _bxmap;
0040   std::map<int, std::vector<double> > _clsMap;
0041 
0042   std::ifstream *_infile1;
0043   std::ifstream *_infile2;
0044   std::ifstream *_infile3;
0045   std::ifstream *_infile4;
0046 };
0047 
0048 #endif