Back to home page

sPhenix code displayed by LXR

 
 

    


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

0001 #ifndef CENTRALITY_CENTRALITYINFO_H
0002 #define CENTRALITY_CENTRALITYINFO_H
0003 
0004 //===========================================================
0005 /// \file CentralityInfo.h
0006 /// \brief Lightweight centrality information storage node
0007 /// \author Dennis V. Perepelitsa
0008 //===========================================================
0009 
0010 #include <phool/PHObject.h>
0011 
0012 class CentralityInfo : public PHObject
0013 {
0014  public:
0015   ~CentralityInfo() override{};
0016 
0017   void identify(std::ostream &os = std::cout) const override { os << "CentralityInfo base class" << std::endl; };
0018   int isValid() const override { return 0; }
0019   virtual void CopyTo(CentralityInfo *) {return;}
0020 
0021   enum PROP
0022   {
0023 
0024     //! Minimum Bias Detector (MBD) North-side charge sum
0025     mbd_N = 0,
0026     //! MBD South-side charge sum
0027     mbd_S = 1,
0028     //! MBD North+South charge sum
0029     mbd_NS = 2,
0030 
0031     //! sPHENIX Event Plane Detector (sEPD) North-side energy sum
0032     epd_N = 3,
0033     //! sEPD South-side energy sum
0034     epd_S = 4,
0035     //! sEPD North+South energy sum
0036     epd_NS = 5,
0037 
0038     //! Impact parameter (b) in HIJING event
0039     bimp = 6
0040 
0041   };
0042 
0043   virtual bool has_quantity(const PROP /*prop_id*/) const { return false; }
0044   virtual float get_quantity(const PROP /*prop_id*/) const { return -99; }
0045   virtual void set_quantity(const PROP /*prop_id*/, const float /*value*/) { return; }
0046 
0047   virtual bool has_centile(const PROP /*prop_id*/) const { return false; }
0048   virtual float get_centile(const PROP /*prop_id*/) const { return -99; }
0049   virtual void set_centile(const PROP /*prop_id*/, const float /*value*/) { return; }
0050 
0051   virtual bool has_centrality_bin(const PROP /*prop_id*/) const { return false; }
0052   virtual int get_centrality_bin(const PROP /*prop_id*/) const { return -99; }
0053   virtual void set_centrality_bin(const PROP /*prop_id*/, const int /*value*/) { return; }
0054 
0055  protected:
0056   CentralityInfo() {}
0057 
0058  private:
0059   ClassDefOverride(CentralityInfo, 1);
0060 };
0061 
0062 #endif