CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
RPixHitChargeConverter Class Reference

#include <RPixHitChargeConverter.h>

Public Member Functions

std::map< unsigned short, double > processHit (const PSimHit &hit)
 
 RPixHitChargeConverter (const edm::ParameterSet &params_, CLHEP::HepRandomEngine &eng, uint32_t det_id)
 
 ~RPixHitChargeConverter ()=default
 

Private Attributes

const uint32_t det_id_
 
std::unique_ptr< RPixLinearChargeCollectionDriftertheRPixChargeCollectionDrifter
 
std::unique_ptr< RPixLinearChargeDividertheRPixChargeDivider
 
std::unique_ptr< RPixChargeSharetheRPixChargeShare
 
int verbosity_
 

Detailed Description

Definition at line 9 of file RPixHitChargeConverter.h.

Constructor & Destructor Documentation

◆ RPixHitChargeConverter()

RPixHitChargeConverter::RPixHitChargeConverter ( const edm::ParameterSet params_,
CLHEP::HepRandomEngine &  eng,
uint32_t  det_id 
)

Definition at line 7 of file RPixHitChargeConverter.cc.

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 }

References CalibrationSummaryClient_cfi::params, theRPixChargeCollectionDrifter, theRPixChargeDivider, theRPixChargeShare, and verbosity_.

◆ ~RPixHitChargeConverter()

RPixHitChargeConverter::~RPixHitChargeConverter ( )
default

Member Function Documentation

◆ processHit()

std::map< unsigned short, double > RPixHitChargeConverter::processHit ( const PSimHit hit)

Definition at line 17 of file RPixHitChargeConverter.cc.

17  {
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 }

References det_id_, theRPixChargeCollectionDrifter, theRPixChargeDivider, theRPixChargeShare, and verbosity_.

Member Data Documentation

◆ det_id_

const uint32_t RPixHitChargeConverter::det_id_
private

Definition at line 17 of file RPixHitChargeConverter.h.

Referenced by processHit().

◆ theRPixChargeCollectionDrifter

std::unique_ptr<RPixLinearChargeCollectionDrifter> RPixHitChargeConverter::theRPixChargeCollectionDrifter
private

Definition at line 19 of file RPixHitChargeConverter.h.

Referenced by processHit(), and RPixHitChargeConverter().

◆ theRPixChargeDivider

std::unique_ptr<RPixLinearChargeDivider> RPixHitChargeConverter::theRPixChargeDivider
private

Definition at line 18 of file RPixHitChargeConverter.h.

Referenced by processHit(), and RPixHitChargeConverter().

◆ theRPixChargeShare

std::unique_ptr<RPixChargeShare> RPixHitChargeConverter::theRPixChargeShare
private

Definition at line 20 of file RPixHitChargeConverter.h.

Referenced by processHit(), and RPixHitChargeConverter().

◆ verbosity_

int RPixHitChargeConverter::verbosity_
private

Definition at line 21 of file RPixHitChargeConverter.h.

Referenced by processHit(), and RPixHitChargeConverter().

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
RPixHitChargeConverter::theRPixChargeDivider
std::unique_ptr< RPixLinearChargeDivider > theRPixChargeDivider
Definition: RPixHitChargeConverter.h:18
RPixHitChargeConverter::theRPixChargeCollectionDrifter
std::unique_ptr< RPixLinearChargeCollectionDrifter > theRPixChargeCollectionDrifter
Definition: RPixHitChargeConverter.h:19
hit
Definition: SiStripHitEffFromCalibTree.cc:88