CMS 3D CMS Logo

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