Go to the documentation of this file.
21 const std::map<unsigned short, double> &signals,
23 std::vector<CTPPSPixelDigi> &output_digi,
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();
RPixDummyROCSimulator(const edm::ParameterSet ¶ms, uint32_t det_id)
uint32_t getNCols() const
dead_pixel_set dead_pixels_
uint32_t getDetId() const
static constexpr double highRangeCal_
int VcaltoElectronOffset_
Geometrical and topological information on RPix silicon detector. Uses coordinate a frame with origin...
Log< level::Info, false > LogInfo
static constexpr int maxADC_
constexpr int adc(sample_type sample)
get the ADC sample (12 bits)
float getGain(const int &col, const int &row) const
bool doSingleCalibration_
const CTPPSPixelGainCalibration & getGainCalibration(const uint32_t &detid) const
float getPed(const int &col, const int &row) const
bool dead_pixels_simulation_on_
static constexpr double lowRangeCal_
double dead_pixel_probability_
unsigned short detPixelNo() const
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)
unsigned short pixels_no_