13 inputLabel_(conf.getParameter<std::
string>(
"digiLabel")) {
25 std::vector<int>
tmp = conf.
getParameter<std::vector<int> >(
"HBregion");
27 if(tmp[0]<0 || tmp[0]>9 || tmp[1]<0 || tmp[1]>9 || tmp[0]>tmp[1]) {
28 edm::LogError(
"HcalZeroSuppression") <<
"ZS(HB) region error: "
29 << tmp[0] <<
":" <<tmp[1];
33 std::pair<int,int> HBsearchTS (tmp[0],tmp[1]);
36 if(tmp[0]<0 || tmp[0]>9 || tmp[1]<0 || tmp[1]>9 || tmp[0]>tmp[1]) {
37 edm::LogError(
"HcalZeroSuppression") <<
"ZS(HE) region error: "
38 << tmp[0] <<
":" <<tmp[1];
41 std::pair<int,int> HEsearchTS (tmp[0],tmp[1]);
44 if(tmp[0]<0 || tmp[0]>9 || tmp[1]<0 || tmp[1]>9 || tmp[0]>tmp[1]) {
45 edm::LogError(
"HcalZeroSuppression") <<
"ZS(HO) region error: "
46 << tmp[0] <<
":" <<tmp[1];
49 std::pair<int,int> HOsearchTS (tmp[0],tmp[1]);
52 if(tmp[0]<0 || tmp[0]>9 || tmp[1]<0 || tmp[1]>9 || tmp[0]>tmp[1]) {
53 edm::LogError(
"HcalZeroSuppression") <<
"ZS(HF) region error: "
54 << tmp[0] <<
":" <<tmp[1];
57 std::pair<int,int> HFsearchTS (tmp[0],tmp[1]);
65 algo_=std::auto_ptr<HcalZSAlgoRealistic>
79 algo_=std::auto_ptr<HcalZSAlgoRealistic>
87 produces<HBHEDigiCollection>();
88 produces<HODigiCollection>();
89 produces<HFDigiCollection>();
90 produces<HBHEUpgradeDigiCollection>(
"HBHEUpgradeDigiCollection");
91 produces<HFUpgradeDigiCollection>(
"HFUpgradeDigiCollection");
96 algo_->clearDbService();
139 algo_->suppress(*(hbheUpgrade.
product()),*zs_hbheUpgrade);
143 edm::LogInfo(
"HcalZeroSuppression") <<
"Suppression (HBHE) input " << hbhe->size() <<
" digis, output " << zs_hbhe->size() <<
" digis"
144 <<
" (HO) input " << ho->size() <<
" digis, output " << zs_ho->size() <<
" digis"
145 <<
" (HF) input " << hf->size() <<
" digis, output " << zs_hf->size() <<
" digis"
146 <<
" (HBHEUpgrade) input " << hbheUpgrade->size() <<
" digis, output " << zs_hbheUpgrade->size() <<
" digis"
147 <<
" (HFUpgrade) input " << hfUpgrade->size() <<
" digis, output " << zs_hfUpgrade->size() <<
" digis";
154 e.
put(zs_hbheUpgrade,
"HBHEUpgradeDigiCollection");
155 e.
put(zs_hfUpgrade,
"HFUpgradeDigiCollection");
T getParameter(std::string const &) const
edm::EDGetTokenT< HODigiCollection > tok_ho_
std::auto_ptr< HcalZSAlgoRealistic > algo_
virtual ~HcalRealisticZS()
bool getByToken(EDGetToken token, Handle< PROD > &result) const
virtual void produce(edm::Event &e, const edm::EventSetup &c)
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
HcalRealisticZS(const edm::ParameterSet &ps)