17 inputLabel_(conf.getParameter<edm::InputTag>(
"digiLabel"))
22 std::vector<int>
tmp = conf.
getParameter<std::vector<int> >(
"HBregion");
24 if(tmp[0]<0 || tmp[0]>9 || tmp[1]<0 || tmp[1]>9 || tmp[0]>tmp[1]) {
25 edm::LogError(
"HcalZeroSuppression") <<
"ZS(HB) region error: "
26 << tmp[0] <<
":" <<tmp[1];
30 std::pair<int,int> HBsearchTS (tmp[0],tmp[1]);
33 if(tmp[0]<0 || tmp[0]>9 || tmp[1]<0 || tmp[1]>9 || tmp[0]>tmp[1]) {
34 edm::LogError(
"HcalZeroSuppression") <<
"ZS(HE) region error: "
35 << tmp[0] <<
":" <<tmp[1];
38 std::pair<int,int> HEsearchTS (tmp[0],tmp[1]);
41 if(tmp[0]<0 || tmp[0]>9 || tmp[1]<0 || tmp[1]>9 || tmp[0]>tmp[1]) {
42 edm::LogError(
"HcalZeroSuppression") <<
"ZS(HO) region error: "
43 << tmp[0] <<
":" <<tmp[1];
46 std::pair<int,int> HOsearchTS (tmp[0],tmp[1]);
49 if(tmp[0]<0 || tmp[0]>9 || tmp[1]<0 || tmp[1]>9 || tmp[0]>tmp[1]) {
50 edm::LogError(
"HcalZeroSuppression") <<
"ZS(HF) region error: "
51 << tmp[0] <<
":" <<tmp[1];
54 std::pair<int,int> HFsearchTS (tmp[0],tmp[1]);
62 algo_=std::auto_ptr<HcalZSAlgoRealistic>
77 algo_=std::auto_ptr<HcalZSAlgoRealistic>
85 produces<HBHEDigiCollection>();
86 produces<HODigiCollection>();
87 produces<HFDigiCollection>();
92 algo_->clearDbService();
128 edm::LogInfo(
"HcalZeroSuppression") <<
"Suppression (HBHE) input " << hbhe->size() <<
" digis, output " << zs_hbhe->size() <<
" digis"
129 <<
" (HO) input " << ho->size() <<
" digis, output " << zs_ho->size() <<
" digis"
130 <<
" (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)