test
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  void init(){};
47  private:
48  double aveEff;
49  double aveCls;
50  double resRPC;
51  double timOff;
52  double dtimCs;
53  double resEle;
54  double sspeed;
55  double lbGate;
57 
58  int N_hits;
59  int nbxing;
60  double rate;
61  double gate;
62  double frate;
63 
64  std::map< int, std::vector<double> > clsMap;
65  std::vector<double> sum_clsize;
66  std::vector<double> clsForDetId;
67  std::ifstream *infile;
68 
70 };
71 #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