Back to home page

sPhenix code displayed by LXR

 
 

    


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

0001 // Tell emacs that this is a C++ source
0002 //  -*- C++ -*-.
0003 #ifndef G4DETECTORS_PHG4CYLINDERCELLV2_H
0004 #define G4DETECTORS_PHG4CYLINDERCELLV2_H
0005 
0006 #include "PHG4CylinderCellv1.h"
0007 
0008 #include <iostream>
0009 #include <string>  // for string
0010 
0011 class PHG4CylinderCellv2 : public PHG4CylinderCellv1
0012 {
0013  public:
0014   PHG4CylinderCellv2();
0015   ~PHG4CylinderCellv2() override {}
0016 
0017   // from PHObject
0018   void identify(std::ostream& os = std::cout) const override;
0019 
0020   void set_sensor_index(const std::string& si) override { sensor_index = si; }
0021   std::string get_sensor_index() const override { return sensor_index; }
0022 
0023   void set_ladder_phi_index(const int i) override { ladder_phi_index = i; }
0024   int get_ladder_phi_index() const override { return ladder_phi_index; }
0025 
0026   void set_ladder_z_index(const int i) override { ladder_z_index = i; }
0027   int get_ladder_z_index() const override { return ladder_z_index; }
0028 
0029  protected:
0030   int ladder_phi_index;
0031   int ladder_z_index;
0032   std::string sensor_index;
0033 
0034   ClassDefOverride(PHG4CylinderCellv2, 1)
0035 };
0036 
0037 #endif