84 produces<vector<int>>(
"jetPt" ).setBranchAlias(
"jetPt");
88 produces<l1t::JetRefVector>(
"l1tJetRef" ).setBranchAlias(
"l1tJetRef");
114 auto_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);
137 iEvent.
put(jetMom,
"jetPt");
T getParameter(std::string const &) const
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)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
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