CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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)
 
virtual const CaloSimParameterssimParameters (const DetId &id) const
 return the sim parameters relative to the right subdet More...
 
virtual ~EcalSimParameterMap ()
 dtor More...
 

Private Attributes

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

Detailed Description

Definition at line 12 of file EcalSimParameterMap.h.

Constructor & Destructor Documentation

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.

12  :
13  theBarrelParameters(2250., 1./2250.,
14  1., 0,
15  10, 6, true, true),
16  theEndcapParameters( 1800., 1./1800.,
17  1., 0,
18  10, 6, true, true),
19  theESParameters(1., 1., 1., 20., 3, 2, false, true)
20 {}
CaloSimParameters theEndcapParameters
EE.
CaloSimParameters theESParameters
ES.
CaloSimParameters theBarrelParameters
EB.
EcalSimParameterMap::EcalSimParameterMap ( double  simHitToPhotoelectronsBarrel,
double  simHitToPhotoelectronsEndcap,
double  photoelectronsToAnalogBarrel,
double  photoelectronsToAnalogEndcap,
double  samplingFactor,
double  timePhase,
int  readoutFrameSize,
int  binOfMaximum,
bool  doPhotostatistics,
bool  syncPhase 
)

Definition at line 22 of file EcalSimParameterMap.cc.

28  :
29  theBarrelParameters(simHitToPhotoelectronsBarrel, photoelectronsToAnalogBarrel,
30  samplingFactor, timePhase,
31  readoutFrameSize, binOfMaximum, doPhotostatistics, syncPhase),
32  theEndcapParameters(simHitToPhotoelectronsEndcap, photoelectronsToAnalogEndcap,
33  samplingFactor, timePhase,
34  readoutFrameSize, binOfMaximum, doPhotostatistics, syncPhase),
35  theESParameters(1., 1., 1., 20., 3, 2, false, syncPhase)
36 {}
CaloSimParameters theEndcapParameters
EE.
CaloSimParameters theESParameters
ES.
CaloSimParameters theBarrelParameters
EB.
virtual EcalSimParameterMap::~EcalSimParameterMap ( )
inlinevirtual

dtor

Definition at line 25 of file EcalSimParameterMap.h.

25 {}

Member Function Documentation

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

return the sim parameters relative to the right subdet

Implements CaloVSimParameterMap.

Definition at line 45 of file EcalSimParameterMap.cc.

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

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

46 {
47  if (EcalSubdetector(detId.subdetId()) == EcalBarrel)
48  return theBarrelParameters;
49  else if (EcalSubdetector(detId.subdetId()) == EcalEndcap)
50  return theEndcapParameters;
51  else
52  return theESParameters;
53 }
CaloSimParameters theEndcapParameters
EE.
CaloSimParameters theESParameters
ES.
CaloSimParameters theBarrelParameters
EB.
EcalSubdetector

Member Data Documentation

CaloSimParameters EcalSimParameterMap::theBarrelParameters
private

EB.

Definition at line 32 of file EcalSimParameterMap.h.

Referenced by simParameters().

CaloSimParameters EcalSimParameterMap::theEndcapParameters
private

EE.

Definition at line 34 of file EcalSimParameterMap.h.

Referenced by simParameters().

CaloSimParameters EcalSimParameterMap::theESParameters
private

ES.

Definition at line 36 of file EcalSimParameterMap.h.

Referenced by simParameters().