26 m_EBdigiCollection ( params.getParameter<
std::
string>(
"EBtimeDigiCollection") ) ,
27 m_EEdigiCollection ( params.getParameter<
std::
string>(
"EEtimeDigiCollection") ) ,
28 m_hitsProducerTagEB ( params.getParameter<
edm::InputTag>(
"hitsProducerEB" ) ) ,
29 m_hitsProducerTagEE ( params.getParameter<
edm::InputTag>(
"hitsProducerEE" ) ) ,
30 m_hitsProducerTokenEB ( sumes.consumes<
std::vector<
PCaloHit> >( m_hitsProducerTagEB) ) ,
31 m_hitsProducerTokenEE ( sumes.consumes<
std::vector<
PCaloHit> >( m_hitsProducerTagEE) ) ,
32 m_timeLayerEB ( params.getParameter<
int> (
"timeLayerBarrel") ),
33 m_timeLayerEE ( params.getParameter<
int> (
"timeLayerEndcap") ),
42 #ifdef ecal_time_debug 85 #ifdef ecal_time_debug 86 std::cout <<
"[EcalTimeDigiProducer]::Accumulate Hits HS event" << std::endl;
100 #ifdef ecal_time_debug 111 #ifdef ecal_time_debug 112 std::cout <<
"[EcalTimeDigiProducer]::finalizeEvent" << std::endl;
118 #ifdef ecal_time_debug 119 std::cout <<
"[EcalTimeDigiProducer]::EB Digi size " << barrelResult->size() << std::endl;
122 edm::LogInfo(
"TimeDigiInfo") <<
"EB time Digis: " << barrelResult->size() ;
126 #ifdef ecal_time_debug 127 std::cout <<
"[EcalTimeDigiProducer]::EE Digi size " << endcapResult->size() << std::endl;
130 edm::LogInfo(
"TimeDigiInfo") <<
"EE Digis: " << endcapResult->size() ;
132 #ifdef ecal_time_debug 133 std::cout <<
"[EcalTimeDigiProducer]::putting collections 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
EcalTimeMapDigitizer * m_EndcapDigitizer
const edm::EDGetTokenT< std::vector< PCaloHit > > m_hitsProducerTokenEE
void finalizeEvent(edm::Event &e, edm::EventSetup const &c) override
void run(EcalTimeDigiCollection &output)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
EcalTimeDigiProducer(const edm::ParameterSet ¶ms, edm::stream::EDProducerBase &mixMod, edm::ConsumesCollector &)
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