CMS 3D CMS Logo

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