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  class RandFlat;
27  class RandPoissonQ;
28 }
29 
30 class RPCSimAverage : public RPCSim
31 {
32  public:
33 
36 
37  void simulate(const RPCRoll* roll,
38  const edm::PSimHitContainer& rpcHits);
39 
40  void simulateNoise(const RPCRoll*);
41 
42  void setRandomEngine(CLHEP::HepRandomEngine& eng);
43 
44  int getClSize(float posX);
45 
46  private:
47  void init(){};
48  private:
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 
64  std::map< int, std::vector<double> > clsMap;
65  std::vector<double> sum_clsize;
66  std::ifstream *infile;
67 
69 
70  // CLHEP::HepRandomEngine* rndEngine;
71  CLHEP::RandFlat* flatDistribution_;
72  CLHEP::RandFlat* flatDistribution1;
73  CLHEP::RandFlat* flatDistribution2;
74  CLHEP::RandPoissonQ *poissonDistribution;
75 };
76 #endif
CLHEP::RandFlat * flatDistribution_
Definition: RPCSimAverage.h:71
std::vector< double > sum_clsize
Definition: RPCSimAverage.h:65
CLHEP::RandPoissonQ * poissonDistribution
Definition: RPCSimAverage.h:74
int getClSize(float posX)
void simulateNoise(const RPCRoll *)
void setRandomEngine(CLHEP::HepRandomEngine &eng)
CLHEP::RandFlat * flatDistribution1
Definition: RPCSimAverage.h:72
Definition: RPCSim.h:27
CLHEP::RandFlat * flatDistribution2
Definition: RPCSimAverage.h:73
void simulate(const RPCRoll *roll, const edm::PSimHitContainer &rpcHits)
RPCSynchronizer * _rpcSync
Definition: RPCSimAverage.h:68
RPCSimAverage(const edm::ParameterSet &config)
tuple config
Definition: cmsDriver.py:17
std::vector< PSimHit > PSimHitContainer
std::ifstream * infile
Definition: RPCSimAverage.h:66
std::map< int, std::vector< double > > clsMap
Definition: RPCSimAverage.h:64