CMS 3D CMS Logo

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