27 m_EBdigiCollection(params.getParameter<
std::
string>(
"EBtimeDigiCollection")),
28 m_EEdigiCollection(params.getParameter<
std::
string>(
"EEtimeDigiCollection")),
29 m_hitsProducerTagEB(params.getParameter<
edm::InputTag>(
"hitsProducerEB")),
30 m_hitsProducerTagEE(params.getParameter<
edm::InputTag>(
"hitsProducerEE")),
31 m_hitsProducerTokenEB(sumes.consumes<
std::vector<
PCaloHit>>(m_hitsProducerTagEB)),
32 m_hitsProducerTokenEE(sumes.consumes<
std::vector<
PCaloHit>>(m_hitsProducerTagEE)),
33 m_timeLayerEB(params.getParameter<
int>(
"timeLayerBarrel")),
34 m_timeLayerEE(params.getParameter<
int>(
"timeLayerEndcap")),
42 #ifdef ecal_time_debug 44 <<
" collections and digitizers" << std::endl;
83 #ifdef ecal_time_debug 84 std::cout <<
"[EcalTimeDigiProducer]::Accumulate Hits HS event" << std::endl;
99 #ifdef ecal_time_debug 109 #ifdef ecal_time_debug 110 std::cout <<
"[EcalTimeDigiProducer]::finalizeEvent" << std::endl;
116 #ifdef ecal_time_debug 117 std::cout <<
"[EcalTimeDigiProducer]::EB Digi size " << barrelResult->size() << std::endl;
120 edm::LogInfo(
"TimeDigiInfo") <<
"EB time Digis: " << barrelResult->size();
124 #ifdef ecal_time_debug 125 std::cout <<
"[EcalTimeDigiProducer]::EE Digi size " << endcapResult->size() << std::endl;
128 edm::LogInfo(
"TimeDigiInfo") <<
"EE Digis: " << endcapResult->size();
130 #ifdef ecal_time_debug 131 std::cout <<
"[EcalTimeDigiProducer]::putting collections into the event " << std::endl;
BranchAliasSetterT< ProductType > produces()
declare what type of product will make and with which optional label
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
EcalTimeMapDigitizer * m_EndcapDigitizer
const edm::EDGetTokenT< std::vector< PCaloHit > > m_hitsProducerTokenEE
void finalizeEvent(edm::Event &e, edm::EventSetup const &c) override
EcalTimeDigiProducer(const edm::ParameterSet ¶ms, edm::ProducerBase &mixMod, edm::ConsumesCollector &)
void run(EcalTimeDigiCollection &output)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void setGeometry(const CaloSubdetectorGeometry *geometry)
void accumulateCaloHits(HitsHandle const &ebHandle, HitsHandle const &eeHandle, int bunchCrossing)
void setTimeLayerId(const int &layerId)
const edm::EDGetTokenT< std::vector< PCaloHit > > m_hitsProducerTokenEB
const edm::InputTag m_hitsProducerTagEB
const std::string m_EEdigiCollection
edm::SortedCollection< EcalTimeDigi > EcalTimeDigiCollection
void accumulate(edm::Event const &e, edm::EventSetup const &c) override
~EcalTimeDigiProducer() override
T const * product() const
EcalTimeMapDigitizer * m_BarrelDigitizer
void add(const std::vector< PCaloHit > &hits, int bunchCrossing)
bool getByLabel(edm::InputTag const &tag, edm::Handle< T > &result) const
const CaloGeometry * m_Geometry
const edm::InputTag m_hitsProducerTagEE
void checkGeometry(const edm::EventSetup &eventSetup)
const std::string m_EBdigiCollection