|
|
Go to the documentation of this file.
27 m_EBdigiCollection(
params.getParameter<
std::
string>(
"EBtimeDigiCollection")),
28 m_EEdigiCollection(
params.getParameter<
std::
string>(
"EEtimeDigiCollection")),
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
100 std::cout <<
"[EcalTimeDigiProducer]::Accumulate Hits for BC " <<
e.bunchCrossing() << std::endl;
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;
void initializeEvent(edm::Event const &e, edm::EventSetup const &c) override
const CaloGeometry * m_Geometry
void run(EcalTimeDigiCollection &output)
const edm::EDGetTokenT< std::vector< PCaloHit > > m_hitsProducerTokenEE
T const * product() const
void accumulateCaloHits(HitsHandle const &ebHandle, HitsHandle const &eeHandle, int bunchCrossing)
const std::string m_EEdigiCollection
const CaloSubdetectorGeometry * getSubdetectorGeometry(const DetId &id) const
access the subdetector geometry for the given subdetector directly
void setGeometry(const CaloSubdetectorGeometry *geometry)
void setTimeLayerId(const int &layerId)
const edm::InputTag m_hitsProducerTagEB
void add(const std::vector< PCaloHit > &hits, int bunchCrossing)
const edm::EDGetTokenT< std::vector< PCaloHit > > m_hitsProducerTokenEB
~EcalTimeDigiProducer() override
ProductRegistryHelper::BranchAliasSetterT< ProductType > produces()
edm::SortedCollection< EcalTimeDigi > EcalTimeDigiCollection
EcalTimeMapDigitizer * m_BarrelDigitizer
void accumulate(edm::Event const &e, edm::EventSetup const &c) override
void checkGeometry(const edm::EventSetup &eventSetup)
void finalizeEvent(edm::Event &e, edm::EventSetup const &c) override
EcalTimeMapDigitizer * m_EndcapDigitizer
const std::string m_EBdigiCollection
const edm::InputTag m_hitsProducerTagEE
EcalTimeDigiProducer(const edm::ParameterSet ¶ms, edm::ProducesCollector, edm::ConsumesCollector &)