71 output->reserve(input->size());
72 typename CollectionType::const_iterator
begin=input->begin();
73 typename CollectionType::const_iterator
end=input->end();
74 typename CollectionType::const_iterator
hit=
begin;
76 for (;hit!=
end;++hit){
78 const DetId &
id = hit->detid();
79 const uint32_t & recHitFlag = hit->flags();
82 const uint32_t & dbStatusFlag =
theHcalChStatus->getValues(
id)->getValue();
85 if (severityLevel>severityThreshold){
86 output->push_back(*hit);
90 output->push_back(*hit);
118 produces<HFRecHitCollection>(hfTag.
label());
119 produces<HORecHitCollection>(hoTag.
label());
161 toBeKept.insert(detId->begin(),detId->end());
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 &)
void skim(const edm::Handle< CollectionType > &input, std::auto_ptr< CollectionType > &output, int severityThreshold=0)
edm::SortedCollection< HORecHit > HORecHitCollection