CMS 3D CMS Logo

RPHitChargeConverter.cc
Go to the documentation of this file.
7 
8 RPHitChargeConverter::RPHitChargeConverter(const edm::ParameterSet &params, CLHEP::HepRandomEngine &eng, RPDetId det_id)
9  : det_id_(det_id) {
10  verbosity_ = params.getParameter<int>("RPVerbosity");
11  theRPChargeDivider = std::make_unique<RPLinearChargeDivider>(params, eng, det_id);
12  theRPChargeCollectionDrifter = std::make_unique<RPLinearChargeCollectionDrifter>(params, det_id);
13  theRPInduceChargeOnStrips = std::make_unique<RPLinearInduceChargeOnStrips>(params, det_id);
14 }
15 
17 
20  if (verbosity_)
21  edm::LogInfo("HitChargeConverter") << det_id_ << " clouds no generated on the path=" << ions_along_path.size()
22  << "\n";
23  return theRPInduceChargeOnStrips->Induce(theRPChargeCollectionDrifter->Drift(ions_along_path));
24 }
std::unique_ptr< RPLinearChargeCollectionDrifter > theRPChargeCollectionDrifter
std::unique_ptr< RPLinearInduceChargeOnStrips > theRPInduceChargeOnStrips
uint32_t RPDetId
Definition: RPSimTypes.h:12
Log< level::Info, false > LogInfo
std::map< unsigned short, double > strip_charge_map
Definition: RPSimTypes.h:15
simromanpot::strip_charge_map processHit(const PSimHit &hit)
std::unique_ptr< RPLinearChargeDivider > theRPChargeDivider
RPHitChargeConverter(const edm::ParameterSet &params_, CLHEP::HepRandomEngine &eng, RPDetId det_id)
std::vector< RPEnergyDepositUnit > energy_path_distribution
Definition: RPSimTypes.h:17