Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHG4CylinderCell.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHG4CylinderCell.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef G4DETECTORS_PHG4CYLINDERCELL_H
4 #define G4DETECTORS_PHG4CYLINDERCELL_H
5 
6 #include "PHG4Cell.h"
7 
8 #include "PHG4CylinderCellDefs.h"
9 
10 #include <g4main/PHG4HitDefs.h>
11 
12 #include <phool/PHObject.h>
13 
14 #include <cmath>
15 #include <map>
16 
17 class PHG4CylinderCell : public PHG4Cell
18 {
19  public:
20  ~PHG4CylinderCell() override {}
21 
22  // from PHObject
23  void identify(std::ostream& os = std::cout) const override
24  {
25  os << "PHG4CylinderCell base class" << std::endl;
26  }
27 
28  void set_ladder_phi_index(const int) override { return; }
29  int get_ladder_phi_index() const override { return -9999; }
30 
31  void set_ladder_z_index(const int) override { return; }
32  int get_ladder_z_index() const override { return -9999; }
33 
34  // our own - not inherited
35  virtual void set_cell_id(const PHG4CylinderCellDefs::keytype) { return; }
36  virtual void set_layer(const unsigned int) { return; }
37 
38  virtual unsigned int get_layer() const { return 0xFFFFFFFF; }
39  virtual PHG4CylinderCellDefs::keytype get_cell_id() const { return 0xFFFFFFFF; }
40  virtual int get_binz() const { return -1; }
41  virtual int get_binphi() const { return -1; }
42  virtual int get_bineta() const { return -1; }
43 
44  virtual void set_etabin(const int) { return; }
45  virtual void set_light_yield(float) { return; }
46 
47  virtual void set_fiber_ID(int) { return; }
48  virtual int get_fiber_ID() const { return -1; }
49 
50  virtual void set_sensor_index(const std::string&) { return; }
51  virtual std::string get_sensor_index() const { return ""; }
52 
53  virtual int get_j_index() const { return -9999; }
54  virtual void set_j_index(const int) { return; }
55  virtual int get_k_index() const { return -9999; }
56  virtual void set_k_index(const int) { return; }
57  virtual int get_l_index() const { return -9999; }
58  virtual void set_l_index(const int) { return; }
59 
60  protected:
62  ClassDefOverride(PHG4CylinderCell, 2)
63 };
64 
65 #endif