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_PHG4CYLINDERGEOMV2_H
0004 #define G4DETECTORS_PHG4CYLINDERGEOMV2_H
0005 
0006 #include "PHG4CylinderGeomv1.h"
0007 
0008 #include <iostream>  // for cout, ostream
0009 
0010 class PHParameters;
0011 
0012 class PHG4CylinderGeomv2 : public PHG4CylinderGeomv1
0013 {
0014  public:
0015   PHG4CylinderGeomv2() {}
0016   PHG4CylinderGeomv2(const double r, const double zmi, const double zma, const double thickn, const int n_scint)
0017     : PHG4CylinderGeomv1(r, zmi, zma, thickn)
0018     , nscint(n_scint)
0019   {
0020   }
0021 
0022   ~PHG4CylinderGeomv2() override {}
0023 
0024   // from PHObject
0025   void identify(std::ostream& os = std::cout) const override;
0026 
0027   void set_nscint(const int i) override { nscint = i; }
0028   int get_nscint() const override { return nscint; }
0029 
0030   //! load parameters from PHParameters, which interface to Database/XML/ROOT files
0031   void ImportParameters(const PHParameters& param) override;
0032 
0033  protected:
0034   int nscint = -9999;
0035 
0036   ClassDefOverride(PHG4CylinderGeomv2, 1)
0037 };
0038 
0039 #endif