70 output->reserve(input->size());
71 typename CollectionType::const_iterator
begin=input->begin();
72 typename CollectionType::const_iterator
end=input->end();
73 typename CollectionType::const_iterator
hit=
begin;
75 for (;hit!=
end;++hit){
77 const DetId &
id = hit->detid();
78 const uint32_t & recHitFlag = hit->flags();
81 const uint32_t & dbStatusFlag =
theHcalChStatus->getValues(
id)->getValue();
84 if (severityLevel!=0){
85 output->push_back(*hit);
89 output->push_back(*hit);
115 produces<HFRecHitCollection>(hfTag.
label());
116 produces<HORecHitCollection>(hoTag.
label());
156 toBeKept.insert(detId->begin(),detId->end());
void skim(const edm::Handle< CollectionType > &input, std::auto_ptr< CollectionType > &output)
T getParameter(std::string const &) const
std::vector< edm::InputTag > interestingDetIdCollections
std::set< DetId > toBeKept
#define DEFINE_FWK_MODULE(type)
edm::ESHandle< HcalChannelQuality > theHcalChStatus
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
virtual void produce(edm::Event &, const edm::EventSetup &)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
edm::SortedCollection< HBHERecHit > HBHERecHitCollection
edm::ESHandle< HcalSeverityLevelComputer > theHcalSevLvlComputer
edm::SortedCollection< HFRecHit > HFRecHitCollection
HcalHitSelection(const edm::ParameterSet &)
edm::SortedCollection< HORecHit > HORecHitCollection