Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-09-02 03:46:08

0001 #ifndef EcalSimAlgos_EEShape_h
0002 #define EcalSimAlgos_EEShape_h
0003 
0004 #include "FWCore/Framework/interface/ConsumesCollector.h"
0005 #include "SimCalorimetry/EcalSimAlgos/interface/EcalShapeBase.h"
0006 
0007 class EEShape : public EcalShapeBase {
0008 public:
0009   // useDB = false
0010   EEShape() : EcalShapeBase(false) { buildMe(); }
0011   // useDB = true, buildMe is executed when setEventSetup and DB conditions are available
0012   EEShape(edm::ConsumesCollector iC) : EcalShapeBase(true), espsToken_(iC.esConsumes()) {}
0013 
0014 protected:
0015   void fillShape(float& time_interval,
0016                  double& m_thresh,
0017                  EcalShapeBase::DVec& aVec,
0018                  const edm::EventSetup* es) const override;
0019 
0020 private:
0021   edm::ESGetToken<EcalSimPulseShape, EcalSimPulseShapeRcd> espsToken_;
0022 };
0023 
0024 #endif