Go to the documentation of this file.
66 : ignorePlan1Topology_(conf.getParameter<
bool>(
"ignorePlan1Topology")),
67 usePlan1Mode_(conf.getParameter<
bool>(
"usePlan1Mode")),
71 throw cms::Exception(
"HBHEPlan1BadConfig") <<
"Invalid Plan1RechitCombiner algorithm configuration" << std::endl;
75 produces<HBHERecHitCollection>();
104 std::unique_ptr<HBHERecHitCollection> outputRechits = std::make_unique<HBHERecHitCollection>();
105 outputRechits->reserve(inputRechits->
size());
115 outputRechits->push_back(*it);
125 #define add_param_set(name) \
126 edm::ParameterSetDescription name; \
127 name.setAllowAnything(); \
128 desc.add<edm::ParameterSetDescription>(#name, name)
135 desc.
add<
bool>(
"ignorePlan1Topology");
136 desc.
add<
bool>(
"usePlan1Mode");
T const * product() const
ParameterDescriptionBase * add(U const &iLabel, T const &value)
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_
T getParameter(std::string const &) const
void produce(edm::Event &, const edm::EventSetup &) override
void addDefault(ParameterSetDescription const &psetDescription)
~HBHEPlan1Combiner() override