4 CLHEP::HepRandomEngine &eng,
23 const std::vector<int> &input_links,
24 std::vector<CTPPSPixelDigi> &output_digi,
29 edm::LogInfo(
"PPS") <<
"RPixDetDigitizer " <<
det_id_ <<
" received input.size()=" << input.size();
31 bool links_persistence_checked =
links_persistence_ && input_links.size() == input.size();
32 int input_size = input.size();
33 for (
int i = 0;
i < input_size; ++
i) {
34 std::map<unsigned short, double> the_pixel_charge_map;
38 edm::LogInfo(
"PPS") <<
"RPixDetDigitizer " <<
det_id_ <<
" returned hits=" << the_pixel_charge_map.size();
39 if (links_persistence_checked)
45 std::map<unsigned short, std::vector<std::pair<int, double> > > &theSignalProvenance =
47 std::map<unsigned short, double> afterNoise;
48 afterNoise = theSignal;
50 afterNoise, theSignalProvenance, output_digi, output_digi_links, pcalibrations);
RPixDetDigitizer(const edm::ParameterSet ¶ms, CLHEP::HepRandomEngine &eng, uint32_t det_id, const PPSPixelTopology &ppt)
double thePixelThresholdInE
static std::string const input
std::unique_ptr< RPixHitChargeConverter > theRPixHitChargeConverter
std::unique_ptr< RPixDummyROCSimulator > theRPixDummyROCSimulator
Log< level::Info, false > LogInfo
double theNoiseInElectrons
T getParameter(std::string const &) const
void run(const std::vector< PSimHit > &input, const std::vector< int > &input_links, std::vector< CTPPSPixelDigi > &output_digi, std::vector< std::vector< std::pair< int, double > > > &output_digi_links, const CTPPSPixelGainCalibrations *pcalibration, const PPSPixelTopology *ppt)
std::unique_ptr< RPixPileUpSignals > theRPixPileUpSignals