CMS 3D CMS Logo

RPCSimAsymmetricCls.h
Go to the documentation of this file.
1 #ifndef RPCDigitizer_RPCSimAsymmetricCls_h
2 #define RPCDigitizer_RPCSimAsymmetricCls_h
3 
12 
13 #include<cstring>
14 #include<iostream>
15 #include<fstream>
16 #include<string>
17 #include<vector>
18 #include<cstdlib>
22 
23 class RPCGeometry;
24 //class RPCSimSetUp;
25 
26 namespace CLHEP {
27  class HepRandomEngine;
28 }
29 
31 {
32  public:
34  ~RPCSimAsymmetricCls() override;
35 
36  void simulate(const RPCRoll* roll,
37  const edm::PSimHitContainer& rpcHits,
38  CLHEP::HepRandomEngine*) override;
39 
40  void simulateNoise(const RPCRoll*,
41  CLHEP::HepRandomEngine*) override;
42 
43  int getClSize(float posX, CLHEP::HepRandomEngine*);
44  int getClSize(uint32_t id,float posX, CLHEP::HepRandomEngine*);
45  unsigned int slice(float posX); //??? CLHEP::HepRandomEngine*);
46 
47  private:
48  void init() override{};
49  private:
50  double aveEff;
51  double aveCls;
52  double resRPC;
53  double timOff;
54  double dtimCs;
55  double resEle;
56  double sspeed;
57  double lbGate;
59  bool eledig;
60 
61  int N_hits;
62  int nbxing;
63  double rate;
64  double gate;
65  double frate;
66 
67  std::map< int, std::vector<double> > clsMap;
68  std::vector<double> sum_clsize;
69  std::vector<double> clsForDetId;
70  std::ifstream *infile;
71 
73 };
74 #endif
std::map< int, std::vector< double > > clsMap
Definition: config.py:1
std::vector< double > clsForDetId
std::vector< double > sum_clsize
Definition: RPCSim.h:30
std::ifstream * infile
RPCSynchronizer * _rpcSync
std::vector< PSimHit > PSimHitContainer