37 event.getByToken(
EB_token, pEBDigis);
39 fullBarrelDigis = pEBDigis.
product();
40 edm::LogInfo(
"ZeroSuppressionInfo") <<
"total # fullBarrelDigis: " << fullBarrelDigis->
size();
45 event.getByToken(
EE_token, pEEDigis);
47 fullEndcapDigis = pEEDigis.
product();
48 edm::LogInfo(
"ZeroSuppressionInfo") <<
"total # fullEndcapDigis: " << fullEndcapDigis->
size();
62 if (fullBarrelDigis) {
67 (*gzsBarrelDigis).push_back(digiItr->id(), digiItr->begin());
70 edm::LogInfo(
"ZeroSuppressionInfo") <<
"EB Digis: " << gzsBarrelDigis->size();
83 if (fullEndcapDigis) {
88 (*gzsEndcapDigis).push_back(digiItr->id(), digiItr->begin());
91 edm::LogInfo(
"ZeroSuppressionInfo") <<
"EB Digis: " << gzsBarrelDigis->size();
std::string digiProducer_
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
boost::transform_iterator< IterHelp, boost::counting_iterator< int > > const_iterator
void produce(edm::Event &event, const edm::EventSetup &eventSetup) override
double glbEndcapThreshold_
void setPedestals(const EcalPedestals *pedestals)
can be fetched every event from the EventSetup
~EcalZeroSuppressionProducer() override
std::string EEdigiCollection_
EcalZeroSuppressor< EBDataFrame > theBarrelZeroSuppressor_
bool accept(const C &frame, const double &threshold)
std::string EBZSdigiCollection_
void initCalibrations(const edm::EventSetup &eventSetup)
edm::EDGetTokenT< EEDigiCollection > EE_token
EcalZeroSuppressionProducer(const edm::ParameterSet ¶ms)
edm::EDGetTokenT< EBDigiCollection > EB_token
EcalZeroSuppressor< EEDataFrame > theEndcapZeroSuppressor_
T const * product() const
std::string EEZSdigiCollection_
std::string EBdigiCollection_
double glbBarrelThreshold_
T const * product() const