CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RPCSimSetUp.h
Go to the documentation of this file.
1 #ifndef RPCSimSetUp_h
2 #define RPCSimSetUp_h
3 
13 
14 #include <map>
15 #include <vector>
16 #include <fstream>
17 #include <sstream>
18 #include <iostream>
19 #include<cstring>
20 #include<string>
21 #include<stdlib.h>
22 #include <utility>
23 
24 class RPCDigitizer;
25 class RPCGeometry;
26 class RPCDetId;
27 
29 {
30 public:
31 
32  explicit RPCSimSetUp(const edm::ParameterSet& ps);
33  virtual ~RPCSimSetUp();
34 
35  void setRPCSetUp(const std::vector<RPCStripNoises::NoiseItem>& vnoise, const std::vector<float>& vcls);
36 
37  void setRPCSetUp(const std::vector<RPCStripNoises::NoiseItem>& vnoise, const std::vector<RPCClusterSize::ClusterSizeItem>& vClusterSize);
38 
39  const std::vector<float>& getNoise(uint32_t id);
40  const std::vector<float>& getEff(uint32_t id);
41  float getTime(uint32_t id);
42  const std::map< int, std::vector<double> >& getClsMap();
43  // const std::map<int, std::vector<double> >& getClsMap(uint32_t id);
44  const std::vector<double>& getCls(uint32_t id);
47 
48  const RPCGeometry * getGeometry() { return theGeometry; }
49 
51 
52  std::map<uint32_t, std::vector<float> > _mapDetIdNoise;
53  std::map<uint32_t, std::vector<float> > _mapDetIdEff;
54  std::map<RPCDetId, float> _bxmap;
55  std::map< int, std::vector<double> > _clsMap;
56  std::map<uint32_t, std::vector<double> > _mapDetClsMap;
57 
58 private:
59 };
60 
61 #endif
std::map< RPCDetId, float > _bxmap
Definition: RPCSimSetUp.h:54
float getTime(uint32_t id)
Definition: RPCSimSetUp.cc:184
RPCSimSetUp(const edm::ParameterSet &ps)
Definition: RPCSimSetUp.cc:37
const std::vector< float > & getEff(uint32_t id)
Definition: RPCSimSetUp.cc:170
const RPCGeometry * theGeometry
Definition: RPCSimSetUp.h:50
void setGeometry(const RPCGeometry *geom)
sets geometry
Definition: RPCSimSetUp.h:46
std::map< int, std::vector< double > > _clsMap
Definition: RPCSimSetUp.h:55
const std::vector< float > & getNoise(uint32_t id)
Definition: RPCSimSetUp.cc:160
const RPCGeometry * getGeometry()
Definition: RPCSimSetUp.h:48
virtual ~RPCSimSetUp()
Definition: RPCSimSetUp.cc:221
const std::vector< double > & getCls(uint32_t id)
Definition: RPCSimSetUp.cc:206
std::map< uint32_t, std::vector< float > > _mapDetIdEff
Definition: RPCSimSetUp.h:53
const std::map< int, std::vector< double > > & getClsMap()
Definition: RPCSimSetUp.cc:195
std::map< uint32_t, std::vector< double > > _mapDetClsMap
Definition: RPCSimSetUp.h:56
void setRPCSetUp(const std::vector< RPCStripNoises::NoiseItem > &vnoise, const std::vector< float > &vcls)
Definition: RPCSimSetUp.cc:46
std::map< uint32_t, std::vector< float > > _mapDetIdNoise
Definition: RPCSimSetUp.h:52