CMS 3D CMS Logo

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