20 m_EBdigiCollection(
params.getParameter<
std::
string>(
"EBtimeDigiCollection")),
22 m_hitsProducerTokenEB(sumes.consumes<
std::
vector<
PCaloHit>>(m_hitsProducerTagEB)),
24 m_timeLayerEB(
params.getParameter<
int>(
"timeLayerBarrel")),
26 m_componentWaveform(
params.getParameter<
bool>(
"componentWaveform")) {
35 <<
" collection and digitizer";
67 edm::LogVerbatim(
"TimeDigiInfo") <<
"[EcalTimeDigiProducer]::Accumulate Hits HS event";
83 edm::LogVerbatim(
"TimeDigiInfo") <<
"[EcalTimeDigiProducer]::Accumulate Hits for BC " <<
e.bunchCrossing();
92 std::unique_ptr<EcalTimeDigiCollection> barrelResult = std::make_unique<EcalTimeDigiCollection>();
102 edm::LogVerbatim(
"TimeDigiInfo") <<
"[EcalTimeDigiProducer]::EB Digi size " << barrelResult->size();
105 edm::LogInfo(
"TimeDigiInfo") <<
"EB time Digis: " << barrelResult->size();
108 edm::LogVerbatim(
"TimeDigiInfo") <<
"[EcalTimeDigiProducer]::putting EcalTimeDigiCollection into the event ";
void initializeEvent(edm::Event const &e, edm::EventSetup const &c) override
Log< level::Info, true > LogVerbatim
ComponentShapeCollection * m_ComponentShapes
void finalizeEvent(edm::Event &e, edm::EventSetup const &c) override
const bool m_componentWaveform
void run(EcalTimeDigiCollection &output)
ProductRegistryHelper::BranchAliasSetterT< ProductType > produces()
const edm::ESGetToken< CaloGeometry, CaloGeometryRecord > m_geometryToken
T const * product() const
EcalTimeDigiProducer(const edm::ParameterSet ¶ms, edm::ProducesCollector, edm::ConsumesCollector &)
void setGeometry(const CaloSubdetectorGeometry *geometry)
edm::ESWatcher< CaloGeometryRecord > m_geometryWatcher
void setTimeLayerId(const int &layerId)
const edm::EDGetTokenT< std::vector< PCaloHit > > m_hitsProducerTokenEB
const edm::InputTag m_hitsProducerTagEB
void setEventSetup(const edm::EventSetup &evtSetup)
void accumulate(edm::Event const &e, edm::EventSetup const &c) override
Log< level::Info, false > LogInfo
~EcalTimeDigiProducer() override
void setEventSetup(const edm::EventSetup &eventSetup)
EcalTimeMapDigitizer * m_BarrelDigitizer
bool check(const edm::EventSetup &iSetup)
void add(const std::vector< PCaloHit > &hits, int bunchCrossing)
const CaloGeometry * m_Geometry
void accumulateCaloHits(HitsHandle const &ebHandle, int bunchCrossing)
const CaloSubdetectorGeometry * getSubdetectorGeometry(const DetId &id) const
access the subdetector geometry for the given subdetector directly
void checkGeometry(const edm::EventSetup &eventSetup)
const std::string m_EBdigiCollection