84 produces<vector<int>>(
"jetPt" ).setBranchAlias(
"jetPt");
88 produces<l1t::JetRefVector>(
"l1tJetRef" ).setBranchAlias(
"l1tJetRef");
114 unique_ptr<vector<int>> jetMom (
new vector<int> );
120 if(!
jets.isValid())
return;
123 jetMom->reserve(
size );
127 for (iter =
jets->begin(0); iter !=
jets->end(0); ++iter){
129 jetMom->push_back(iter->pt());
132 jetRef->push_back(myref);
T getParameter(std::string const &) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
~TestBXVectorRefProducer()
void addDefault(ParameterSetDescription const &psetDescription)
virtual void beginStream(edm::StreamID) override
TestBXVectorRefProducer(const edm::ParameterSet &)
edm::EDGetTokenT< l1t::JetBxCollection > token_
virtual void produce(edm::Event &, const edm::EventSetup &) override
virtual void endStream() override
tuple size
Write out results.
std::vector< Jet >::const_iterator const_iterator