CMS 3D CMS Logo

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 <cstdlib>
22 #include <utility>
23 
24 class RPCDigitizer;
25 class RPCGeometry;
26 class RPCDetId;
27 
28 class RPCSimSetUp {
29 public:
30  explicit RPCSimSetUp(const edm::ParameterSet& ps);
31  virtual ~RPCSimSetUp();
32 
33  void setRPCSetUp(const std::vector<RPCStripNoises::NoiseItem>& vnoise, const std::vector<float>& vcls);
34 
35  void setRPCSetUp(const std::vector<RPCStripNoises::NoiseItem>& vnoise,
36  const std::vector<RPCClusterSize::ClusterSizeItem>& vClusterSize);
37 
38  const std::vector<float>& getNoise(uint32_t id);
39  const std::vector<float>& getEff(uint32_t id);
40  float getTime(uint32_t id);
41  const std::map<int, std::vector<double> >& getClsMap();
42  // const std::map<int, std::vector<double> >& getClsMap(uint32_t id);
43  const std::vector<double>& getCls(uint32_t id);
44  const std::vector<double>& getAsymmetricClsDistribution(uint32_t id, uint32_t slice);
45  const std::vector<double>& getAsymmetryForCls(uint32_t id, uint32_t slice, uint32_t cls);
48 
49  const RPCGeometry* getGeometry() { return theGeometry; }
50 
52 
53  std::map<uint32_t, std::vector<float> > _mapDetIdNoise;
54  std::map<uint32_t, std::vector<float> > _mapDetIdEff;
55  std::map<RPCDetId, float> _bxmap;
56  std::map<int, std::vector<double> > _clsMap;
57  std::map<uint32_t, std::vector<double> > _mapDetClsMap;
58  std::map<uint32_t, std::vector<double> > _mapDetClsMapLegacy; //allowing old formad to by used by old digitizers
59  std::vector<double> _DetClsAsymmetric;
60  std::vector<double> _DetAsymmetryForCls;
61 
62 private:
63 };
64 
65 #endif
std::map< RPCDetId, float > _bxmap
Definition: RPCSimSetUp.h:55
std::vector< double > _DetAsymmetryForCls
Definition: RPCSimSetUp.h:60
float getTime(uint32_t id)
Definition: RPCSimSetUp.cc:403
RPCSimSetUp(const edm::ParameterSet &ps)
Definition: RPCSimSetUp.cc:37
std::vector< double > _DetClsAsymmetric
Definition: RPCSimSetUp.h:59
const std::vector< double > & getAsymmetricClsDistribution(uint32_t id, uint32_t slice)
Definition: RPCSimSetUp.cc:440
std::map< uint32_t, std::vector< double > > _mapDetClsMapLegacy
Definition: RPCSimSetUp.h:58
const std::vector< float > & getEff(uint32_t id)
Definition: RPCSimSetUp.cc:380
const RPCGeometry * theGeometry
Definition: RPCSimSetUp.h:51
void setGeometry(const RPCGeometry *geom)
sets geometry
Definition: RPCSimSetUp.h:47
const std::vector< float > & getNoise(uint32_t id)
Definition: RPCSimSetUp.cc:370
const RPCGeometry * getGeometry()
Definition: RPCSimSetUp.h:49
virtual ~RPCSimSetUp()
Definition: RPCSimSetUp.cc:580
const std::vector< double > & getCls(uint32_t id)
Definition: RPCSimSetUp.cc:421
std::map< uint32_t, std::vector< float > > _mapDetIdEff
Definition: RPCSimSetUp.h:54
const std::map< int, std::vector< double > > & getClsMap()
Definition: RPCSimSetUp.cc:413
const std::vector< double > & getAsymmetryForCls(uint32_t id, uint32_t slice, uint32_t cls)
Definition: RPCSimSetUp.cc:504
std::map< uint32_t, std::vector< double > > _mapDetClsMap
Definition: RPCSimSetUp.h:57
std::map< int, std::vector< double > > _clsMap
Definition: RPCSimSetUp.h:56
void setRPCSetUp(const std::vector< RPCStripNoises::NoiseItem > &vnoise, const std::vector< float > &vcls)
Definition: RPCSimSetUp.cc:44
std::map< uint32_t, std::vector< float > > _mapDetIdNoise
Definition: RPCSimSetUp.h:53