/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
DataFormats/Math/test/WriteMath.cc
15 строк
520 B
Christopher Jones
Moved test modules in DataFormat/Math to thread friendly types
03 окт 2022, 20:55
03 окт 2022, 20:55
ff090c5
Код
Авторство
О чём код?
#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)); }