RPCDBSimSetUp

Macros

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
#ifndef RPCDBSimSetUp_h
#define RPCDBSimSetUp_h

#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include <map>
#include <vector>
#include <fstream>
#include <sstream>
#include <iostream>
#include <cstring>
#include <string>
#include <cstdlib>
#include <utility>

class RPCDigitizer;
class RPCGeometry;
class RPCDetId;

class RPCDBSimSetUp {
public:
  explicit RPCDBSimSetUp(const edm::ParameterSet &ps);
  virtual ~RPCDBSimSetUp();

  std::vector<float> getNoise(uint32_t id);
  std::vector<float> getEff(uint32_t id);
  float getTime(uint32_t id);
  std::map<int, std::vector<double> > getClsMap();

  /// sets geometry
  void setGeometry(const RPCGeometry *geom) { theGeometry = geom; }
  const RPCGeometry *getGeometry() { return theGeometry; }

  const RPCGeometry *theGeometry;

  std::map<uint32_t, std::vector<float> > _mapDetIdNoise;
  std::map<uint32_t, std::vector<float> > _mapDetIdEff;
  std::map<RPCDetId, float> _bxmap;
  std::map<int, std::vector<double> > _clsMap;

  std::ifstream *_infile1;
  std::ifstream *_infile2;
  std::ifstream *_infile3;
  std::ifstream *_infile4;
};

#endif