Back to home page

sPhenix code displayed by LXR

 
 

    


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

0001 #ifndef JETBACKGROUND_TOWERRHO_H
0002 #define JETBACKGROUND_TOWERRHO_H
0003 
0004 //===========================================================
0005 /// \file TowerRho.h
0006 /// \brief PHObject to store rho and sigma for calorimeter towers on an event-by-event basis
0007 /// \author Tanner Mengel
0008 //===========================================================
0009 
0010 #include <jetbase/Jet.h>
0011 
0012 #include <phool/PHObject.h>
0013 
0014 #include <iostream>
0015 
0016 class TowerRho : public PHObject
0017 {
0018  public:
0019   // enum for method of rho calculation
0020   enum Method
0021   {
0022     NONE = 0,
0023     AREA = 1,
0024     MULT = 2
0025   };
0026 
0027   ~TowerRho() override {};
0028 
0029   void identify(std::ostream &os = std::cout) const override { os << "TowerRho base class" << std::endl; };
0030   int isValid() const override { return 0; }
0031 
0032   // setters
0033   virtual void set_rho(float /*rho*/) {}
0034   virtual void set_sigma(float /*sigma*/) {}
0035   virtual void set_method(TowerRho::Method /*rho_method*/) {}
0036 
0037   // getters
0038   virtual float get_rho() { return 0; }
0039   virtual float get_sigma() { return 0; }
0040   virtual TowerRho::Method get_method() { return Method::NONE; }
0041 
0042  protected:
0043   TowerRho() {}  // ctor
0044 
0045  private:
0046   ClassDefOverride(TowerRho, 1);
0047 };
0048 
0049 #endif  // JETBACKGROUND_TOWERRHO_H