test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RPCSimAverageNoise.h
Go to the documentation of this file.
1 #ifndef RPCDigitizer_RPCSimAverageNoise_h
2 #define RPCDigitizer_RPCSimAverageNoise_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 RPCSimAverageNoise : public RPCSim
29 {
30  public:
31 
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(){};
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  double frate;
61 
62  std::map< int, std::vector<double> > clsMap;
63  std::vector<double> sum_clsize;
64  std::ifstream *infile;
65 
67 };
68 #endif
int getClSize(float posX, CLHEP::HepRandomEngine *)
std::map< int, std::vector< double > > clsMap
void simulateNoise(const RPCRoll *, CLHEP::HepRandomEngine *) override
Definition: RPCSim.h:30
void simulate(const RPCRoll *roll, const edm::PSimHitContainer &rpcHits, CLHEP::HepRandomEngine *) override
RPCSimAverageNoise(const edm::ParameterSet &config)
RPCSynchronizer * _rpcSync
std::ifstream * infile
std::vector< PSimHit > PSimHitContainer
std::vector< double > sum_clsize