CMS 3D CMS Logo

RPixDummyROCSimulator.h
Go to the documentation of this file.
1 #ifndef RPIX_DUMMY_ROC_SIMULATION_H
2 #define RPIX_DUMMY_ROC_SIMULATION_H
3 
4 #include <set>
5 
7 
13 
15 public:
16  RPixDummyROCSimulator(const edm::ParameterSet &params, uint32_t det_id);
17 
18  void ConvertChargeToHits(const std::map<unsigned short, double> &signals,
19  std::map<unsigned short, std::vector<std::pair<int, double> > > &theSignalProvenance,
20  std::vector<CTPPSPixelDigi> &output_digi,
21  std::vector<std::vector<std::pair<int, double> > > &output_digi_links,
22  const CTPPSPixelGainCalibrations *pcalibration);
23 
24 private:
25  typedef std::set<unsigned short> dead_pixel_set;
26  static constexpr double highRangeCal_ = 1800.;
27  static constexpr double lowRangeCal_ = 260.;
28  static constexpr int maxADC_ = 255;
29 
30  uint32_t det_id_;
35  unsigned short pixels_no_;
36  double threshold_;
42 };
43 
44 #endif
RPixDummyROCSimulator::RPixDummyROCSimulator
RPixDummyROCSimulator(const edm::ParameterSet &params, uint32_t det_id)
Definition: RPixDummyROCSimulator.cc:7
RPixDummyROCSimulator::dead_pixels_
dead_pixel_set dead_pixels_
Definition: RPixDummyROCSimulator.h:33
CalibrationSummaryClient_cfi.params
params
Definition: CalibrationSummaryClient_cfi.py:14
RPixDummyROCSimulator::dead_pixel_set
std::set< unsigned short > dead_pixel_set
Definition: RPixDummyROCSimulator.h:25
RPixDummyROCSimulator
Definition: RPixDummyROCSimulator.h:14
RPixDummyROCSimulator::VcaltoElectronOffset_
int VcaltoElectronOffset_
Definition: RPixDummyROCSimulator.h:39
RPixDummyROCSimulator::highRangeCal_
static constexpr double highRangeCal_
Definition: RPixDummyROCSimulator.h:26
RPixDummyROCSimulator::maxADC_
static constexpr int maxADC_
Definition: RPixDummyROCSimulator.h:28
CTPPSPixelGainCalibrations.h
RPixDummyROCSimulator::doSingleCalibration_
bool doSingleCalibration_
Definition: RPixDummyROCSimulator.h:40
RPixDummyROCSimulator::links_persistence_
bool links_persistence_
Definition: RPixDummyROCSimulator.h:41
RPixDummyROCSimulator::VcaltoElectronGain_
int VcaltoElectronGain_
Definition: RPixDummyROCSimulator.h:38
RPixDummyROCSimulator::det_id_
uint32_t det_id_
Definition: RPixDummyROCSimulator.h:30
CTPPSPixelAnalysisMask.h
RPixDummyROCSimulator::verbosity_
int verbosity_
Definition: RPixDummyROCSimulator.h:34
edm::ParameterSet
Definition: ParameterSet.h:47
RPixDummyROCSimulator::electron_per_adc_
double electron_per_adc_
Definition: RPixDummyROCSimulator.h:37
CTPPSPixelGainCalibrations
Definition: CTPPSPixelGainCalibrations.h:8
trackerHitRTTI::vector
Definition: trackerHitRTTI.h:21
RPixDummyROCSimulator::dead_pixels_simulation_on_
bool dead_pixels_simulation_on_
Definition: RPixDummyROCSimulator.h:32
RPixDummyROCSimulator::lowRangeCal_
static constexpr double lowRangeCal_
Definition: RPixDummyROCSimulator.h:27
CTPPSPixelDigi.h
RPixDummyROCSimulator::dead_pixel_probability_
double dead_pixel_probability_
Definition: RPixDummyROCSimulator.h:31
RPixDummyROCSimulator::threshold_
double threshold_
Definition: RPixDummyROCSimulator.h:36
RPixDummyROCSimulator::ConvertChargeToHits
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)
Definition: RPixDummyROCSimulator.cc:20
RPixDummyROCSimulator::pixels_no_
unsigned short pixels_no_
Definition: RPixDummyROCSimulator.h:35
genParticles_cff.map
map
Definition: genParticles_cff.py:11
ParameterSet.h
CTPPSPixelGainCalibrationDBService.h
CTPPSPixelDigiCollection.h