ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHG4CylinderGeom.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHG4CylinderGeom.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef G4DETECTORS_PHG4CYLINDERGEOM_H
4 #define G4DETECTORS_PHG4CYLINDERGEOM_H
5 
6 #include <phool/PHObject.h>
7 
8 #include <phool/phool.h>
9 
10 #include <cmath>
11 #include <iostream> // for cout, ostream
12 
13 class PHParameters;
14 
16 {
17  public:
18 
19  ~PHG4CylinderGeom() override {}
20 
21 // from PHObject
22  void identify(std::ostream& os = std::cout) const override;
23 
24  virtual int get_layer() const {PHOOL_VIRTUAL_WARN("get_layer()"); return -99999;}
25  virtual double get_radius() const {PHOOL_VIRTUAL_WARN("get_radius()");return NAN;}
26  virtual double get_thickness() const {PHOOL_VIRTUAL_WARN("get_thickness()");return NAN;}
27  virtual double get_zmin() const {PHOOL_VIRTUAL_WARN("get_zmin()");return NAN;}
28  virtual double get_zmax() const {PHOOL_VIRTUAL_WARN("get_zmax()");return NAN;}
29  virtual int get_nscint() const {PHOOL_VIRTUAL_WARN("get_nscint()"); return -99999;}
30  virtual double get_tiltangle() const {PHOOL_VIRTUAL_WARN("get_tiltangle()");return NAN;}
31  virtual double get_phi_slat_zero() const {PHOOL_VIRTUAL_WARN("get_phi_slat_zero()"); return NAN;}
32 
33  virtual void set_layer(const int) {PHOOL_VIRTUAL_WARN("set_layer(const int)");}
34  virtual void set_radius(const double) {PHOOL_VIRTUAL_WARN("set_radius(const double)");}
35  virtual void set_thickness(const double) {PHOOL_VIRTUAL_WARN("set_thickness(const double)");}
36  virtual void set_zmin(const double) {PHOOL_VIRTUAL_WARN("set_zmin(const double)");}
37  virtual void set_zmax(const double) {PHOOL_VIRTUAL_WARN("set_zmax(const double)");}
38  virtual void set_nscint(const int) {PHOOL_VIRTUAL_WARN("set_nscint(const int)"); return;}
39  virtual void set_tiltangle(const double) {PHOOL_VIRTUAL_WARN("set_tiltangle(const double)"); return;}
40  virtual void set_phi_slat_zero (const double) {PHOOL_VIRTUAL_WARN("set_phi_slat_zero (const double)"); return;}
41 
42  virtual void find_segment_center(const int /*segment_z_bin*/, const int /*segment_phi_bin*/, double /*location*/[]){PHOOL_VIRTUAL_WARN("find_sensor_center"); return;}
43  virtual void find_strip_center(const int /*segment_z_bin*/, const int /*segment_phi_bin*/, const int /*strip_column*/, const int /*strip_index*/, double /*location*/[]){PHOOL_VIRTUAL_WARN("find_strip_center"); return;}
44  virtual void find_strip_index_values(const int /*segment_z_bin*/, const double /*ypos*/, const double /*zpos*/, int &/*strip_y_index*/, int &/*strip_z_index*/){PHOOL_VIRTUAL_WARN("find_strip_index_values"); return;}
45  virtual void find_strip_center_local_coords(const int /*segment_z_bin*/, const int /*strip_y_index*/, const int /*strip_z_index*/, double /*location*/[]){PHOOL_VIRTUAL_WARN("find_strip_center_localcoords"); return;}
46 
47  virtual double get_strip_y_spacing() const {PHOOL_VIRTUAL_WARN("get_strip_y_spacing"); return NAN;}
48  virtual double get_strip_z_spacing() const {PHOOL_VIRTUAL_WARN("get_strip_z_spacing"); return NAN;}
49  virtual double get_strip_tilt() const {PHOOL_VIRTUAL_WARN("get_strip_tilt"); return NAN;}
50 
51  virtual int get_N_strip_columns() const {PHOOL_VIRTUAL_WARN("get_N_strip_columns"); return -9999;}
52  virtual int get_N_strips_per_column() const {PHOOL_VIRTUAL_WARN("get_N_strips_per_column"); return -9999;}
53  virtual int get_N_sensors_in_layer() const {PHOOL_VIRTUAL_WARN("get_N_sensors_in_layer"); return -9999;}
54 
55  virtual double get_pixel_z() const {PHOOL_VIRTUAL_WARN("get_pixel_z"); return NAN;}
56  virtual double get_pixel_x() const {PHOOL_VIRTUAL_WARN("get_pixel_x"); return NAN;}
57  virtual double get_pixel_thickness() const {PHOOL_VIRTUAL_WARN("get_pixel_thickness"); return NAN;}
58 
60  virtual void ImportParameters(const PHParameters & /*param*/) {return ;}
61 
62  protected:
64 
65  ClassDefOverride(PHG4CylinderGeom,1)
66 };
67 
68 #endif