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")),
32 <<
" collection and digitizer";
60 edm::LogVerbatim(
"TimeDigiInfo") <<
"[EcalTimeDigiProducer]::Accumulate Hits HS event";
73 edm::LogVerbatim(
"TimeDigiInfo") <<
"[EcalTimeDigiProducer]::Accumulate Hits for BC " <<
e.bunchCrossing();
79 std::unique_ptr<EcalTimeDigiCollection> barrelResult = std::make_unique<EcalTimeDigiCollection>();
89 edm::LogVerbatim(
"TimeDigiInfo") <<
"[EcalTimeDigiProducer]::EB Digi size " << barrelResult->size();
92 edm::LogInfo(
"TimeDigiInfo") <<
"EB time Digis: " << barrelResult->size();
95 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
void finalizeEvent(edm::Event &e, edm::EventSetup const &c) override
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 accumulate(edm::Event const &e, edm::EventSetup const &c) override
Log< level::Info, false > LogInfo
~EcalTimeDigiProducer() override
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