CMS 3D CMS Logo

RPCSimAverageNoise.h

Go to the documentation of this file.
00001 #ifndef RPCDigitizer_RPCSimAverageNoise_h
00002 #define RPCDigitizer_RPCSimAverageNoise_h
00003 
00010 #include "SimMuon/RPCDigitizer/src/RPCSim.h"
00011 #include "SimMuon/RPCDigitizer/src/RPCSynchronizer.h"
00012 
00013 #include<cstring>
00014 #include<iostream>
00015 #include<fstream>
00016 #include<string>
00017 #include<vector>
00018 #include<stdlib.h>
00019 #include <FWCore/Framework/interface/EventSetup.h>
00020 
00021 
00022 class RPCGeometry;
00023 
00024 namespace CLHEP {
00025   class HepRandomEngine;
00026   class RandFlat;
00027   class RandPoissonQ;
00028 }
00029 
00030 class RPCSimAverageNoise : public RPCSim
00031 {
00032  public:
00033 
00034   RPCSimAverageNoise(const edm::ParameterSet& config);
00035   ~RPCSimAverageNoise();
00036 
00037   void simulate(const RPCRoll* roll,
00038                 const edm::PSimHitContainer& rpcHits);
00039 
00040   void simulateNoise(const RPCRoll*);
00041 
00042   int getClSize(float posX); 
00043 
00044  private:
00045   void init(){};
00046  private:
00047   double aveEff;
00048   double aveCls;
00049   double resRPC;
00050   double timOff;
00051   double dtimCs;
00052   double resEle;
00053   double sspeed;
00054   double lbGate;
00055   bool rpcdigiprint;
00056   
00057   int N_hits;
00058   int nbxing;
00059   double rate;
00060   double gate;
00061   double frate;
00062 
00063   std::map< int, std::vector<double> > clsMap;
00064   std::vector<double> sum_clsize;
00065   std::ifstream *infile;
00066  
00067   RPCSynchronizer* _rpcSync;
00068 
00069   CLHEP::HepRandomEngine* rndEngine;
00070   CLHEP::RandFlat* flatDistribution;
00071   CLHEP::RandPoissonQ *poissonDistribution_;
00072 };
00073 #endif

Generated on Tue Jun 9 17:47:46 2009 for CMSSW by  doxygen 1.5.4