File indexing completed on 2024-04-06 12:30:53
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 ¶ms, 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 RPDetId det_id_;
0022 double dead_strip_probability_;
0023 bool dead_strips_simulation_on_;
0024 dead_strip_set dead_strips_;
0025 int verbosity_;
0026
0027 unsigned short strips_no_;
0028 double threshold_;
0029 bool links_persistence_;
0030 };
0031
0032 #endif