CMS 3D CMS Logo

RPCSimAverageNoiseEffCls.h
Go to the documentation of this file.
1 #ifndef RPCDigitizer_RPCSimAverageNoiseEffCls_h
2 #define RPCDigitizer_RPCSimAverageNoiseEffCls_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 
30 public:
32  ~RPCSimAverageNoiseEffCls() 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  int getClSize(uint32_t id, float posX, CLHEP::HepRandomEngine*);
40 
41  // private:
42 protected:
43  void init() override {}
44 
45  double aveEff;
46  double aveCls;
47  double resRPC;
48  double timOff;
49  double dtimCs;
50  double resEle;
51  double sspeed;
52  double lbGate;
54  bool eledig;
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::vector<double> clsForDetId;
65  std::ifstream* infile;
66 
68 };
69 #endif
int getClSize(float posX, CLHEP::HepRandomEngine *)
std::vector< double > clsForDetId
Definition: config.py:1
std::map< int, std::vector< double > > clsMap
void simulate(const RPCRoll *roll, const edm::PSimHitContainer &rpcHits, CLHEP::HepRandomEngine *) override
std::vector< double > sum_clsize
void simulateNoise(const RPCRoll *, CLHEP::HepRandomEngine *) override
Definition: RPCSim.h:30
RPCSimAverageNoiseEffCls(const edm::ParameterSet &config)
std::vector< PSimHit > PSimHitContainer