CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
GEMSimSetUp.h
Go to the documentation of this file.
1 #ifndef GEMDigitizer_GEMSimSetUp_h
2 #define GEMDigitizer_GEMSimSetUp_h
3 
8 
9 #include <map>
10 #include <vector>
11 
12 class GEMGeometry;
13 class GEMDetId;
14 
16 {
17  public:
18 
19  GEMSimSetUp(const edm::ParameterSet& ps);
20 
21  virtual ~GEMSimSetUp() {}
22 
23  void setup();
24 
25  void setup(std::vector<RPCStripNoises::NoiseItem> &vnoise,
26  std::vector<float> &vcluster);
27 
28  void setup(std::vector<RPCStripNoises::NoiseItem> &vnoise,
29  std::vector<RPCClusterSize::ClusterSizeItem> &vClusterSize);
30 
31  const std::vector<float>& getNoise(uint32_t id);
32 
33  const std::vector<float>& getEfficiency(uint32_t id);
34 
35  float getTime(uint32_t id);
36 
37  const std::map< int, std::vector<float> >& getClusterMap();
38 
39  const std::vector<float>& getCluster(uint32_t id);
40 
42 
43  const GEMGeometry * getGeometry() { return geometry_; }
44 
45 private:
46 
47  void setupNoiseAndEfficiency(std::vector<RPCStripNoises::NoiseItem> &vnoise);
48  void setupTimeCalibration(GEMDetId id, float timing);
49 
51 
52  std::map< uint32_t, std::vector<float> > mapDetIdNoise_;
53  std::map< uint32_t, std::vector<float> > mapDetIdEfficiency_;
54  std::map< GEMDetId, float> bxmap_;
55  std::map< int, std::vector<float> > clusterMap_;
56  std::map< uint32_t, std::vector<float> > mapDetClusterMap_;
57 
62 };
63 
64 #endif
double averageEfficiency_
Definition: GEMSimSetUp.h:58
int numberOfStripsPerPartition_
Definition: GEMSimSetUp.h:61
void setGeometry(const GEMGeometry *geom)
Definition: GEMSimSetUp.h:41
const std::vector< float > & getNoise(uint32_t id)
Definition: GEMSimSetUp.cc:111
std::map< GEMDetId, float > bxmap_
Definition: GEMSimSetUp.h:54
void setupNoiseAndEfficiency(std::vector< RPCStripNoises::NoiseItem > &vnoise)
Definition: GEMSimSetUp.cc:181
double averageNoiseRate_
Definition: GEMSimSetUp.h:59
void setupTimeCalibration(GEMDetId id, float timing)
Definition: GEMSimSetUp.cc:237
std::map< uint32_t, std::vector< float > > mapDetIdEfficiency_
Definition: GEMSimSetUp.h:53
std::map< uint32_t, std::vector< float > > mapDetClusterMap_
Definition: GEMSimSetUp.h:56
const std::map< int, std::vector< float > > & getClusterMap()
Definition: GEMSimSetUp.cc:153
GEMSimSetUp(const edm::ParameterSet &ps)
Definition: GEMSimSetUp.cc:5
std::map< uint32_t, std::vector< float > > mapDetIdNoise_
Definition: GEMSimSetUp.h:52
const std::vector< float > & getEfficiency(uint32_t id)
Definition: GEMSimSetUp.cc:123
std::map< int, std::vector< float > > clusterMap_
Definition: GEMSimSetUp.h:55
virtual ~GEMSimSetUp()
Definition: GEMSimSetUp.h:21
const GEMGeometry * getGeometry()
Definition: GEMSimSetUp.h:43
double timeCalibrationOffset_
Definition: GEMSimSetUp.h:60
float getTime(uint32_t id)
Definition: GEMSimSetUp.cc:140
const std::vector< float > & getCluster(uint32_t id)
Definition: GEMSimSetUp.cc:164
const GEMGeometry * geometry_
Definition: GEMSimSetUp.h:50
void setup()
Definition: GEMSimSetUp.cc:63