31 std::unique_ptr<HcalZSAlgoRealistic>
algo_;
42 : inputLabel_(conf.getParameter<std::
string>(
"digiLabel")) {
44 bool useInstanceLabels = conf.
getParameter<
bool>(
"useInstanceLabels");
60 if (tmp[0] < 0 || tmp[0] > 9 || tmp[1] < 0 || tmp[1] > 9 || tmp[0] > tmp[1]) {
61 edm::LogError(
"HcalZeroSuppression") <<
"ZS(HB) region error: " << tmp[0] <<
":" << tmp[1];
66 std::pair<int, int> HBsearchTS(tmp[0], tmp[1]);
69 if (tmp[0] < 0 || tmp[0] > 9 || tmp[1] < 0 || tmp[1] > 9 || tmp[0] > tmp[1]) {
70 edm::LogError(
"HcalZeroSuppression") <<
"ZS(HE) region error: " << tmp[0] <<
":" << tmp[1];
74 std::pair<int, int> HEsearchTS(tmp[0], tmp[1]);
77 if (tmp[0] < 0 || tmp[0] > 9 || tmp[1] < 0 || tmp[1] > 9 || tmp[0] > tmp[1]) {
78 edm::LogError(
"HcalZeroSuppression") <<
"ZS(HO) region error: " << tmp[0] <<
":" << tmp[1];
82 std::pair<int, int> HOsearchTS(tmp[0], tmp[1]);
85 if (tmp[0] < 0 || tmp[0] > 9 || tmp[1] < 0 || tmp[1] > 9 || tmp[0] > tmp[1]) {
86 edm::LogError(
"HcalZeroSuppression") <<
"ZS(HF) region error: " << tmp[0] <<
":" << tmp[1];
90 std::pair<int, int> HFsearchTS(tmp[0], tmp[1]);
108 algo_ = std::make_unique<HcalZSAlgoRealistic>(
markAndPass, use1ts_, HBsearchTS, HEsearchTS, HOsearchTS, HFsearchTS);
111 produces<HBHEDigiCollection>();
112 produces<HODigiCollection>();
113 produces<HFDigiCollection>();
114 produces<QIE10DigiCollection>(
"HFQIE10DigiCollection");
115 produces<QIE11DigiCollection>(
"HBHEQIE11DigiCollection");
151 std::unique_ptr<QIE10DigiCollection> zs_hfQIE10(
new QIE10DigiCollection(hfQIE10->samples()));
152 std::unique_ptr<QIE11DigiCollection> zs_hbheQIE11(
new QIE11DigiCollection(hbheQIE11->samples()));
161 edm::LogInfo(
"HcalZeroSuppression") <<
"Suppression (HBHE) input " << hbhe->size() <<
" digis, output "
162 << zs_hbhe->size() <<
" digis"
163 <<
" (HO) input " << ho->size() <<
" digis, output " << zs_ho->size() <<
" digis"
164 <<
" (HF) input " << hf->size() <<
" digis, output " << zs_hf->size() <<
" digis"
165 <<
" (HFQIE10) input " << hfQIE10->size() <<
" digis, output "
166 << zs_hfQIE10->size() <<
" digis"
167 <<
" (HBHEQIE11) input " << hbheQIE11->size() <<
" digis, output "
168 << zs_hbheQIE11->size() <<
" digis";
175 e.
put(
std::move(zs_hbheQIE11),
"HBHEQIE11DigiCollection");
edm::EDGetTokenT< HODigiCollection > tok_ho_
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
const edm::EventSetup & c
edm::ESGetToken< HcalDbService, HcalDbRecord > tok_dbService_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::unique_ptr< HcalZSAlgoRealistic > algo_
#define DEFINE_FWK_MODULE(type)
edm::EDGetTokenT< QIE10DigiCollection > tok_hfQIE10_
Log< level::Error, false > LogError
HcalDataFrameContainer< QIE10DataFrame > QIE10DigiCollection
edm::EDGetTokenT< HBHEDigiCollection > tok_hbhe_
edm::EDGetTokenT< HFDigiCollection > tok_hf_
~HcalRealisticZS() override
HcalDataFrameContainer< QIE11DataFrame > QIE11DigiCollection
Log< level::Info, false > LogInfo
T const * product() const
T const * product() const
T getParameter(std::string const &) const
edm::EDGetTokenT< QIE11DigiCollection > tok_hbheQIE11_
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
void produce(edm::Event &e, const edm::EventSetup &c) override
HcalRealisticZS(const edm::ParameterSet &ps)