19 const std::map<unsigned short, double> &signals,
21 std::vector<CTPPSPixelDigi> &output_digi,
24 for (std::map<unsigned short, double>::const_iterator
i = signals.begin();
i != signals.end(); ++
i) {
26 unsigned short pixel_no =
i->first;
29 <<
"Dummy ROC adc and threshold : " <<
i->second <<
", " <<
threshold_;
34 uint32_t
col = pixel_no / 160;
35 uint32_t row = pixel_no % 160;
59 output_digi_links.push_back(theSignalProvenance[pixel_no]);
62 <<
"digi links size=" << theSignalProvenance[pixel_no].size();
63 for (
unsigned int u = 0; u < theSignalProvenance[pixel_no].size(); ++u) {
65 <<
" digi: particle=" << theSignalProvenance[pixel_no][u].first
66 <<
" energy [electrons]=" << theSignalProvenance[pixel_no][u].second;
74 for (
unsigned int i = 0;
i < output_digi.size(); ++
i) {
76 <<
"Dummy ROC Simulator " <<
det_id_ <<
" row= " 77 << output_digi[
i].row() <<
" col= " << output_digi[
i].column() <<
" adc= " << output_digi[
i].adc();
float getPed(const int &col, const int &row) const
bool dead_pixels_simulation_on_
static constexpr int maxADC_
RPixDummyROCSimulator(const edm::ParameterSet ¶ms, uint32_t det_id)
static constexpr double highRangeCal_
bool doSingleCalibration_
int VcaltoElectronOffset_
uint32_t getNCols() const
float getGain(const int &col, const int &row) const
uint32_t getDetId() const
dead_pixel_set dead_pixels_
double dead_pixel_probability_
void ConvertChargeToHits(const std::map< unsigned short, double > &signals, std::map< unsigned short, std::vector< std::pair< int, double > > > &theSignalProvenance, std::vector< CTPPSPixelDigi > &output_digi, std::vector< std::vector< std::pair< int, double > > > &output_digi_links, const CTPPSPixelGainCalibrations *pcalibration)
Log< level::Info, false > LogInfo
const CTPPSPixelGainCalibration & getGainCalibration(const uint32_t &detid) const
static constexpr double lowRangeCal_
uint16_t *__restrict__ uint16_t const *__restrict__ adc