16 inputLabel_(conf.getParameter<edm::InputTag>(
"digiLabel"))
21 std::vector<int>
tmp = conf.
getParameter<std::vector<int> >(
"HBregion");
23 if(tmp[0]<0 || tmp[0]>9 || tmp[1]<0 || tmp[1]>9 || tmp[0]>tmp[1]) {
24 edm::LogError(
"HcalZeroSuppression") <<
"ZS(HB) region error: "
25 << tmp[0] <<
":" <<tmp[1];
29 std::pair<int,int> HBsearchTS (tmp[0],tmp[1]);
32 if(tmp[0]<0 || tmp[0]>9 || tmp[1]<0 || tmp[1]>9 || tmp[0]>tmp[1]) {
33 edm::LogError(
"HcalZeroSuppression") <<
"ZS(HE) region error: "
34 << tmp[0] <<
":" <<tmp[1];
37 std::pair<int,int> HEsearchTS (tmp[0],tmp[1]);
40 if(tmp[0]<0 || tmp[0]>9 || tmp[1]<0 || tmp[1]>9 || tmp[0]>tmp[1]) {
41 edm::LogError(
"HcalZeroSuppression") <<
"ZS(HO) region error: "
42 << tmp[0] <<
":" <<tmp[1];
45 std::pair<int,int> HOsearchTS (tmp[0],tmp[1]);
48 if(tmp[0]<0 || tmp[0]>9 || tmp[1]<0 || tmp[1]>9 || tmp[0]>tmp[1]) {
49 edm::LogError(
"HcalZeroSuppression") <<
"ZS(HF) region error: "
50 << tmp[0] <<
":" <<tmp[1];
53 std::pair<int,int> HFsearchTS (tmp[0],tmp[1]);
61 algo_=std::auto_ptr<HcalZSAlgoRealistic>
76 algo_=std::auto_ptr<HcalZSAlgoRealistic>
84 produces<HBHEDigiCollection>();
85 produces<HODigiCollection>();
86 produces<HFDigiCollection>();
91 algo_->clearDbService();
127 edm::LogInfo(
"HcalZeroSuppression") <<
"Suppression (HBHE) input " << hbhe->size() <<
" digis, output " << zs_hbhe->size() <<
" digis"
128 <<
" (HO) input " << ho->size() <<
" digis, output " << zs_ho->size() <<
" digis"
129 <<
" (HF) input " << hf->size() <<
" digis, output " << zs_hf->size() <<
" digis";
T getParameter(std::string const &) const
std::auto_ptr< HcalZSAlgoRealistic > algo_
virtual ~HcalRealisticZS()
edm::InputTag inputLabel_
virtual void produce(edm::Event &e, const edm::EventSetup &c)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
T const * product() const
T const * product() const
std::vector< std::vector< double > > tmp
HcalRealisticZS(const edm::ParameterSet &ps)