Class Reference for E1039 Core & Analysis Software
PHG4BlockGeom.h
Go to the documentation of this file.
1 #ifndef PHG4BlockGeom_H__
2 #define PHG4BlockGeom_H__
3 
4 #include <phool/PHObject.h>
5 
6 #include <phool/phool.h>
7 #include <cmath>
8 
9 class PHG4BlockGeom: public PHObject
10 {
11  public:
12 
13  virtual ~PHG4BlockGeom() {}
14 
15  virtual void identify(std::ostream& os = std::cout) const;
16 
17  virtual int get_layer() const {PHOOL_VIRTUAL_WARN("get_layer()"); return -99999;}
18  virtual double get_size_x() const {PHOOL_VIRTUAL_WARN("get_size_x()");return NAN;}
19  virtual double get_size_y() const {PHOOL_VIRTUAL_WARN("get_size_y()");return NAN;}
20  virtual double get_size_z() const {PHOOL_VIRTUAL_WARN("get_size_z()");return NAN;}
21  virtual double get_center_x() const {PHOOL_VIRTUAL_WARN("get_place_x()");return NAN;}
22  virtual double get_center_y() const {PHOOL_VIRTUAL_WARN("get_place_y()");return NAN;}
23  virtual double get_center_z() const {PHOOL_VIRTUAL_WARN("get_place_z()");return NAN;}
24  virtual double get_z_rot() const {PHOOL_VIRTUAL_WARN("get_z_rot()");return NAN;}
25 
26  virtual double get_width() const {PHOOL_VIRTUAL_WARN("get_width()");return NAN;}
27  virtual double get_length() const {PHOOL_VIRTUAL_WARN("get_length()");return NAN;}
28  virtual double get_thickness() const {PHOOL_VIRTUAL_WARN("get_thickness()");return NAN;}
29 
30  virtual double get_rot_matrix(const int, const int) const {PHOOL_VIRTUAL_WARN("get_rot_matrix(const int, const int)"); return NAN;}
31 
32  virtual void set_layer(const int i) {PHOOL_VIRTUAL_WARN("set_layer(const int)");}
33  virtual void set_size(const double sizex, const double sizey, const double sizez)
34  {PHOOL_VIRTUAL_WARN("set_size(const double, const double, const double)");}
35  virtual void set_place(const double placex, const double placey, const double placez)
36  {PHOOL_VIRTUAL_WARN("set_place(const double, const double, const double)");}
37  virtual void set_z_rot(const double z) {PHOOL_VIRTUAL_WARN("set_z_rot(const double)");}
38 
39  virtual void convert_local_to_global(const double, const double, const double,
40  double &, double &, double &) const
41  {PHOOL_VIRTUAL_WARN("convert_local_to_global(const double, const double, const double, double &, double &, double &)");}
42  virtual void convert_global_to_local(const double, const double, const double,
43  double &, double &, double &) const
44  {PHOOL_VIRTUAL_WARN("convert_global_to_local(const double, const double, const double, double &, double &, double &)");}
45 
46  protected:
48 
49  ClassDef(PHG4BlockGeom,1)
50 };
51 
52 #endif
virtual double get_center_z() const
Definition: PHG4BlockGeom.h:23
virtual double get_size_x() const
Definition: PHG4BlockGeom.h:18
virtual double get_thickness() const
Definition: PHG4BlockGeom.h:28
virtual void identify(std::ostream &os=std::cout) const
Definition: PHG4BlockGeom.cc:7
virtual double get_rot_matrix(const int, const int) const
Definition: PHG4BlockGeom.h:30
virtual double get_center_x() const
Definition: PHG4BlockGeom.h:21
virtual double get_width() const
Definition: PHG4BlockGeom.h:26
virtual void set_place(const double placex, const double placey, const double placez)
Definition: PHG4BlockGeom.h:35
virtual void set_layer(const int i)
Definition: PHG4BlockGeom.h:32
virtual double get_size_y() const
Definition: PHG4BlockGeom.h:19
virtual double get_center_y() const
Definition: PHG4BlockGeom.h:22
virtual ~PHG4BlockGeom()
Definition: PHG4BlockGeom.h:13
virtual void convert_global_to_local(const double, const double, const double, double &, double &, double &) const
Definition: PHG4BlockGeom.h:42
virtual double get_size_z() const
Definition: PHG4BlockGeom.h:20
virtual int get_layer() const
Definition: PHG4BlockGeom.h:17
virtual void set_z_rot(const double z)
Definition: PHG4BlockGeom.h:37
virtual double get_z_rot() const
Definition: PHG4BlockGeom.h:24
virtual void convert_local_to_global(const double, const double, const double, double &, double &, double &) const
Definition: PHG4BlockGeom.h:39
virtual void set_size(const double sizex, const double sizey, const double sizez)
Definition: PHG4BlockGeom.h:33
virtual double get_length() const
Definition: PHG4BlockGeom.h:27
#define PHOOL_VIRTUAL_WARN(x)
Definition: phool.h:27