CMS 3D CMS Logo

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