CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RPCSimAverageNoiseEff.h
Go to the documentation of this file.
1 #ifndef RPCDigitizer_RPCSimAverageNoiseEff_h
2 #define RPCDigitizer_RPCSimAverageNoiseEff_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  class RandFlat;
28  class RandPoisson;
29 }
30 
32 {
33  public:
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  double frate;
64 
65  std::map< int, std::vector<double> > clsMap;
66  std::vector<double> sum_clsize;
67  std::ifstream *infile;
68 
70 
71  //Defining the engines in the constructor and the method
72  //CLHEP::HepRandomEngine* rndEngine;
73  CLHEP::RandFlat* flatDistribution;
74  //Adding a second flatDistribution, since it was redefined
75  //in a method with different interval
76  CLHEP::RandFlat* flatDistribution2;
77  CLHEP::RandPoissonQ *poissonDistribution_;
78 
79 };
80 #endif
void simulateNoise(const RPCRoll *)
std::vector< double > sum_clsize
CLHEP::RandFlat * flatDistribution
RPCSimAverageNoiseEff(const edm::ParameterSet &config)
Definition: RPCSim.h:27
void simulate(const RPCRoll *roll, const edm::PSimHitContainer &rpcHits)
void setRandomEngine(CLHEP::HepRandomEngine &eng)
RPCSynchronizer * _rpcSync
std::vector< PSimHit > PSimHitContainer
std::map< int, std::vector< double > > clsMap
CLHEP::RandFlat * flatDistribution2
CLHEP::RandPoissonQ * poissonDistribution_