|
|
Go to the documentation of this file.
22 m_EBdigiCollection(
params.getParameter<
std::
string>(
"EBtimeDigiCollection")),
24 m_hitsProducerTokenEB(sumes.consumes<
std::
vector<
PCaloHit>>(m_hitsProducerTagEB)),
25 m_timeLayerEB(
params.getParameter<
int>(
"timeLayerBarrel")),
31 #ifdef ecal_time_debug
33 <<
" collection and digitizer" << std::endl;
61 #ifdef ecal_time_debug
62 std::cout <<
"[EcalTimeDigiProducer]::Accumulate Hits HS event" << std::endl;
74 #ifdef ecal_time_debug
75 std::cout <<
"[EcalTimeDigiProducer]::Accumulate Hits for BC " <<
e.bunchCrossing() << std::endl;
81 std::unique_ptr<EcalTimeDigiCollection> barrelResult = std::make_unique<EcalTimeDigiCollection>();
83 #ifdef ecal_time_debug
84 std::cout <<
"[EcalTimeDigiProducer]::finalizeEvent" << std::endl;
90 #ifdef ecal_time_debug
91 std::cout <<
"[EcalTimeDigiProducer]::EB Digi size " << barrelResult->size() << std::endl;
94 edm::LogInfo(
"TimeDigiInfo") <<
"EB time Digis: " << barrelResult->size();
96 #ifdef ecal_time_debug
97 std::cout <<
"[EcalTimeDigiProducer]::putting EcalTimeDigiCollection into the event " << std::endl;
void initializeEvent(edm::Event const &e, edm::EventSetup const &c) override
const CaloGeometry * m_Geometry
void run(EcalTimeDigiCollection &output)
T const * product() const
const CaloSubdetectorGeometry * getSubdetectorGeometry(const DetId &id) const
access the subdetector geometry for the given subdetector directly
Log< level::Info, false > LogInfo
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()
EcalTimeMapDigitizer * m_BarrelDigitizer
void accumulate(edm::Event const &e, edm::EventSetup const &c) override
void accumulateCaloHits(HitsHandle const &ebHandle, int bunchCrossing)
void checkGeometry(const edm::EventSetup &eventSetup)
void finalizeEvent(edm::Event &e, edm::EventSetup const &c) override
const std::string m_EBdigiCollection
EcalTimeDigiProducer(const edm::ParameterSet ¶ms, edm::ProducesCollector, edm::ConsumesCollector &)