CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
22 class RPCGeometry;
23 
24 namespace CLHEP {
25  class HepRandomEngine;
26 }
27 
28 class RPCSimAverageNoise : public RPCSim
29 {
30  public:
31 
34 
35  void simulate(const RPCRoll* roll,
36  const edm::PSimHitContainer& rpcHits,
37  CLHEP::HepRandomEngine*) override;
38 
39  void simulateNoise(const RPCRoll*, CLHEP::HepRandomEngine*) override;
40 
41  int getClSize(float posX, CLHEP::HepRandomEngine*);
42 
43  private:
44  void init() override{};
45  private:
46  double aveEff;
47  double aveCls;
48  double resRPC;
49  double timOff;
50  double dtimCs;
51  double resEle;
52  double sspeed;
53  double lbGate;
55 
56  int N_hits;
57  int nbxing;
58  double rate;
59  double gate;
60  double frate;
61 
62  std::map< int, std::vector<double> > clsMap;
63  std::vector<double> sum_clsize;
64  std::ifstream *infile;
65 
67 };
68 #endif
void init() override
Definition: config.py:1
std::map< int, std::vector< double > > clsMap
Definition: RPCSim.h:30
RPCSynchronizer * _rpcSync
std::ifstream * infile
std::vector< PSimHit > PSimHitContainer
std::vector< double > sum_clsize