CMS 3D CMS Logo

RPCSimModelTiming.h
Go to the documentation of this file.
1 #ifndef RPCDigitizer_RPCSimModelTiming_h
2 #define RPCDigitizer_RPCSimModelTiming_h
3 
14 
15 #include<cstring>
16 #include<iostream>
17 #include<fstream>
18 #include<string>
19 #include<vector>
20 #include<stdlib.h>
24 
25 class RPCGeometry;
26 
27 namespace CLHEP {
28  class HepRandomEngine;
29 }
30 
31 class RPCSimModelTiming : public RPCSim
32 {
33  public:
36  void simulate(const RPCRoll* roll,
37  const edm::PSimHitContainer& rpcHits,
38  CLHEP::HepRandomEngine*) override;
39  void simulateNoise(const RPCRoll*,
40  CLHEP::HepRandomEngine*) override;
41  int getClSize(uint32_t id,float posX, CLHEP::HepRandomEngine*);
42  int LeftRightNeighbour(const RPCRoll& roll, const LocalPoint & hit_pos, int strip);
43 
44  protected:
45  void init() override{};
46 
47  double aveEff;
48  double aveCls;
49  double resRPC;
50  double timOff;
51  double dtimCs;
52  double resEle;
53  double sspeed;
54  double lbGate;
56 
57  int N_hits;
58  int nbxing;
59  double rate;
60  double gate;
61  double frate;
62  bool do_Y;
63  double sigmaY;
64 
65  std::map< int, std::vector<double> > clsMap;
66  std::vector<double> sum_clsize;
67  std::vector<double> clsForDetId;
68  std::ifstream *infile;
69 
71 };
72 #endif
std::map< int, std::vector< double > > clsMap
Definition: config.py:1
std::vector< double > clsForDetId
void init() override
std::vector< double > sum_clsize
Definition: RPCSim.h:30
std::ifstream * infile
RPCSynchronizer * _rpcSync
std::vector< PSimHit > PSimHitContainer