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");
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
HBHEPlan1Combiner(const edm::ParameterSet &)
bool ignorePlan1Topology_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
std::vector< T >::const_iterator const_iterator
edm::EDGetTokenT< HBHERecHitCollection > tok_rechits_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
bool getData(T &iHolder) const
std::unique_ptr< AbsPlan1RechitCombiner > parsePlan1RechitCombiner(const edm::ParameterSet &ps)
static const unsigned OFF_TDC_TIME
void addDefault(ParameterSetDescription const &psetDescription)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
constexpr bool getBit(const uint32_t u, const unsigned bitnum)
std::unique_ptr< AbsPlan1RechitCombiner > combiner_
T getParameter(std::string const &) const
#define add_param_set(name)
~HBHEPlan1Combiner() override
void produce(edm::Event &, const edm::EventSetup &) override
edm::ESGetToken< HcalTopology, HcalRecNumberingRecord > htopoToken_