ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHG4BlockGeom.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHG4BlockGeom.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef G4DETECTORS_PHG4BLOCKGEOM_H
4 #define G4DETECTORS_PHG4BLOCKGEOM_H
5 
6 #include <phool/PHObject.h>
7 
8 #include <phool/phool.h>
9 
10 #include <iostream> // for cout, ostream
11 #include <cmath>
12 
13 class PHG4BlockGeom: public PHObject
14 {
15  public:
16 
17  ~PHG4BlockGeom() override {}
18 
19 // from PHObject
20  void identify(std::ostream& os = std::cout) const override;
21 
22  virtual int get_layer() const {PHOOL_VIRTUAL_WARN("get_layer()"); return -99999;}
23  virtual double get_size_x() const {PHOOL_VIRTUAL_WARN("get_size_x()");return NAN;}
24  virtual double get_size_y() const {PHOOL_VIRTUAL_WARN("get_size_y()");return NAN;}
25  virtual double get_size_z() const {PHOOL_VIRTUAL_WARN("get_size_z()");return NAN;}
26  virtual double get_center_x() const {PHOOL_VIRTUAL_WARN("get_place_x()");return NAN;}
27  virtual double get_center_y() const {PHOOL_VIRTUAL_WARN("get_place_y()");return NAN;}
28  virtual double get_center_z() const {PHOOL_VIRTUAL_WARN("get_place_z()");return NAN;}
29  virtual double get_z_rot() const {PHOOL_VIRTUAL_WARN("get_z_rot()");return NAN;}
30 
31  virtual double get_width() const {PHOOL_VIRTUAL_WARN("get_width()");return NAN;}
32  virtual double get_length() const {PHOOL_VIRTUAL_WARN("get_length()");return NAN;}
33  virtual double get_thickness() const {PHOOL_VIRTUAL_WARN("get_thickness()");return NAN;}
34 
35  virtual double get_rot_matrix(const int, const int) const {PHOOL_VIRTUAL_WARN("get_rot_matrix(const int, const int)"); return NAN;}
36 
37  virtual void set_layer(const int) {PHOOL_VIRTUAL_WARN("set_layer(const int)");}
38  virtual void set_size(const double /*sizex*/, const double /*sizey*/, const double /*sizez*/)
39  {PHOOL_VIRTUAL_WARN("set_size(const double, const double, const double)");}
40  virtual void set_place(const double /*placex*/, const double /*placey*/, const double /*placez*/)
41  {PHOOL_VIRTUAL_WARN("set_place(const double, const double, const double)");}
42  virtual void set_z_rot(const double) {PHOOL_VIRTUAL_WARN("set_z_rot(const double)");}
43 
44  virtual void convert_local_to_global(const double, const double, const double,
45  double &, double &, double &) const
46  {PHOOL_VIRTUAL_WARN("convert_local_to_global(const double, const double, const double, double &, double &, double &)");}
47  virtual void convert_global_to_local(const double, const double, const double,
48  double &, double &, double &) const
49  {PHOOL_VIRTUAL_WARN("convert_global_to_local(const double, const double, const double, double &, double &, double &)");}
50 
51  protected:
53 
54  ClassDefOverride(PHG4BlockGeom,1)
55 };
56 
57 #endif