File indexing completed on 2024-04-06 12:04:44
0001 #include "DataFormats/Math/test/WriteMath.h"
0002 #include "DataFormats/Math/interface/Vector3D.h"
0003 #include "FWCore/Framework/interface/Event.h"
0004 #include <vector>
0005 using namespace edm;
0006 using namespace std;
0007 typedef math::XYZVector Vector;
0008
0009 WriteMath::WriteMath(const ParameterSet&) { produces<vector<Vector> >(); }
0010
0011 void WriteMath::produce(edm::StreamID, Event& evt, const EventSetup&) const {
0012 std::unique_ptr<vector<Vector> > v(new vector<Vector>);
0013 v->push_back(Vector(1, 2, 3));
0014 evt.put(std::move(v));
0015 }