Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:28:32

0001 #ifndef EcalSimAlgos_EcalSimParameterMap_h
0002 #define EcalSimAlgos_EcalSimParameterMap_h
0003 
0004 #include "SimCalorimetry/CaloSimAlgos/interface/CaloVSimParameterMap.h"
0005 #include "SimCalorimetry/CaloSimAlgos/interface/CaloSimParameters.h"
0006 
0007 /* \class EcalSimParametersMap
0008  * \brief map of parameters for the ECAL (EE, EB, preshower) simulation
0009  *
0010  */
0011 class EcalSimParameterMap : public CaloVSimParameterMap {
0012 public:
0013   /// ctor
0014   EcalSimParameterMap();
0015   EcalSimParameterMap(double simHitToPhotoelectronsBarrel,
0016                       double simHitToPhotoelectronsEndcap,
0017                       double photoelectronsToAnalogBarrel,
0018                       double photoelectronsToAnalogEndcap,
0019                       double samplingFactor,
0020                       double timePhase,
0021                       int readoutFrameSize,
0022                       int binOfMaximum,
0023                       bool doPhotostatistics,
0024                       bool syncPhase);
0025   /// dtor
0026   ~EcalSimParameterMap() override {}
0027 
0028   /// return the sim parameters relative to the right subdet
0029   const CaloSimParameters& simParameters(const DetId& id) const override;
0030 
0031 private:
0032   /// EB
0033   CaloSimParameters theBarrelParameters;
0034   /// EE
0035   CaloSimParameters theEndcapParameters;
0036   /// ES
0037   CaloSimParameters theESParameters;
0038 };
0039 
0040 #endif