Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef RP_VFAT_SIMULATION_H
0002 #define RP_VFAT_SIMULATION_H
0003 
0004 #include <set>
0005 
0006 #include "DataFormats/CTPPSDigi/interface/TotemRPDigi.h"
0007 
0008 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0009 #include "SimPPS/RPDigiProducer/interface/RPSimTypes.h"
0010 
0011 class RPVFATSimulator {
0012 public:
0013   RPVFATSimulator(const edm::ParameterSet &params, RPDetId det_id);
0014   void ConvertChargeToHits(const simromanpot::strip_charge_map &signals,
0015                            simromanpot::strip_charge_map_links_type &theSignalProvenance,
0016                            std::vector<TotemRPDigi> &output_digi,
0017                            simromanpot::DigiPrimaryMapType &output_digi_links);
0018 
0019 private:
0020   typedef std::set<unsigned short, std::less<unsigned short> > dead_strip_set;
0021   const edm::ParameterSet &params_;
0022   RPDetId det_id_;
0023   double dead_strip_probability_;
0024   bool dead_strips_simulation_on_;
0025   dead_strip_set dead_strips_;
0026   int verbosity_;
0027 
0028   unsigned short strips_no_;
0029   double threshold_;
0030   bool links_persistence_;
0031 };
0032 
0033 #endif