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
RPCSimSetUp::getTime
float getTime(uint32_t id)
Definition: RPCSimSetUp.cc:440
RPCSimSetUp::getAsymmetricClsDistribution
const std::vector< double > & getAsymmetricClsDistribution(uint32_t id, uint32_t slice)
Definition: RPCSimSetUp.cc:477
EDProducer.h
RPCSimSetUp::_mapDetClsMapLegacy
std::map< uint32_t, std::vector< double > > _mapDetClsMapLegacy
Definition: RPCSimSetUp.h:58
RPCSimSetUp::_mapDetIdNoise
std::map< uint32_t, std::vector< float > > _mapDetIdNoise
Definition: RPCSimSetUp.h:53
RPCSimSetUp::RPCSimSetUp
RPCSimSetUp(const edm::ParameterSet &ps)
Definition: RPCSimSetUp.cc:35
RPCDetId
Definition: RPCDetId.h:16
PSimHitContainer.h
RPCSimSetUp::_DetClsAsymmetric
std::vector< double > _DetClsAsymmetric
Definition: RPCSimSetUp.h:59
RPCStripNoisesRcd.h
RPCSimSetUp::_DetAsymmetryForCls
std::vector< double > _DetAsymmetryForCls
Definition: RPCSimSetUp.h:60
RPCDigitizer
Definition: RPCDigitizer.h:33
RPCSimSetUp::getNoise
const std::vector< float > & getNoise(uint32_t id)
Definition: RPCSimSetUp.cc:407
RPCSimSetUp::setGeometry
void setGeometry(const RPCGeometry *geom)
sets geometry
Definition: RPCSimSetUp.h:47
RPCSimSetUp::getGeometry
const RPCGeometry * getGeometry()
Definition: RPCSimSetUp.h:49
RPCSimSetUp::theGeometry
const RPCGeometry * theGeometry
Definition: RPCSimSetUp.h:51
RPCClusterSize.h
RPCSimSetUp::~RPCSimSetUp
virtual ~RPCSimSetUp()
Definition: RPCSimSetUp.cc:617
RPCSimSetUp::getCls
const std::vector< double > & getCls(uint32_t id)
Definition: RPCSimSetUp.cc:458
RPCSimSetUp::getEff
const std::vector< float > & getEff(uint32_t id)
Definition: RPCSimSetUp.cc:417
relativeConstraints.geom
geom
Definition: relativeConstraints.py:72
RPCSimSetUp::getClsMap
const std::map< int, std::vector< double > > & getClsMap()
Definition: RPCSimSetUp.cc:450
RPCSimSetUp::getAsymmetryForCls
const std::vector< double > & getAsymmetryForCls(uint32_t id, uint32_t slice, uint32_t cls)
Definition: RPCSimSetUp.cc:541
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
RPCSimSetUp::_mapDetIdEff
std::map< uint32_t, std::vector< float > > _mapDetIdEff
Definition: RPCSimSetUp.h:54
RPCClusterSizeRcd.h
RPCStripNoises.h
RPCSimSetUp::_mapDetClsMap
std::map< uint32_t, std::vector< double > > _mapDetClsMap
Definition: RPCSimSetUp.h:57
EventSetup.h
RPCSimSetUp::_clsMap
std::map< int, std::vector< double > > _clsMap
Definition: RPCSimSetUp.h:56
RPCGeometry
Definition: RPCGeometry.h:20
RPCSimSetUp
Definition: RPCSimSetUp.h:28
ParameterSet.h
RPCSimSetUp::setRPCSetUp
void setRPCSetUp(const std::vector< RPCStripNoises::NoiseItem > &vnoise, const std::vector< float > &vcls)
Definition: RPCSimSetUp.cc:42
mergeAndRegister.slice
slice
Definition: mergeAndRegister.py:120
RPCSimSetUp::_bxmap
std::map< RPCDetId, float > _bxmap
Definition: RPCSimSetUp.h:55