Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-05 08:16:27

0001 #ifndef CENTRALITY_CENTRALITYINFOV2_H
0002 #define CENTRALITY_CENTRALITYINFOV2_H
0003 
0004 #include "CentralityInfov1.h"
0005 
0006 #include <iostream>
0007 #include <map>
0008 
0009 class CentralityInfov2 : public CentralityInfov1
0010 {
0011  public:
0012   CentralityInfov2() = default;
0013   ~CentralityInfov2() override = default;
0014 
0015   void identify(std::ostream &os = std::cout) const override;
0016   void Reset() override {}
0017 
0018   PHObject* CloneMe() const override { return new CentralityInfov2(*this); }
0019   void CopyTo(CentralityInfo *info) override;
0020 
0021   bool has_centrality_bin(const PROP prop_id) const override;
0022   int get_centrality_bin(const PROP prop_id) const override;
0023   void set_centrality_bin(const PROP prop_id, const int value) override;
0024  private:
0025 
0026   std::map<int, int> _centrality_bin_map;
0027 
0028   ClassDefOverride(CentralityInfov2, 1);
0029 };
0030 
0031 #endif