13 inputLabel_(conf.getParameter<std::
string>(
"digiLabel")) {
26 std::vector<int>
tmp = conf.
getParameter<std::vector<int> >(
"HBregion");
28 if(tmp[0]<0 || tmp[0]>9 || tmp[1]<0 || tmp[1]>9 || tmp[0]>tmp[1]) {
29 edm::LogError(
"HcalZeroSuppression") <<
"ZS(HB) region error: "
30 << tmp[0] <<
":" <<tmp[1];
34 std::pair<int,int> HBsearchTS (tmp[0],tmp[1]);
37 if(tmp[0]<0 || tmp[0]>9 || tmp[1]<0 || tmp[1]>9 || tmp[0]>tmp[1]) {
38 edm::LogError(
"HcalZeroSuppression") <<
"ZS(HE) region error: "
39 << tmp[0] <<
":" <<tmp[1];
42 std::pair<int,int> HEsearchTS (tmp[0],tmp[1]);
45 if(tmp[0]<0 || tmp[0]>9 || tmp[1]<0 || tmp[1]>9 || tmp[0]>tmp[1]) {
46 edm::LogError(
"HcalZeroSuppression") <<
"ZS(HO) region error: "
47 << tmp[0] <<
":" <<tmp[1];
50 std::pair<int,int> HOsearchTS (tmp[0],tmp[1]);
53 if(tmp[0]<0 || tmp[0]>9 || tmp[1]<0 || tmp[1]>9 || tmp[0]>tmp[1]) {
54 edm::LogError(
"HcalZeroSuppression") <<
"ZS(HF) region error: "
55 << tmp[0] <<
":" <<tmp[1];
58 std::pair<int,int> HFsearchTS (tmp[0],tmp[1]);
88 produces<HBHEDigiCollection>();
89 produces<HODigiCollection>();
90 produces<HFDigiCollection>();
91 produces<HBHEUpgradeDigiCollection>(
"HBHEUpgradeDigiCollection");
92 produces<HFUpgradeDigiCollection>(
"HFUpgradeDigiCollection");
93 produces<QIE10DigiCollection>(
"HFQIE10DigiCollection");
98 algo_->clearDbService();
144 algo_->suppress(*(hbheUpgrade.
product()),*zs_hbheUpgrade);
149 edm::LogInfo(
"HcalZeroSuppression") <<
"Suppression (HBHE) input " << hbhe->size() <<
" digis, output " << zs_hbhe->size() <<
" digis"
150 <<
" (HO) input " << ho->size() <<
" digis, output " << zs_ho->size() <<
" digis"
151 <<
" (HF) input " << hf->size() <<
" digis, output " << zs_hf->size() <<
" digis"
152 <<
" (HBHEUpgrade) input " << hbheUpgrade->size() <<
" digis, output " << zs_hbheUpgrade->size() <<
" digis"
153 <<
" (HFUpgrade) input " << hfUpgrade->size() <<
" digis, output " << zs_hfUpgrade->size() <<
" digis"
154 <<
" (HFQIE10) input " << hfQIE10->size() <<
" digis, output " << zs_hfQIE10->size() <<
" digis";
161 e.
put(zs_hbheUpgrade,
"HBHEUpgradeDigiCollection");
162 e.
put(zs_hfUpgrade,
"HFUpgradeDigiCollection");
163 e.
put(zs_hfQIE10,
"HFQIE10DigiCollection");
T getParameter(std::string const &) const
edm::EDGetTokenT< HODigiCollection > tok_ho_
virtual ~HcalRealisticZS()
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::unique_ptr< HcalZSAlgoRealistic > algo_
edm::EDGetTokenT< QIE10DigiCollection > tok_hfQIE10_
edm::EDGetTokenT< HBHEDigiCollection > tok_hbhe_
edm::EDGetTokenT< HFUpgradeDigiCollection > tok_hfUpgrade_
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
edm::EDGetTokenT< HBHEUpgradeDigiCollection > tok_hbheUpgrade_
edm::EDGetTokenT< HFDigiCollection > tok_hf_
T const * product() const
T const * product() const
std::vector< std::vector< double > > tmp
virtual void produce(edm::Event &e, const edm::EventSetup &c) override
HcalRealisticZS(const edm::ParameterSet &ps)