62 std::vector<edm::EDGetTokenT<DetIdCollection> >
toks_did_;
77 output.reserve(input->size());
78 typename CollectionType::const_iterator
begin=input->begin();
79 typename CollectionType::const_iterator
end=input->end();
80 typename CollectionType::const_iterator
hit=
begin;
82 for (;hit!=
end;++hit){
88 const uint32_t & recHitFlag = hit->flags();
94 if (severityLevel>severityThreshold){
95 output.push_back(*hit);
99 output.push_back(*hit);
129 const unsigned nLabels = interestingDetIdCollections.size();
130 for (
unsigned i=0;
i != nLabels;
i++ )
131 toks_did_.push_back(consumes<DetIdCollection>(interestingDetIdCollections[
i]));
136 produces<HFRecHitCollection>(hfTag.
label());
137 produces<HORecHitCollection>(hoTag.
label());
185 auto hbhe_out = std::make_unique<HBHERecHitCollection>();
186 skim(hbhe,*hbhe_out);
189 auto hf_out = std::make_unique<HFRecHitCollection>();
193 auto ho_out = std::make_unique<HORecHitCollection>();
T getParameter(std::string const &) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
std::vector< edm::InputTag > interestingDetIdCollections
~HcalHitSelection() override
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::set< DetId > toBeKept
const_iterator end() const
edm::ESHandle< HcalChannelQuality > theHcalChStatus
edm::EDGetTokenT< HORecHitCollection > tok_ho_
const Item * getValues(DetId fId, bool throwOnFail=true) const
std::vector< edm::EDGetTokenT< DetIdCollection > > toks_did_
bool getMergePositionFlag() const
static std::string const input
#define DEFINE_FWK_MODULE(type)
edm::EDGetTokenT< HBHERecHitCollection > tok_hbhe_
void skim(const edm::Handle< CollectionType > &input, CollectionType &output, int severityThreshold=0) const
void produce(edm::Event &, const edm::EventSetup &) override
const_iterator begin() const
edm::EDGetTokenT< HFRecHitCollection > tok_hf_
int getSeverityLevel(const DetId &myid, const uint32_t &myflag, const uint32_t &mystatus) const
const HcalTopology * theHcalTopology_
edm::ESHandle< HcalSeverityLevelComputer > theHcalSevLvlComputer
HcalHitSelection(const edm::ParameterSet &)
HcalDetId idFront(const HcalDetId &id) const
uint32_t getValue() const
T const * product() const