/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
DataFormats/ParticleFlowReco/interface/HGCalMultiCluster.h
40 строк
1 KB
Matti Kortelainen
Move stored types in io_v1 namespace, reset class versions to 3
22 май 2026, 18:18
22 май 2026, 18:18
909f324
Код
Авторство
О чём код?
#ifndef DataFormats_ParticleFlowReco_HGCalMultiCluster #define DataFormats_ParticleFlowReco_HGCalMultiCluster #include <vector> #include <limits> #include "DataFormats/Common/interface/PtrVector.h" #include "DataFormats/EgammaReco/interface/BasicCluster.h" #include "DataFormats/ParticleFlowReco/interface/PFCluster.h" namespace reco { namespace io_v1 { class HGCalMultiCluster : public reco::PFCluster { public: typedef edm::PtrVector<reco::BasicCluster>::const_iterator component_iterator; typedef edm::PtrVector<reco::BasicCluster> ClusterCollection; HGCalMultiCluster() : PFCluster() { this->setLayer(PFLayer::HGCAL); } HGCalMultiCluster(double energy, double x, double y, double z, ClusterCollection& thecls); void push_back(const edm::Ptr<reco::BasicCluster>& b) { myclusters.push_back(b); } const edm::PtrVector<reco::BasicCluster>& clusters() const { return myclusters; } unsigned int size() const { return myclusters.size(); } component_iterator begin() const { return myclusters.begin(); } component_iterator end() const { return myclusters.end(); } bool operator>(const HGCalMultiCluster& rhs) const { return (energy() > rhs.energy()); } private: edm::PtrVector<reco::BasicCluster> myclusters; }; } // namespace io_v1 using HGCalMultiCluster = io_v1::HGCalMultiCluster; typedef std::vector<HGCalMultiCluster> HGCalMultiClusterCollection; } // namespace reco #endif