/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
DataFormats/JetReco/src/DiscretizedEnergyFlow.cc
28 строк
964 B
Cms Build
Clang-Format
03 июн 2019, 06:38
03 июн 2019, 06:38
0f65aee
Код
Авторство
О чём код?
#include <cassert> #include <algorithm> #include "DataFormats/JetReco/interface/DiscretizedEnergyFlow.h" namespace reco { DiscretizedEnergyFlow::DiscretizedEnergyFlow(const double* data, const char* title, const double etaMin, const double etaMax, const double phiBin0Edge, const unsigned nEtaBins, const unsigned nPhiBins) : title_(title), etaMin_(etaMin), etaMax_(etaMax), phiBin0Edge_(phiBin0Edge), nEtaBins_(nEtaBins), nPhiBins_(nPhiBins) { assert(data); assert(title); const unsigned nbins = nEtaBins * nPhiBins; data_.resize(nbins); std::copy(data, data + nbins, data_.begin()); } } // namespace reco