CMS 3D CMS Logo

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 <cstdlib>
20 
21 class RPCGeometry;
22 
23 namespace CLHEP {
24  class HepRandomEngine;
25 }
26 
27 class RPCSimAverage : public RPCSim {
28 public:
30  ~RPCSimAverage() override;
31 
32  void simulate(const RPCRoll* roll, const edm::PSimHitContainer& rpcHits, CLHEP::HepRandomEngine*) override;
33 
34  void simulateNoise(const RPCRoll*, CLHEP::HepRandomEngine*) override;
35 
36  int getClSize(float posX, CLHEP::HepRandomEngine*);
37 
38 private:
39  void init() override{};
40 
41 private:
42  double aveEff;
43  double aveCls;
44  double resRPC;
45  double timOff;
46  double dtimCs;
47  double resEle;
48  double sspeed;
49  double lbGate;
51 
52  int N_hits;
53  int nbxing;
54  double rate;
55  double gate;
56 
57  std::map<int, std::vector<double> > clsMap;
58  std::vector<double> sum_clsize;
59  std::ifstream* infile;
60 
62 };
63 #endif
RPCRoll
Definition: RPCRoll.h:12
RPCSimAverage::resEle
double resEle
Definition: RPCSimAverage.h:47
RPCSimAverage
Definition: RPCSimAverage.h:27
RPCSimAverage::RPCSimAverage
RPCSimAverage(const edm::ParameterSet &config)
Definition: RPCSimAverage.cc:39
RPCSimAverage::infile
std::ifstream * infile
Definition: RPCSimAverage.h:59
RPCSimAverage::getClSize
int getClSize(float posX, CLHEP::HepRandomEngine *)
Definition: RPCSimAverage.cc:69
RPCSynchronizer
Definition: RPCSynchronizer.h:36
RPCSimAverage::clsMap
std::map< int, std::vector< double > > clsMap
Definition: RPCSimAverage.h:57
RPCSimAverage::aveCls
double aveCls
Definition: RPCSimAverage.h:43
RPCSimAverage::nbxing
int nbxing
Definition: RPCSimAverage.h:53
RPCSimAverage::lbGate
double lbGate
Definition: RPCSimAverage.h:49
RPCSim.h
RPCSimAverage::simulate
void simulate(const RPCRoll *roll, const edm::PSimHitContainer &rpcHits, CLHEP::HepRandomEngine *) override
Definition: RPCSimAverage.cc:110
RPCSimAverage::rate
double rate
Definition: RPCSimAverage.h:54
config
Definition: config.py:1
RPCSimAverage::N_hits
int N_hits
Definition: RPCSimAverage.h:52
RecoTauValidation_cfi.posX
posX
Definition: RecoTauValidation_cfi.py:288
RPCSimAverage::gate
double gate
Definition: RPCSimAverage.h:55
CLHEP
Definition: CocoaGlobals.h:27
RPCSimAverage::sspeed
double sspeed
Definition: RPCSimAverage.h:48
RPCSimAverage::sum_clsize
std::vector< double > sum_clsize
Definition: RPCSimAverage.h:58
RPCSimAverage::dtimCs
double dtimCs
Definition: RPCSimAverage.h:46
RPCSimAverage::~RPCSimAverage
~RPCSimAverage() override
Definition: RPCSimAverage.cc:67
edm::ParameterSet
Definition: ParameterSet.h:36
RPCSimAverage::timOff
double timOff
Definition: RPCSimAverage.h:45
RPCSim
Definition: RPCSim.h:30
RPCSimAverage::init
void init() override
Definition: RPCSimAverage.h:39
RPCSimAverage::aveEff
double aveEff
Definition: RPCSimAverage.h:39
RPCSimAverage::_rpcSync
RPCSynchronizer * _rpcSync
Definition: RPCSimAverage.h:61
EventSetup.h
RPCSimAverage::resRPC
double resRPC
Definition: RPCSimAverage.h:44
RPCGeometry
Definition: RPCGeometry.h:20
edm::PSimHitContainer
std::vector< PSimHit > PSimHitContainer
Definition: PSimHitContainer.h:11
RPCSimAverage::rpcdigiprint
bool rpcdigiprint
Definition: RPCSimAverage.h:50
RPCSynchronizer.h
RPCSimAverage::simulateNoise
void simulateNoise(const RPCRoll *, CLHEP::HepRandomEngine *) override
Definition: RPCSimAverage.cc:181