CMS 3D CMS Logo

EcalSimParameterMap Class Reference

#include <SimCalorimetry/EcalSimAlgos/interface/EcalSimParameterMap.h>

Inheritance diagram for EcalSimParameterMap:

CaloVSimParameterMap

List of all members.

Public Member Functions

 EcalSimParameterMap (double simHitToPhotoelectronsBarrel, double simHitToPhotoelectronsEndcap, double photoelectronsToAnalogBarrel, double photoelectronsToAnalogEndcap, double samplingFactor, double timePhase, int readoutFrameSize, int binOfMaximum, bool doPhotostatistics, bool syncPhase)
 EcalSimParameterMap ()
 ctor
virtual const CaloSimParameterssimParameters (const DetId &id) const
 return the sim parameters relative to the right subdet
virtual ~EcalSimParameterMap ()
 dtor

Private Attributes

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


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.

00012                                          :
00013   theBarrelParameters(2250., 1./2250., 
00014                    1., 56.1, 
00015                    10, 6, true, true),
00016   theEndcapParameters( 1800., 1./1800., 
00017                    1., 56.1, 
00018                        10, 6, true, true),
00019   theESParameters(1., 1., 1., 20., 3, 2, false, true)
00020 {}

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.

00028                                                                                  : 
00029   theBarrelParameters(simHitToPhotoelectronsBarrel, photoelectronsToAnalogBarrel,
00030                       samplingFactor, timePhase, 
00031                       readoutFrameSize, binOfMaximum, doPhotostatistics, syncPhase),
00032   theEndcapParameters(simHitToPhotoelectronsEndcap, photoelectronsToAnalogEndcap, 
00033                       samplingFactor, timePhase, 
00034                       readoutFrameSize, binOfMaximum, doPhotostatistics, syncPhase),
00035   theESParameters(1., 1., 1., 20., 3, 2, false, syncPhase)
00036 {}

virtual EcalSimParameterMap::~EcalSimParameterMap (  )  [inline, virtual]

dtor

Definition at line 25 of file EcalSimParameterMap.h.

00025 {}


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(), EcalTPGParamBuilder::analyze(), EcalMixingModuleValidation::computeSDBunchDigi(), and EcalTBDigiProducer::setPhaseShift().

00046 {
00047   if (EcalSubdetector(detId.subdetId()) == EcalBarrel) 
00048     return theBarrelParameters;
00049   else if (EcalSubdetector(detId.subdetId()) == EcalEndcap)
00050     return theEndcapParameters;
00051   else 
00052     return theESParameters;
00053 }


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().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:19:54 2009 for CMSSW by  doxygen 1.5.4