CMS 3D CMS Logo

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

#include <EcalSimParameterMap.h>

Inheritance diagram for EcalSimParameterMap:
CaloVSimParameterMap

Public Member Functions

 EcalSimParameterMap ()
 ctor More...
 
 EcalSimParameterMap (double simHitToPhotoelectronsBarrel, double simHitToPhotoelectronsEndcap, double photoelectronsToAnalogBarrel, double photoelectronsToAnalogEndcap, double samplingFactor, double timePhase, int readoutFrameSize, int binOfMaximum, bool doPhotostatistics, bool syncPhase)
 
const CaloSimParameterssimParameters (const DetId &id) const override
 return the sim parameters relative to the right subdet More...
 
 ~EcalSimParameterMap () override
 dtor More...
 
- Public Member Functions inherited from CaloVSimParameterMap
virtual ~CaloVSimParameterMap ()=default
 

Private Attributes

CaloSimParameters theBarrelParameters
 EB. More...
 
CaloSimParameters theEndcapParameters
 EE. More...
 
CaloSimParameters theESParameters
 ES. More...
 

Detailed Description

Definition at line 11 of file EcalSimParameterMap.h.

Constructor & Destructor Documentation

◆ EcalSimParameterMap() [1/2]

EcalSimParameterMap::EcalSimParameterMap ( )

ctor

Relevant constants are: 4.5 photoelectrons per MeV (J. Nash's slides) APD gain 50, but analog signal stays in GeV Account for excess noise factor

Definition at line 12 of file EcalSimParameterMap.cc.

13  : theBarrelParameters(2250., 1. / 2250., 1., 0, 10, 6, true, true),
14  theEndcapParameters(1800., 1. / 1800., 1., 0, 10, 6, true, true),
15  theESParameters(1., 1., 1., 20., 3, 2, false, true) {}

◆ EcalSimParameterMap() [2/2]

EcalSimParameterMap::EcalSimParameterMap ( double  simHitToPhotoelectronsBarrel,
double  simHitToPhotoelectronsEndcap,
double  photoelectronsToAnalogBarrel,
double  photoelectronsToAnalogEndcap,
double  samplingFactor,
double  timePhase,
int  readoutFrameSize,
int  binOfMaximum,
bool  doPhotostatistics,
bool  syncPhase 
)

◆ ~EcalSimParameterMap()

EcalSimParameterMap::~EcalSimParameterMap ( )
inlineoverride

dtor

Definition at line 26 of file EcalSimParameterMap.h.

26 {}

Member Function Documentation

◆ simParameters()

const CaloSimParameters & EcalSimParameterMap::simParameters ( const DetId id) const
overridevirtual

return the sim parameters relative to the right subdet

Implements CaloVSimParameterMap.

Definition at line 52 of file EcalSimParameterMap.cc.

52  {
53  if (EcalSubdetector(detId.subdetId()) == EcalBarrel)
54  return theBarrelParameters;
55  else if (EcalSubdetector(detId.subdetId()) == EcalEndcap)
56  return theEndcapParameters;
57  else
58  return theESParameters;
59 }

References EcalBarrel, EcalEndcap, DetId::subdetId(), theBarrelParameters, theEndcapParameters, and theESParameters.

Referenced by EcalElectronicsSim::amplify(), EcalDccWeightBuilder::computeAllWeights(), and EcalMixingModuleValidation::computeSDBunchDigi().

Member Data Documentation

◆ theBarrelParameters

CaloSimParameters EcalSimParameterMap::theBarrelParameters
private

EB.

Definition at line 33 of file EcalSimParameterMap.h.

Referenced by simParameters().

◆ theEndcapParameters

CaloSimParameters EcalSimParameterMap::theEndcapParameters
private

EE.

Definition at line 35 of file EcalSimParameterMap.h.

Referenced by simParameters().

◆ theESParameters

CaloSimParameters EcalSimParameterMap::theESParameters
private

ES.

Definition at line 37 of file EcalSimParameterMap.h.

Referenced by simParameters().

EcalSimParameterMap::theBarrelParameters
CaloSimParameters theBarrelParameters
EB.
Definition: EcalSimParameterMap.h:33
ecalSimParameterMap_cff.syncPhase
syncPhase
Definition: ecalSimParameterMap_cff.py:11
ecalSimParameterMap_cff.photoelectronsToAnalogEndcap
photoelectronsToAnalogEndcap
Definition: ecalSimParameterMap_cff.py:4
ecalSimParameterMap_cff.samplingFactor
samplingFactor
Definition: ecalSimParameterMap_cff.py:8
EcalSubdetector
EcalSubdetector
Definition: EcalSubdetector.h:10
ecalSimParameterMap_cff.photoelectronsToAnalogBarrel
photoelectronsToAnalogBarrel
Definition: ecalSimParameterMap_cff.py:13
EcalBarrel
Definition: EcalSubdetector.h:10
EcalEndcap
Definition: EcalSubdetector.h:10
ecalSimParameterMap_cff.timePhase
timePhase
Definition: ecalSimParameterMap_cff.py:9
EcalSimParameterMap::theESParameters
CaloSimParameters theESParameters
ES.
Definition: EcalSimParameterMap.h:37
ecalEBTriggerPrimitiveDigis_cfi.binOfMaximum
binOfMaximum
Definition: ecalEBTriggerPrimitiveDigis_cfi.py:9
ecalSimParameterMap_cff.readoutFrameSize
readoutFrameSize
Definition: ecalSimParameterMap_cff.py:5
ecalSimParameterMap_cff.simHitToPhotoelectronsBarrel
simHitToPhotoelectronsBarrel
Definition: ecalSimParameterMap_cff.py:10
EcalSimParameterMap::theEndcapParameters
CaloSimParameters theEndcapParameters
EE.
Definition: EcalSimParameterMap.h:35
ecalSimParameterMap_cff.doPhotostatistics
doPhotostatistics
Definition: ecalSimParameterMap_cff.py:12
ecalSimParameterMap_cff.simHitToPhotoelectronsEndcap
simHitToPhotoelectronsEndcap
Definition: ecalSimParameterMap_cff.py:7