69 : ignorePlan1Topology_(conf.getParameter<
bool>(
"ignorePlan1Topology")),
70 usePlan1Mode_(conf.getParameter<
bool>(
"usePlan1Mode")),
74 throw cms::Exception(
"HBHEPlan1BadConfig") <<
"Invalid Plan1RechitCombiner algorithm configuration" << std::endl;
78 produces<HBHERecHitCollection>();
81 htopoToken_ = esConsumes<HcalTopology, HcalRecNumberingRecord>();
109 std::unique_ptr<HBHERecHitCollection> outputRechits = std::make_unique<HBHERecHitCollection>();
110 outputRechits->reserve(inputRechits->
size());
120 outputRechits->push_back(*it);
130 #define add_param_set(name) \ 131 edm::ParameterSetDescription name; \ 132 name.setAllowAnything(); \ 133 desc.add<edm::ParameterSetDescription>(#name, name) 140 desc.add<
bool>(
"ignorePlan1Topology");
141 desc.add<
bool>(
"usePlan1Mode");
bool getMergePositionFlag() const
T getParameter(std::string const &) const
HBHEPlan1Combiner(const edm::ParameterSet &)
bool ignorePlan1Topology_
#define DEFINE_FWK_MODULE(type)
std::vector< T >::const_iterator const_iterator
edm::EDGetTokenT< HBHERecHitCollection > tok_rechits_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
std::unique_ptr< AbsPlan1RechitCombiner > parsePlan1RechitCombiner(const edm::ParameterSet &ps)
static const unsigned OFF_TDC_TIME
void addDefault(ParameterSetDescription const &psetDescription)
const_iterator begin() const
constexpr bool getBit(const uint32_t u, const unsigned bitnum)
std::unique_ptr< AbsPlan1RechitCombiner > combiner_
const_iterator end() const
#define add_param_set(name)
~HBHEPlan1Combiner() override
void produce(edm::Event &, const edm::EventSetup &) override
edm::ESGetToken< HcalTopology, HcalRecNumberingRecord > htopoToken_