Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-06 08:18:57

0001 // Tell emacs that this is a C++ source
0002 //  -*- C++ -*-.
0003 #ifndef G4DETECTORS_PHG4CYLINDERGEOMV3_H
0004 #define G4DETECTORS_PHG4CYLINDERGEOMV3_H
0005 
0006 #include "PHG4CylinderGeomv2.h"
0007 
0008 #include <iostream>  // for cout, ostream
0009 
0010 class PHG4CylinderGeomv3 : public PHG4CylinderGeomv2
0011 {
0012  public:
0013   PHG4CylinderGeomv3() = default;
0014   PHG4CylinderGeomv3(const double r, const double zmi, const double zma, const double thickn, const int n_scint,
0015                      const double tangl, const double phi_slat_null)
0016     : PHG4CylinderGeomv2(r, zmi, zma, thickn, n_scint)
0017     , tiltangle(tangl)
0018     , phi_slat_zero(phi_slat_null)
0019   {
0020   }
0021 
0022   ~PHG4CylinderGeomv3() override {}
0023 
0024   // from PHObject
0025   void identify(std::ostream& os = std::cout) const override;
0026 
0027   void set_tiltangle(const double phi) override { tiltangle = phi; }
0028   void set_phi_slat_zero(const double phi) override { phi_slat_zero = phi; }
0029 
0030   double get_phi_slat_zero() const override { return phi_slat_zero; }
0031   double get_tiltangle() const override { return tiltangle; }
0032 
0033  protected:
0034   double tiltangle{std::numeric_limits<double>::quiet_NaN()};
0035   double phi_slat_zero{std::numeric_limits<double>::quiet_NaN()};
0036 
0037   ClassDefOverride(PHG4CylinderGeomv3, 1)
0038 };
0039 
0040 #endif