CMS 3D CMS Logo

RPixHitChargeConverter.cc
Go to the documentation of this file.
6 
8  CLHEP::HepRandomEngine &eng,
9  uint32_t det_id)
10  : det_id_(det_id) {
11  verbosity_ = params.getParameter<int>("RPixVerbosity");
12  theRPixChargeDivider = std::make_unique<RPixLinearChargeDivider>(params, eng, det_id);
13  theRPixChargeCollectionDrifter = std::make_unique<RPixLinearChargeCollectionDrifter>(params, det_id);
14  theRPixChargeShare = std::make_unique<RPixChargeShare>(params, det_id);
15 }
16 
17 std::map<unsigned short, double> RPixHitChargeConverter::processHit(const PSimHit &hit) {
18  std::vector<RPixEnergyDepositUnit> ions_along_path = theRPixChargeDivider->divide(hit);
19  if (verbosity_)
20  edm::LogInfo("RPixHitChargeConverter") << det_id_ << " clouds no generated on the path=" << ions_along_path.size();
21  return theRPixChargeShare->Share(theRPixChargeCollectionDrifter->Drift(ions_along_path));
22 }
RPixHitChargeConverter::verbosity_
int verbosity_
Definition: RPixHitChargeConverter.h:21
RPixHitChargeConverter::det_id_
const uint32_t det_id_
Definition: RPixHitChargeConverter.h:17
RPixHitChargeConverter::theRPixChargeShare
std::unique_ptr< RPixChargeShare > theRPixChargeShare
Definition: RPixHitChargeConverter.h:20
CalibrationSummaryClient_cfi.params
params
Definition: CalibrationSummaryClient_cfi.py:14
edm::LogInfo
Definition: MessageLogger.h:254
RPixLinearChargeDivider.h
RPixHitChargeConverter::RPixHitChargeConverter
RPixHitChargeConverter(const edm::ParameterSet &params_, CLHEP::HepRandomEngine &eng, uint32_t det_id)
Definition: RPixHitChargeConverter.cc:7
RPixChargeShare.h
RPixHitChargeConverter::processHit
std::map< unsigned short, double > processHit(const PSimHit &hit)
Definition: RPixHitChargeConverter.cc:17
edm::ParameterSet
Definition: ParameterSet.h:36
RPixLinearChargeCollectionDrifter.h
RPixHitChargeConverter::theRPixChargeDivider
std::unique_ptr< RPixLinearChargeDivider > theRPixChargeDivider
Definition: RPixHitChargeConverter.h:18
RPixHitChargeConverter.h
RPixHitChargeConverter::theRPixChargeCollectionDrifter
std::unique_ptr< RPixLinearChargeCollectionDrifter > theRPixChargeCollectionDrifter
Definition: RPixHitChargeConverter.h:19
LocalPoint.h
PSimHit
Definition: PSimHit.h:15
hit
Definition: SiStripHitEffFromCalibTree.cc:88