5 : glbBarrelThreshold_(params.getUntrackedParameter<double>(
"glbBarrelThreshold", 0.2)),
6 glbEndcapThreshold_(params.getUntrackedParameter<double>(
"glbEndcapThreshold", 0.4)),
7 digiProducer_(params.getParameter<std::
string>(
"digiProducer")),
8 ebDigiCollection_(params.getParameter<std::
string>(
"EBdigiCollection")),
9 eeDigiCollection_(params.getParameter<std::
string>(
"EEdigiCollection")),
10 ebZSdigiCollection_(params.getParameter<std::
string>(
"EBZSdigiCollection")),
11 eeZSdigiCollection_(params.getParameter<std::
string>(
"EEZSdigiCollection")),
32 event.getByToken(
ebToken_, pEBDigis);
34 fullBarrelDigis = pEBDigis.
product();
35 edm::LogInfo(
"ZeroSuppressionInfo") <<
"total # fullBarrelDigis: " << fullBarrelDigis->
size();
40 event.getByToken(
eeToken_, pEEDigis);
42 fullEndcapDigis = pEEDigis.
product();
43 edm::LogInfo(
"ZeroSuppressionInfo") <<
"total # fullEndcapDigis: " << fullEndcapDigis->
size();
50 auto gzsBarrelDigis = std::make_unique<EBDigiCollection>();
51 auto gzsEndcapDigis = std::make_unique<EEDigiCollection>();
57 if (fullBarrelDigis) {
62 (*gzsBarrelDigis).push_back(digiItr->id(), digiItr->begin());
65 edm::LogInfo(
"ZeroSuppressionInfo") <<
"EB Digis: " << gzsBarrelDigis->size();
78 if (fullEndcapDigis) {
83 (*gzsEndcapDigis).push_back(digiItr->id(), digiItr->begin());
86 edm::LogInfo(
"ZeroSuppressionInfo") <<
"EB Digis: " << gzsBarrelDigis->size();
void produce(edm::Event &event, const edm::EventSetup &eventSetup) override
const edm::EDGetTokenT< EEDigiCollection > eeToken_
const std::string ebZSdigiCollection_
void setPedestals(const EcalPedestals *pedestals)
can be fetched every event from the EventSetup
~EcalZeroSuppressionProducer() override
const double glbEndcapThreshold_
Log< level::Error, false > LogError
const std::string ebDigiCollection_
bool getData(T &iHolder) const
EcalZeroSuppressor< EBDataFrame > theBarrelZeroSuppressor_
const std::string eeZSdigiCollection_
bool accept(const C &frame, const double &threshold)
void initCalibrations(const edm::EventSetup &eventSetup)
EcalZeroSuppressionProducer(const edm::ParameterSet ¶ms)
const double glbBarrelThreshold_
EcalZeroSuppressor< EEDataFrame > theEndcapZeroSuppressor_
Log< level::Info, false > LogInfo
T const * product() const
const edm::EDGetTokenT< EBDigiCollection > ebToken_
boost::transform_iterator< IterHelp, boost::counting_iterator< int > > const_iterator
const std::string eeDigiCollection_
const edm::ESGetToken< EcalPedestals, EcalPedestalsRcd > pedestalToken_