CMS 3D CMS Logo

RPCSimAverageNoiseEff.h
Go to the documentation of this file.
1 #ifndef RPCDigitizer_RPCSimAverageNoiseEff_h
2 #define RPCDigitizer_RPCSimAverageNoiseEff_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 
29 class RPCSimAverageNoiseEff : public RPCSim {
30 public:
32  ~RPCSimAverageNoiseEff() override;
33 
34  void simulate(const RPCRoll* roll, const edm::PSimHitContainer& rpcHits, CLHEP::HepRandomEngine*) override;
35 
36  void simulateNoise(const RPCRoll*, CLHEP::HepRandomEngine*) override;
37 
38  int getClSize(float posX, CLHEP::HepRandomEngine*);
39 
40 private:
41  void init() override{};
42 
43 private:
44  double aveEff;
45  double aveCls;
46  double resRPC;
47  double timOff;
48  double dtimCs;
49  double resEle;
50  double sspeed;
51  double lbGate;
53 
54  int N_hits;
55  int nbxing;
56  double rate;
57  double gate;
58  double frate;
59 
60  std::map<int, std::vector<double> > clsMap;
61  std::vector<double> sum_clsize;
62  std::ifstream* infile;
63 
65 };
66 #endif
std::vector< double > sum_clsize
int getClSize(float posX, CLHEP::HepRandomEngine *)
Definition: config.py:1
RPCSimAverageNoiseEff(const edm::ParameterSet &config)
void simulateNoise(const RPCRoll *, CLHEP::HepRandomEngine *) override
void simulate(const RPCRoll *roll, const edm::PSimHitContainer &rpcHits, CLHEP::HepRandomEngine *) override
Definition: RPCSim.h:30
RPCSynchronizer * _rpcSync
std::vector< PSimHit > PSimHitContainer
std::map< int, std::vector< double > > clsMap