SimPPS
PPSPixelDigiProducer
src
RPixHitChargeConverter.cc
Go to the documentation of this file.
1
#include "
SimPPS/PPSPixelDigiProducer/interface/RPixHitChargeConverter.h
"
2
3
RPixHitChargeConverter::RPixHitChargeConverter
(
const
edm::ParameterSet
&
params
,
4
CLHEP::HepRandomEngine &eng,
5
uint32_t det_id,
6
const
PPSPixelTopology
&ppt)
7
: det_id_(det_id) {
8
verbosity_
=
params
.getParameter<
int
>(
"RPixVerbosity"
);
9
theRPixChargeDivider
= std::make_unique<RPixLinearChargeDivider>(
params
, eng, det_id);
10
theRPixChargeCollectionDrifter
= std::make_unique<RPixLinearChargeCollectionDrifter>(
params
, det_id, ppt);
11
theRPixChargeShare
= std::make_unique<RPixChargeShare>(
params
, det_id, ppt);
12
}
13
14
std::map<unsigned short, double>
RPixHitChargeConverter::processHit
(
const
PSimHit
&
hit
,
const
PPSPixelTopology
&ppt) {
15
std::vector<RPixEnergyDepositUnit> ions_along_path =
theRPixChargeDivider
->divide(
hit
);
16
if
(
verbosity_
)
17
edm::LogInfo
(
"PPS"
) <<
"RPixHitChargeConverter "
<<
det_id_
18
<<
" clouds no generated on the path="
<< ions_along_path.size();
19
return
theRPixChargeShare
->Share(
theRPixChargeCollectionDrifter
->Drift(ions_along_path), ppt);
20
}
RPixHitChargeConverter::verbosity_
int verbosity_
Definition:
RPixHitChargeConverter.h:25
RPixHitChargeConverter::processHit
std::map< unsigned short, double > processHit(const PSimHit &hit, const PPSPixelTopology &ppt)
Definition:
RPixHitChargeConverter.cc:14
RPixHitChargeConverter::det_id_
const uint32_t det_id_
Definition:
RPixHitChargeConverter.h:21
RPixHitChargeConverter::theRPixChargeShare
std::unique_ptr< RPixChargeShare > theRPixChargeShare
Definition:
RPixHitChargeConverter.h:24
CalibrationSummaryClient_cfi.params
params
Definition:
CalibrationSummaryClient_cfi.py:14
edm::LogInfo
Log< level::Info, false > LogInfo
Definition:
MessageLogger.h:125
edm::ParameterSet
Definition:
ParameterSet.h:47
RPixHitChargeConverter::theRPixChargeDivider
std::unique_ptr< RPixLinearChargeDivider > theRPixChargeDivider
Definition:
RPixHitChargeConverter.h:22
RPixHitChargeConverter::RPixHitChargeConverter
RPixHitChargeConverter(const edm::ParameterSet ¶ms_, CLHEP::HepRandomEngine &eng, uint32_t det_id, const PPSPixelTopology &ppt)
Definition:
RPixHitChargeConverter.cc:3
RPixHitChargeConverter.h
PPSPixelTopology
Definition:
PPSPixelTopology.h:22
RPixHitChargeConverter::theRPixChargeCollectionDrifter
std::unique_ptr< RPixLinearChargeCollectionDrifter > theRPixChargeCollectionDrifter
Definition:
RPixHitChargeConverter.h:23
PSimHit
Definition:
PSimHit.h:15
hit
Definition:
SiStripHitEffFromCalibTree.cc:88
Generated for CMSSW Reference Manual by
1.8.16