Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-05 08:17:44

0001 // Tell emacs that this is a C++ source
0002 //  -*- C++ -*-.
0003 #ifndef G4DETECTORS_PHG4CYLINDERCELL_H
0004 #define G4DETECTORS_PHG4CYLINDERCELL_H
0005 
0006 #include "PHG4Cell.h"
0007 
0008 #include "PHG4CylinderCellDefs.h"
0009 
0010 #include <g4main/PHG4HitDefs.h>
0011 
0012 #include <phool/PHObject.h>
0013 
0014 #include <cmath>
0015 #include <map>
0016 
0017 class PHG4CylinderCell : public PHG4Cell
0018 {
0019  public:
0020   ~PHG4CylinderCell() override {}
0021 
0022   // from PHObject
0023   void identify(std::ostream& os = std::cout) const override
0024   {
0025     os << "PHG4CylinderCell base class" << std::endl;
0026   }
0027 
0028   void set_ladder_phi_index(const int) override { return; }
0029   int get_ladder_phi_index() const override { return -9999; }
0030 
0031   void set_ladder_z_index(const int) override { return; }
0032   int get_ladder_z_index() const override { return -9999; }
0033 
0034   // our own - not inherited
0035   virtual void set_cell_id(const PHG4CylinderCellDefs::keytype) { return; }
0036   virtual void set_layer(const unsigned int) { return; }
0037 
0038   virtual unsigned int get_layer() const { return 0xFFFFFFFF; }
0039   virtual PHG4CylinderCellDefs::keytype get_cell_id() const { return 0xFFFFFFFF; }
0040   virtual int get_binz() const { return -1; }
0041   virtual int get_binphi() const { return -1; }
0042   virtual int get_bineta() const { return -1; }
0043 
0044   virtual void set_etabin(const int) { return; }
0045   virtual void set_light_yield(float) { return; }
0046 
0047   virtual void set_fiber_ID(int) { return; }
0048   virtual int get_fiber_ID() const { return -1; }
0049 
0050   virtual void set_sensor_index(const std::string&) { return; }
0051   virtual std::string get_sensor_index() const { return ""; }
0052 
0053   virtual int get_j_index() const { return -9999; }
0054   virtual void set_j_index(const int) { return; }
0055   virtual int get_k_index() const { return -9999; }
0056   virtual void set_k_index(const int) { return; }
0057   virtual int get_l_index() const { return -9999; }
0058   virtual void set_l_index(const int) { return; }
0059 
0060  protected:
0061   PHG4CylinderCell() {}
0062   ClassDefOverride(PHG4CylinderCell, 2)
0063 };
0064 
0065 #endif