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 <cstdlib>
20 
21 class RPCGeometry;
22 
23 namespace CLHEP {
24  class HepRandomEngine;
25 }
26 
27 class RPCSimAverage : public RPCSim {
28 public:
30  ~RPCSimAverage() 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 
57  std::map<int, std::vector<double> > clsMap;
58  std::vector<double> sum_clsize;
59  std::ifstream* infile;
60 
62 };
63 #endif
std::vector< double > sum_clsize
Definition: RPCSimAverage.h:58
void simulateNoise(const RPCRoll *, CLHEP::HepRandomEngine *) override
int getClSize(float posX, CLHEP::HepRandomEngine *)
void simulate(const RPCRoll *roll, const edm::PSimHitContainer &rpcHits, CLHEP::HepRandomEngine *) override
Definition: config.py:1
~RPCSimAverage() override
std::map< int, std::vector< double > > clsMap
Definition: RPCSimAverage.h:57
Definition: RPCSim.h:30
void init() override
Definition: RPCSimAverage.h:39
RPCSynchronizer * _rpcSync
Definition: RPCSimAverage.h:61
RPCSimAverage(const edm::ParameterSet &config)
std::vector< PSimHit > PSimHitContainer
std::ifstream * infile
Definition: RPCSimAverage.h:59