43 event.getByToken(
EB_token, pEBDigis);
45 fullBarrelDigis = pEBDigis.
product();
46 edm::LogInfo(
"ZeroSuppressionInfo") <<
"total # fullBarrelDigis: " << fullBarrelDigis->
size() ;
51 event.getByToken(
EE_token, pEEDigis);
53 fullEndcapDigis = pEEDigis.
product();
54 edm::LogInfo(
"ZeroSuppressionInfo") <<
"total # fullEndcapDigis: " << fullEndcapDigis->
size() ;
68 if (fullBarrelDigis) {
71 digiItr != (*fullBarrelDigis).end(); ++digiItr)
76 (*gzsBarrelDigis).push_back(digiItr->id(), digiItr->begin());
80 edm::LogInfo(
"ZeroSuppressionInfo") <<
"EB Digis: " << gzsBarrelDigis->size();
93 if (fullEndcapDigis) {
96 digiItr != (*fullEndcapDigis).end(); ++digiItr)
101 (*gzsEndcapDigis).push_back(digiItr->id(), digiItr->begin());
105 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