|
|
Go to the documentation of this file.
20 m_EBdigiCollection(
params.getParameter<
std::
string>(
"EBtimeDigiCollection")),
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
74 std::cout <<
"[EcalTimeDigiProducer]::Accumulate Hits for BC " <<
e.bunchCrossing() << std::endl;
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;
bool check(const edm::EventSetup &iSetup)
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
const edm::ESGetToken< CaloGeometry, CaloGeometryRecord > m_geometryToken
Log< level::Info, false > LogInfo
void setGeometry(const CaloSubdetectorGeometry *geometry)
void setTimeLayerId(const int &layerId)
const edm::InputTag m_hitsProducerTagEB
edm::ESWatcher< CaloGeometryRecord > m_geometryWatcher
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
bool getData(T &iHolder) const
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 &)