CMS 3D CMS Logo

RPCSimAverageNoiseEffCls.h
Go to the documentation of this file.
1 #ifndef RPCDigitizer_RPCSimAverageNoiseEffCls_h
2 #define RPCDigitizer_RPCSimAverageNoiseEffCls_h
3 
12 
13 #include<cstring>
14 #include<iostream>
15 #include<fstream>
16 #include<string>
17 #include<vector>
18 #include<cstdlib>
21 
22 class RPCGeometry;
23 //class RPCSimSetUp;
24 
25 namespace CLHEP {
26  class HepRandomEngine;
27 }
28 
30 {
31  public:
33  ~RPCSimAverageNoiseEffCls() override;
34 
35  void simulate(const RPCRoll* roll,
36  const edm::PSimHitContainer& rpcHits,
37  CLHEP::HepRandomEngine*) override;
38 
39  void simulateNoise(const RPCRoll*,
40  CLHEP::HepRandomEngine*) override;
41 
42  int getClSize(float posX, CLHEP::HepRandomEngine*);
43  int getClSize(uint32_t id,float posX, CLHEP::HepRandomEngine*);
44 
45 // private:
46  protected:
47  void init() override{};
48 
49  double aveEff;
50  double aveCls;
51  double resRPC;
52  double timOff;
53  double dtimCs;
54  double resEle;
55  double sspeed;
56  double lbGate;
58  bool eledig;
59 
60  int N_hits;
61  int nbxing;
62  double rate;
63  double gate;
64  double frate;
65 
66  std::map< int, std::vector<double> > clsMap;
67  std::vector<double> sum_clsize;
68  std::vector<double> clsForDetId;
69  std::ifstream *infile;
70 
72 };
73 #endif
std::vector< double > clsForDetId
Definition: config.py:1
std::vector< double > sum_clsize
Definition: RPCSim.h:30
std::map< int, std::vector< double > > clsMap
std::vector< PSimHit > PSimHitContainer