SimPPS
PPSPixelDigiProducer
src
RPixHitChargeConverter.cc
Go to the documentation of this file.
1
#include "
SimPPS/PPSPixelDigiProducer/interface/RPixHitChargeConverter.h
"
2
#include "
DataFormats/GeometryVector/interface/LocalPoint.h
"
3
#include "
SimPPS/PPSPixelDigiProducer/interface/RPixLinearChargeDivider.h
"
4
#include "
SimPPS/PPSPixelDigiProducer/interface/RPixLinearChargeCollectionDrifter.h
"
5
#include "
SimPPS/PPSPixelDigiProducer/interface/RPixChargeShare.h
"
6
7
RPixHitChargeConverter::RPixHitChargeConverter
(
const
edm::ParameterSet
&
params
,
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
RPixLinearChargeDivider.h
RPixHitChargeConverter::RPixHitChargeConverter
RPixHitChargeConverter(const edm::ParameterSet ¶ms_, CLHEP::HepRandomEngine &eng, uint32_t det_id)
Definition:
RPixHitChargeConverter.cc:7
edm::LogInfo
Log< level::Info, false > LogInfo
Definition:
MessageLogger.h:125
RPixChargeShare.h
RPixHitChargeConverter::processHit
std::map< unsigned short, double > processHit(const PSimHit &hit)
Definition:
RPixHitChargeConverter.cc:17
edm::ParameterSet
Definition:
ParameterSet.h:47
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
Generated for CMSSW Reference Manual by
1.8.16