54 virtual void endJob()
override ;
60 std::vector<edm::EDGetTokenT<DetIdCollection> >
toks_did_;
74 output->reserve(input->size());
75 typename CollectionType::const_iterator
begin=input->begin();
76 typename CollectionType::const_iterator
end=input->end();
77 typename CollectionType::const_iterator
hit=
begin;
79 for (;hit!=
end;++hit){
81 const DetId &
id = hit->detid();
82 const uint32_t & recHitFlag = hit->flags();
85 const uint32_t & dbStatusFlag =
theHcalChStatus->getValues(
id)->getValue();
88 if (severityLevel>severityThreshold){
89 output->push_back(*hit);
93 output->push_back(*hit);
123 const unsigned nLabels = interestingDetIdCollections.size();
124 for (
unsigned i=0;
i != nLabels;
i++ )
125 toks_did_.push_back(consumes<DetIdCollection>(interestingDetIdCollections[
i]));
130 produces<HFRecHitCollection>(hfTag.
label());
131 produces<HORecHitCollection>(hoTag.
label());
173 toBeKept.insert(detId->begin(),detId->end());
T getParameter(std::string const &) const
std::vector< edm::InputTag > interestingDetIdCollections
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::set< DetId > toBeKept
#define DEFINE_FWK_MODULE(type)
edm::ESHandle< HcalChannelQuality > theHcalChStatus
edm::EDGetTokenT< HORecHitCollection > tok_ho_
std::vector< edm::EDGetTokenT< DetIdCollection > > toks_did_
static std::string const input
virtual void beginJob() override
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
edm::EDGetTokenT< HBHERecHitCollection > tok_hbhe_
virtual void endJob() override
edm::SortedCollection< HBHERecHit > HBHERecHitCollection
virtual void produce(edm::Event &, const edm::EventSetup &) override
edm::EDGetTokenT< HFRecHitCollection > tok_hf_
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