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);
49 const auto& frame = *hframe;
50 const auto& signalHits = frame.getSignal();
51 const auto& pileupHits = frame.getPileups();
53 auto output = std::make_unique<std::vector<PSimHit>>();
54 output->reserve(signalHits.size() + pileupHits.size());
55 for(
const auto& ptr: signalHits)
56 output->emplace_back(*ptr);
57 for(
const auto& ptr: pileupHits)
58 output->emplace_back(*ptr);
T getParameter(std::string const &) const
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)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
std::vector< InputInfo > input_
void produce(edm::StreamID, edm::Event &iEvent, const edm::EventSetup &iSetup) const override