/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
DataFormats/EgammaReco/interface/PreshowerCluster.h
68 строк
2 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_EgammaReco_PreshowerCluster_h #define DataFormats_EgammaReco_PreshowerCluster_h /* * Preshower cluster class * * \authors Dmirty Bandurin (KSU), Ted Kolberg (ND) */ // #include "DataFormats/Math/interface/Point3D.h" #include "DataFormats/CaloRecHit/interface/CaloCluster.h" #include "DataFormats/CaloRecHit/interface/CaloClusterCollection.h" #include "DataFormats/EgammaReco/interface/PreshowerClusterFwd.h" #include <cmath> namespace reco { namespace io_v1 { class PreshowerCluster : public CaloCluster { public: typedef math::XYZPoint Point; /// default constructor PreshowerCluster() : CaloCluster(0., Point(0., 0., 0.)) {} ~PreshowerCluster() override; /// Constructor from EcalRecHits PreshowerCluster(const double E, const Point& pos, const std::vector<std::pair<DetId, float> >& usedHits, const int plane); /// Constructor from cluster PreshowerCluster(const PreshowerCluster&); /// Number of RecHits the cluster int nhits() const { return hitsAndFractions_.size(); } /// Preshower plane int plane() const { return plane_; } double et() const { return energy() / cosh(eta()); } /// Comparisons bool operator==(const PreshowerCluster&) const; bool operator<(const PreshowerCluster&) const; /// Associated basic cluster; CaloClusterPtr basicCluster() const { return bc_ref_; } /// DetIds of component RecHits -- now inherited from CaloCluster //std::vector<DetId> getHitsByDetId() const { return usedHits_; } void setBCRef(const CaloClusterPtr& r) { bc_ref_ = r; } private: int plane_; /// Associated basic cluster; CaloClusterPtr bc_ref_; /// used hits by detId -- now inherited from CaloCluster //std::vector<DetId> usedHits_; }; } // namespace io_v1 using PreshowerCluster = io_v1::PreshowerCluster; } // namespace reco #endif