Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHG4CylinderGeomv3.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHG4CylinderGeomv3.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef G4DETECTORS_PHG4CYLINDERGEOMV3_H
4 #define G4DETECTORS_PHG4CYLINDERGEOMV3_H
5 
6 #include "PHG4CylinderGeomv2.h"
7 
8 #include <iostream> // for cout, ostream
9 
11 {
12  public:
13  PHG4CylinderGeomv3() = default;
14  PHG4CylinderGeomv3(const double r, const double zmi, const double zma, const double thickn, const int n_scint,
15  const double tangl, const double phi_slat_null)
16  : PHG4CylinderGeomv2(r, zmi, zma, thickn, n_scint)
17  , tiltangle(tangl)
18  , phi_slat_zero(phi_slat_null)
19  {
20  }
21 
22  ~PHG4CylinderGeomv3() override {}
23 
24  // from PHObject
25  void identify(std::ostream& os = std::cout) const override;
26 
27  void set_tiltangle(const double phi) override { tiltangle = phi; }
28  void set_phi_slat_zero(const double phi) override { phi_slat_zero = phi; }
29 
30  double get_phi_slat_zero() const override { return phi_slat_zero; }
31  double get_tiltangle() const override { return tiltangle; }
32 
33  protected:
34  double tiltangle {std::numeric_limits<double>::quiet_NaN()};
35  double phi_slat_zero {std::numeric_limits<double>::quiet_NaN()};
36 
37  ClassDefOverride(PHG4CylinderGeomv3, 1)
38 };
39 
40 #endif