Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:30:27

0001 #ifndef SimPPS_RPDigiProducer_RP_GAUSSIAN_TAIL_NOISE_ADDER_H
0002 #define SimPPS_RPDigiProducer_RP_GAUSSIAN_TAIL_NOISE_ADDER_H
0003 
0004 #include "SimPPS/RPDigiProducer/plugins/RPHitChargeConverter.h"
0005 #include "SimPPS/RPDigiProducer/interface/RPSimTypes.h"
0006 
0007 class RPGaussianTailNoiseAdder {
0008 public:
0009   RPGaussianTailNoiseAdder(int numStrips,
0010                            double theNoiseInElectrons,
0011                            double theStripThresholdInE,
0012                            CLHEP::HepRandomEngine &eng,
0013                            int verbosity);
0014   simromanpot::strip_charge_map addNoise(const simromanpot::strip_charge_map &theSignal);
0015 
0016 private:
0017   int numStrips_;
0018   double theNoiseInElectrons;
0019   double theStripThresholdInE;
0020   double strips_above_threshold_prob_;
0021   CLHEP::HepRandomEngine &rndEngine_;
0022   int verbosity_;
0023 };
0024 
0025 #endif  //SimPPS_RPDigiProducer_RP_GAUSSIAN_TAIL_NOISE_ADDER_H