Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-05 08:18:13

0001 #ifndef G4MVTX_CABLE_H
0002 #define G4MVTX_CABLE_H
0003 
0004 #include <string>
0005 
0006 class PHG4MvtxCable
0007 {
0008  public:
0009   PHG4MvtxCable();
0010 
0011   explicit PHG4MvtxCable(const std::string &name,
0012                          const std::string &coreMaterial,
0013                          const double &coreRadius,
0014                          const double &sheathRadius,
0015                          const double &xSouth, const double &xNorth,
0016                          const double &ySouth, const double &yNorth,
0017                          const double &zSouth, const double &zNorth,
0018                          const std::string &color)
0019     : m_name(name)
0020     , m_coreMaterial(coreMaterial)
0021     , m_coreRadius(coreRadius)
0022     , m_sheathRadius(sheathRadius)
0023     , m_xSouth(xSouth)
0024     , m_xNorth(xNorth)
0025     , m_ySouth(ySouth)
0026     , m_yNorth(yNorth)
0027     , m_zSouth(zSouth)
0028     , m_zNorth(zNorth)
0029     , m_color(color)
0030   {
0031   }
0032 
0033   virtual ~PHG4MvtxCable() = default;
0034 
0035   const std::string &get_name() { return m_name; }
0036   const std::string &get_coreMaterial() { return m_coreMaterial; }
0037   double get_coreRadius() { return m_coreRadius; }
0038   double get_sheathRadius() { return m_sheathRadius; }
0039   double get_xSouth() { return m_xSouth; }
0040   double get_xNorth() { return m_xNorth; }
0041   double get_ySouth() { return m_ySouth; }
0042   double get_yNorth() { return m_yNorth; }
0043   double get_zSouth() { return m_zSouth; }
0044   double get_zNorth() { return m_zNorth; }
0045   const std::string &get_color() { return m_color; }
0046 
0047  private:
0048   const std::string m_name {"cable"};
0049   const std::string m_coreMaterial {"G4_Cu"};
0050   const double m_coreRadius {1};
0051   const double m_sheathRadius {2};
0052   const double m_xSouth {0.};
0053   const double m_xNorth {1.};
0054   const double m_ySouth {0.};
0055   const double m_yNorth {1.};
0056   const double m_zSouth {0.};
0057   const double m_zNorth {1.};
0058   const std::string m_color {"red"};
0059 };
0060 
0061 #endif