61 std::vector<edm::EDGetTokenT<DetIdCollection> >
toks_did_;
70 template <
typename CollectionType>
79 template <
class CollectionType>
82 int severityThreshold)
const {
84 typename CollectionType::const_iterator begin =
input->begin();
85 typename CollectionType::const_iterator
end =
input->end();
86 typename CollectionType::const_iterator
hit = begin;
94 const uint32_t& recHitFlag =
hit->flags();
125 theHcalTopology_(nullptr),
126 theHcalChStatus(nullptr),
127 theHcalSevLvlComputer(nullptr) {
136 for (
unsigned i = 0;
i != nLabels;
i++)
146 htopoToken_ = esConsumes<HcalTopology, HcalRecNumberingRecord>();
148 sevToken_ = esConsumes<HcalSeverityLevelComputer, HcalSeverityLevelComputerRcd>();
186 auto hbhe_out = std::make_unique<HBHERecHitCollection>();
190 auto hf_out = std::make_unique<HFRecHitCollection>();
194 auto ho_out = std::make_unique<HORecHitCollection>();
bool getMergePositionFlag() const
T getParameter(std::string const &) const
void skim(const edm::Handle< CollectionType > &input, CollectionType &output, int severityThreshold=0) const
std::vector< edm::InputTag > interestingDetIdCollections
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
~HcalHitSelection() override
std::set< DetId > toBeKept
const HcalChannelQuality * theHcalChStatus
edm::EDGetTokenT< HORecHitCollection > tok_ho_
std::vector< edm::EDGetTokenT< DetIdCollection > > toks_did_
Log< level::Error, false > LogError
edm::ESGetToken< HcalChannelQuality, HcalChannelQualityRcd > qualToken_
const Item * getValues(DetId fId, bool throwOnFail=true) const
static std::string const input
const HcalSeverityLevelComputer * theHcalSevLvlComputer
HcalDetId idFront(const HcalDetId &id) const
edm::EDGetTokenT< HBHERecHitCollection > tok_hbhe_
#define DEFINE_FWK_MODULE(type)
edm::ESGetToken< HcalTopology, HcalRecNumberingRecord > htopoToken_
uint32_t getValue() const
const_iterator begin() const
void produce(edm::Event &, const edm::EventSetup &) override
edm::EDGetTokenT< HFRecHitCollection > tok_hf_
const HcalTopology * theHcalTopology_
int getSeverityLevel(const DetId &myid, const uint32_t &myflag, const uint32_t &mystatus) const
HcalHitSelection(const edm::ParameterSet &)
const_iterator end() const
edm::ESGetToken< HcalSeverityLevelComputer, HcalSeverityLevelComputerRcd > sevToken_