20 m_EBdigiCollection(params.getParameter<std::
string>(
"EBtimeDigiCollection")),
21 m_hitsProducerTagEB(params.getParameter<edm::
InputTag>(
"hitsProducerEB")),
22 m_hitsProducerTokenEB(sumes.consumes<std::
vector<
PCaloHit>>(m_hitsProducerTagEB)),
24 m_timeLayerEB(params.getParameter<int>(
"timeLayerBarrel")),
30 #ifdef ecal_time_debug
32 <<
" collection and digitizer" << std::endl;
60 #ifdef ecal_time_debug
61 std::cout <<
"[EcalTimeDigiProducer]::Accumulate Hits HS event" << std::endl;
73 #ifdef ecal_time_debug
80 std::unique_ptr<EcalTimeDigiCollection> barrelResult = std::make_unique<EcalTimeDigiCollection>();
82 #ifdef ecal_time_debug
83 std::cout <<
"[EcalTimeDigiProducer]::finalizeEvent" << std::endl;
89 #ifdef ecal_time_debug
90 std::cout <<
"[EcalTimeDigiProducer]::EB Digi size " << barrelResult->size() << std::endl;
93 edm::LogInfo(
"TimeDigiInfo") <<
"EB time Digis: " << barrelResult->size();
95 #ifdef ecal_time_debug
96 std::cout <<
"[EcalTimeDigiProducer]::putting EcalTimeDigiCollection into the event " << std::endl;
int bunchCrossing() const
void initializeEvent(edm::Event const &e, edm::EventSetup const &c) override
const CaloSubdetectorGeometry * getSubdetectorGeometry(const DetId &id) const
access the subdetector geometry for the given subdetector directly
void finalizeEvent(edm::Event &e, edm::EventSetup const &c) override
void run(EcalTimeDigiCollection &output)
ProductRegistryHelper::BranchAliasSetterT< ProductType > produces()
bool getByToken(EDGetToken token, Handle< PROD > &result) const
const edm::ESGetToken< CaloGeometry, CaloGeometryRecord > m_geometryToken
EcalTimeDigiProducer(const edm::ParameterSet ¶ms, edm::ProducesCollector, edm::ConsumesCollector &)
void setGeometry(const CaloSubdetectorGeometry *geometry)
edm::ESWatcher< CaloGeometryRecord > m_geometryWatcher
bool getData(T &iHolder) const
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
T const * product() const
EcalTimeMapDigitizer * m_BarrelDigitizer
bool check(const edm::EventSetup &iSetup)
void add(const std::vector< PCaloHit > &hits, int bunchCrossing)
bool getByLabel(edm::InputTag const &tag, edm::Handle< T > &result) const
const CaloGeometry * m_Geometry
void accumulateCaloHits(HitsHandle const &ebHandle, int bunchCrossing)
void checkGeometry(const edm::EventSetup &eventSetup)
const std::string m_EBdigiCollection