CMS 3D CMS Logo

RPCSimSetUp.h
Go to the documentation of this file.
1 #ifndef RPCSimSetUp_h
2 #define RPCSimSetUp_h
3 
12 
13 #include <map>
14 #include <vector>
15 #include <fstream>
16 #include <sstream>
17 #include <iostream>
18 #include <cstring>
19 #include <string>
20 #include <cstdlib>
21 #include <utility>
22 
23 class RPCDigitizer;
24 class RPCGeometry;
25 class RPCDetId;
26 
27 class RPCSimSetUp {
28 public:
29  explicit RPCSimSetUp(const edm::ParameterSet& ps);
30  virtual ~RPCSimSetUp();
31 
32  void setRPCSetUp(const std::vector<RPCStripNoises::NoiseItem>& vnoise, const std::vector<float>& vcls);
33 
34  void setRPCSetUp(const std::vector<RPCStripNoises::NoiseItem>& vnoise,
35  const std::vector<RPCClusterSize::ClusterSizeItem>& vClusterSize);
36 
37  const std::vector<float>& getNoise(uint32_t id);
38  const std::vector<float>& getEff(uint32_t id);
39  float getTime(uint32_t id);
40  const std::map<int, std::vector<double> >& getClsMap();
41  // const std::map<int, std::vector<double> >& getClsMap(uint32_t id);
42  const std::vector<double>& getCls(uint32_t id);
43  const std::vector<double>& getAsymmetricClsDistribution(uint32_t id, uint32_t slice);
44  const std::vector<double>& getAsymmetryForCls(uint32_t id, uint32_t slice, uint32_t cls);
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  std::map<uint32_t, std::vector<double> > _mapDetClsMapLegacy; //allowing old formad to by used by old digitizers
58  std::vector<double> _DetClsAsymmetric;
59  std::vector<double> _DetAsymmetryForCls;
60 
61 private:
62 };
63 
64 #endif
std::map< RPCDetId, float > _bxmap
Definition: RPCSimSetUp.h:54
std::vector< double > _DetAsymmetryForCls
Definition: RPCSimSetUp.h:59
float getTime(uint32_t id)
Definition: RPCSimSetUp.cc:444
RPCSimSetUp(const edm::ParameterSet &ps)
Definition: RPCSimSetUp.cc:34
std::vector< double > _DetClsAsymmetric
Definition: RPCSimSetUp.h:58
const std::vector< double > & getAsymmetricClsDistribution(uint32_t id, uint32_t slice)
Definition: RPCSimSetUp.cc:481
std::map< uint32_t, std::vector< double > > _mapDetClsMapLegacy
Definition: RPCSimSetUp.h:57
const std::vector< float > & getEff(uint32_t id)
Definition: RPCSimSetUp.cc:421
const RPCGeometry * theGeometry
Definition: RPCSimSetUp.h:50
void setGeometry(const RPCGeometry *geom)
sets geometry
Definition: RPCSimSetUp.h:46
const std::vector< float > & getNoise(uint32_t id)
Definition: RPCSimSetUp.cc:411
const RPCGeometry * getGeometry()
Definition: RPCSimSetUp.h:48
virtual ~RPCSimSetUp()
Definition: RPCSimSetUp.cc:609
const std::vector< double > & getCls(uint32_t id)
Definition: RPCSimSetUp.cc:462
std::map< uint32_t, std::vector< float > > _mapDetIdEff
Definition: RPCSimSetUp.h:53
const std::map< int, std::vector< double > > & getClsMap()
Definition: RPCSimSetUp.cc:454
const std::vector< double > & getAsymmetryForCls(uint32_t id, uint32_t slice, uint32_t cls)
Definition: RPCSimSetUp.cc:533
std::map< uint32_t, std::vector< double > > _mapDetClsMap
Definition: RPCSimSetUp.h:56
std::map< int, std::vector< double > > _clsMap
Definition: RPCSimSetUp.h:55
void setRPCSetUp(const std::vector< RPCStripNoises::NoiseItem > &vnoise, const std::vector< float > &vcls)
Definition: RPCSimSetUp.cc:41
std::map< uint32_t, std::vector< float > > _mapDetIdNoise
Definition: RPCSimSetUp.h:52