13 inputLabel_(conf.getParameter<
std::
string>(
"digiLabel")) {
23 useInstanceLabels ?
"HFQIE10DigiCollection" :
"" ));
25 useInstanceLabels ?
"HBHEQIE11DigiCollection" :
""));
28 std::vector<int>
tmp = conf.
getParameter<std::vector<int> >(
"HBregion");
30 if(tmp[0]<0 || tmp[0]>9 || tmp[1]<0 || tmp[1]>9 || tmp[0]>tmp[1]) {
31 edm::LogError(
"HcalZeroSuppression") <<
"ZS(HB) region error: " 32 << tmp[0] <<
":" <<tmp[1];
36 std::pair<int,int> HBsearchTS (tmp[0],tmp[1]);
39 if(tmp[0]<0 || tmp[0]>9 || tmp[1]<0 || tmp[1]>9 || tmp[0]>tmp[1]) {
40 edm::LogError(
"HcalZeroSuppression") <<
"ZS(HE) region error: " 41 << tmp[0] <<
":" <<tmp[1];
44 std::pair<int,int> HEsearchTS (tmp[0],tmp[1]);
47 if(tmp[0]<0 || tmp[0]>9 || tmp[1]<0 || tmp[1]>9 || tmp[0]>tmp[1]) {
48 edm::LogError(
"HcalZeroSuppression") <<
"ZS(HO) region error: " 49 << tmp[0] <<
":" <<tmp[1];
52 std::pair<int,int> HOsearchTS (tmp[0],tmp[1]);
55 if(tmp[0]<0 || tmp[0]>9 || tmp[1]<0 || tmp[1]>9 || tmp[0]>tmp[1]) {
56 edm::LogError(
"HcalZeroSuppression") <<
"ZS(HF) region error: " 57 << tmp[0] <<
":" <<tmp[1];
60 std::pair<int,int> HFsearchTS (tmp[0],tmp[1]);
90 produces<HBHEDigiCollection>();
91 produces<HODigiCollection>();
92 produces<HFDigiCollection>();
93 produces<QIE10DigiCollection>(
"HFQIE10DigiCollection");
94 produces<QIE11DigiCollection>(
"HBHEQIE11DigiCollection");
99 algo_->clearDbService();
147 edm::LogInfo(
"HcalZeroSuppression") <<
"Suppression (HBHE) input " << hbhe->
size() <<
" digis, output " << zs_hbhe->size() <<
" digis" 148 <<
" (HO) input " << ho->
size() <<
" digis, output " << zs_ho->size() <<
" digis" 149 <<
" (HF) input " << hf->
size() <<
" digis, output " << zs_hf->size() <<
" digis" 150 <<
" (HFQIE10) input " << hfQIE10->
size() <<
" digis, output " << zs_hfQIE10->size() <<
" digis" 151 <<
" (HBHEQIE11) input " << hbheQIE11->
size() <<
" digis, output " << zs_hbheQIE11->size() <<
" digis";
159 e.
put(
std::move(zs_hbheQIE11),
"HBHEQIE11DigiCollection");
T getParameter(std::string const &) const
edm::EDGetTokenT< HODigiCollection > tok_ho_
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::unique_ptr< HcalZSAlgoRealistic > algo_
edm::EDGetTokenT< QIE10DigiCollection > tok_hfQIE10_
HcalDataFrameContainer< QIE10DataFrame > QIE10DigiCollection
edm::EDGetTokenT< HBHEDigiCollection > tok_hbhe_
edm::EDGetTokenT< HFDigiCollection > tok_hf_
~HcalRealisticZS() override
HcalDataFrameContainer< QIE11DataFrame > QIE11DigiCollection
T const * product() const
std::vector< std::vector< double > > tmp
edm::EDGetTokenT< QIE11DigiCollection > tok_hbheQIE11_
void produce(edm::Event &e, const edm::EventSetup &c) override
HcalRealisticZS(const edm::ParameterSet &ps)
T const * product() const