21 const std::map<unsigned short, double> &signals,
22 std::map<
unsigned short, std::vector<std::pair<int, double> > > &theSignalProvenance,
23 std::vector<CTPPSPixelDigi> &output_digi,
24 std::vector<std::vector<std::pair<int, double> > > &output_digi_links,
26 for (std::map<unsigned short, double>::const_iterator
i = signals.begin();
i != signals.end(); ++
i) {
28 unsigned short pixel_no =
i->first;
35 uint32_t
col = pixel_no / 160;
36 uint32_t row = pixel_no % 160;
60 output_digi_links.push_back(theSignalProvenance[pixel_no]);
62 edm::LogInfo(
"RPixDummyROCSimulator") <<
"digi links size=" << theSignalProvenance[pixel_no].size();
63 for (
unsigned int u = 0; u < theSignalProvenance[pixel_no].size(); ++u) {
64 edm::LogInfo(
"RPixDummyROCSimulator") <<
" digi: particle=" << theSignalProvenance[pixel_no][u].first
65 <<
" energy [electrons]=" << theSignalProvenance[pixel_no][u].second;
73 for (
unsigned int i = 0;
i < output_digi.size(); ++
i) {
75 <<
"Dummy ROC Simulator " <<
det_id_ <<
" row= "
76 << output_digi[
i].row() <<
" col= " << output_digi[
i].column() <<
" adc= " << output_digi[
i].adc();