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