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);
45  const std::vector<double> & getAsymmetricClsDistribution(uint32_t id, uint32_t slice);
46  const std::vector<double> & getAsymmetryForCls(uint32_t id, uint32_t slice, uint32_t cls);
49 
50  const RPCGeometry * getGeometry() { return theGeometry; }
51 
53 
54  std::map<uint32_t, std::vector<float> > _mapDetIdNoise;
55  std::map<uint32_t, std::vector<float> > _mapDetIdEff;
56  std::map<RPCDetId, float> _bxmap;
57  std::map< int, std::vector<double> > _clsMap;
58  std::map<uint32_t, std::vector<double> > _mapDetClsMap;
59  std::map<uint32_t, std::vector<double> > _mapDetClsMapLegacy; //allowing old formad to by used by old digitizers
60  std::vector<double> _DetClsAsymmetric;
61  std::vector<double> _DetAsymmetryForCls;
62 private:
63 };
64 
65 #endif
std::map< RPCDetId, float > _bxmap
Definition: RPCSimSetUp.h:56
std::vector< double > _DetAsymmetryForCls
Definition: RPCSimSetUp.h:61
float getTime(uint32_t id)
Definition: RPCSimSetUp.cc:386
RPCSimSetUp(const edm::ParameterSet &ps)
Definition: RPCSimSetUp.cc:37
std::vector< double > _DetClsAsymmetric
Definition: RPCSimSetUp.h:60
const std::vector< double > & getAsymmetricClsDistribution(uint32_t id, uint32_t slice)
Definition: RPCSimSetUp.cc:426
std::map< uint32_t, std::vector< double > > _mapDetClsMapLegacy
Definition: RPCSimSetUp.h:59
const std::vector< float > & getEff(uint32_t id)
Definition: RPCSimSetUp.cc:364
const RPCGeometry * theGeometry
Definition: RPCSimSetUp.h:52
void setGeometry(const RPCGeometry *geom)
sets geometry
Definition: RPCSimSetUp.h:48
std::map< int, std::vector< double > > _clsMap
Definition: RPCSimSetUp.h:57
const std::vector< float > & getNoise(uint32_t id)
Definition: RPCSimSetUp.cc:353
const RPCGeometry * getGeometry()
Definition: RPCSimSetUp.h:50
virtual ~RPCSimSetUp()
Definition: RPCSimSetUp.cc:559
const std::vector< double > & getCls(uint32_t id)
Definition: RPCSimSetUp.cc:408
std::map< uint32_t, std::vector< float > > _mapDetIdEff
Definition: RPCSimSetUp.h:55
const std::map< int, std::vector< double > > & getClsMap()
Definition: RPCSimSetUp.cc:397
const std::vector< double > & getAsymmetryForCls(uint32_t id, uint32_t slice, uint32_t cls)
Definition: RPCSimSetUp.cc:492
std::map< uint32_t, std::vector< double > > _mapDetClsMap
Definition: RPCSimSetUp.h:58
void setRPCSetUp(const std::vector< RPCStripNoises::NoiseItem > &vnoise, const std::vector< float > &vcls)
Definition: RPCSimSetUp.cc:45
std::map< uint32_t, std::vector< float > > _mapDetIdNoise
Definition: RPCSimSetUp.h:54