CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_0/src/SimMuon/RPCDigitizer/src/RPCSimSetUp.h

Go to the documentation of this file.
00001 #ifndef RPCSimSetUp_h
00002 #define RPCSimSetUp_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 "CondFormats/RPCObjects/interface/RPCStripNoises.h"
00010 #include "CondFormats/DataRecord/interface/RPCStripNoisesRcd.h"
00011 #include "CondFormats/RPCObjects/interface/RPCClusterSize.h"
00012 #include "CondFormats/DataRecord/interface/RPCClusterSizeRcd.h"
00013 
00014 #include <map>
00015 #include <vector>
00016 #include <fstream>
00017 #include <sstream>
00018 #include <iostream>
00019 #include<cstring>
00020 #include<string>
00021 #include<stdlib.h>
00022 #include <utility>
00023 
00024 class RPCDigitizer;
00025 class RPCGeometry;
00026 class RPCDetId;
00027 
00028 class RPCSimSetUp
00029 {
00030 public:
00031 
00032   explicit RPCSimSetUp(const edm::ParameterSet& ps);
00033   virtual ~RPCSimSetUp();
00034 
00035   void setRPCSetUp(std::vector<RPCStripNoises::NoiseItem> vnoise, std::vector<float> vcls);
00036 
00037   void setRPCSetUp(std::vector<RPCStripNoises::NoiseItem> vnoise, std::vector<RPCClusterSize::ClusterSizeItem> vClusterSize);
00038 
00039   const std::vector<float>& getNoise(uint32_t id);
00040   const std::vector<float>& getEff(uint32_t id);
00041   float getTime(uint32_t id);
00042   const std::map< int, std::vector<double> >& getClsMap();
00043   //  const std::map<int, std::vector<double> >& getClsMap(uint32_t id);
00044   const std::vector<double>& getCls(uint32_t id);
00046   void setGeometry(const RPCGeometry * geom) {theGeometry = geom;}
00047 
00048   const RPCGeometry * getGeometry() { return theGeometry; }
00049 
00050   const RPCGeometry * theGeometry;
00051 
00052   std::map<uint32_t, std::vector<float> > _mapDetIdNoise;
00053   std::map<uint32_t, std::vector<float> > _mapDetIdEff;
00054   std::map<RPCDetId, float> _bxmap;
00055   std::map< int, std::vector<double> > _clsMap;
00056   std::map<uint32_t, std::vector<double> > _mapDetClsMap;
00057 
00058 private:
00059 };
00060 
00061 #endif