Go to the documentation of this file.
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>();
edm::ESGetToken< HcalTopology, HcalRecNumberingRecord > htopoToken_
const_iterator begin() const
static const std::string input
HcalDetId idFront(const HcalDetId &id) const
void produce(edm::Event &, const edm::EventSetup &) override
edm::EDGetTokenT< HFRecHitCollection > tok_hf_
bool getMergePositionFlag() const
const Item * getValues(DetId fId, bool throwOnFail=true) const
#define DEFINE_FWK_MODULE(type)
const HcalTopology * theHcalTopology_
HcalHitSelection(const edm::ParameterSet &)
~HcalHitSelection() override
std::vector< edm::InputTag > interestingDetIdCollections
int getSeverityLevel(const DetId &myid, const uint32_t &myflag, const uint32_t &mystatus) const
uint32_t getValue() const
void skim(const edm::Handle< CollectionType > &input, CollectionType &output, int severityThreshold=0) const
edm::ESGetToken< HcalSeverityLevelComputer, HcalSeverityLevelComputerRcd > sevToken_
Log< level::Error, false > LogError
const HcalChannelQuality * theHcalChStatus
std::set< DetId > toBeKept
bool getData(T &iHolder) const
edm::ESGetToken< HcalChannelQuality, HcalChannelQualityRcd > qualToken_
edm::EDGetTokenT< HORecHitCollection > tok_ho_
T getParameter(std::string const &) const
const HcalSeverityLevelComputer * theHcalSevLvlComputer
edm::EDGetTokenT< HBHERecHitCollection > tok_hbhe_
std::vector< edm::EDGetTokenT< DetIdCollection > > toks_did_
const_iterator end() const