Go to the documentation of this file.
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");
std::vector< T >::const_iterator const_iterator
HBHEPlan1Combiner(const edm::ParameterSet &)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
std::unique_ptr< AbsPlan1RechitCombiner > parsePlan1RechitCombiner(const edm::ParameterSet &ps)
bool ignorePlan1Topology_
static const unsigned OFF_TDC_TIME
edm::EDGetTokenT< HBHERecHitCollection > tok_rechits_
bool getMergePositionFlag() const
#define DEFINE_FWK_MODULE(type)
const_iterator begin() const
#define add_param_set(name)
const_iterator end() const
constexpr bool getBit(const uint32_t u, const unsigned bitnum)
std::unique_ptr< AbsPlan1RechitCombiner > combiner_
bool getData(T &iHolder) const
void produce(edm::Event &, const edm::EventSetup &) override
T getParameter(std::string const &) const
void addDefault(ParameterSetDescription const &psetDescription)
edm::ESGetToken< HcalTopology, HcalRecNumberingRecord > htopoToken_
~HBHEPlan1Combiner() override