1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#include "DataFormats/Math/test/WriteMath.h"
#include "DataFormats/Math/interface/Vector3D.h"
#include "FWCore/Framework/interface/Event.h"
#include <vector>
using namespace edm;
using namespace std;
typedef math::XYZVector Vector;
WriteMath::WriteMath(const ParameterSet&) { produces<vector<Vector> >(); }
void WriteMath::produce(edm::StreamID, Event& evt, const EventSetup&) const {
std::unique_ptr<vector<Vector> > v(new vector<Vector>);
v->push_back(Vector(1, 2, 3));
evt.put(std::move(v));
}
|