CMS 3D CMS Logo

RPCSimAverage.h
Go to the documentation of this file.
1 #ifndef RPCDigitizer_RPCSimAverage_h
2 #define RPCDigitizer_RPCSimAverage_h
3 
12 
13 #include<cstring>
14 #include<iostream>
15 #include<fstream>
16 #include<string>
17 #include<vector>
18 #include<stdlib.h>
20 
21 
22 class RPCGeometry;
23 
24 namespace CLHEP {
25  class HepRandomEngine;
26 }
27 
28 class RPCSimAverage : public RPCSim
29 {
30  public:
31 
33  ~RPCSimAverage();
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 
61  std::map< int, std::vector<double> > clsMap;
62  std::vector<double> sum_clsize;
63  std::ifstream *infile;
64 
66 };
67 #endif
std::vector< double > sum_clsize
Definition: RPCSimAverage.h:62
Definition: config.py:1
Definition: RPCSim.h:30
void init() override
Definition: RPCSimAverage.h:44
RPCSynchronizer * _rpcSync
Definition: RPCSimAverage.h:65
std::vector< PSimHit > PSimHitContainer
std::ifstream * infile
Definition: RPCSimAverage.h:63
std::map< int, std::vector< double > > clsMap
Definition: RPCSimAverage.h:61