33 for (
const auto&
tag :
src) {
35 produces<std::vector<PSimHit>>(
input_.back().instance);
41 desc.
add<std::vector<edm::InputTag>>(
"src", std::vector<edm::InputTag>());
42 descriptions.
add(
"crossingFramePSimHitToPSimHits", desc);
51 const auto& frame = *hframe;
52 const auto& signalHits = frame.getSignal();
53 const auto& pileupHits = frame.getPileups();
55 auto output = std::make_unique<std::vector<PSimHit>>();
56 output->reserve(signalHits.size() + pileupHits.size());
57 for (
const auto& ptr : signalHits)
58 output->emplace_back(*ptr);
59 for (
const auto& ptr : pileupHits)
60 output->emplace_back(*ptr);
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
static std::string const input
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
CrossingFramePSimHitToPSimHitsConverter(const edm::ParameterSet &iConfig)
void produce(edm::StreamID, edm::Event &iEvent, const edm::EventSetup &iSetup) const override
ParameterDescriptionBase * add(U const &iLabel, T const &value)
T getParameter(std::string const &) const
void add(std::string const &label, ParameterSetDescription const &psetDescription)
std::vector< InputInfo > input_