ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHG4CylinderCellv1.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHG4CylinderCellv1.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef G4DETECTORS_PHG4CYLINDERCELLV1_H
4 #define G4DETECTORS_PHG4CYLINDERCELLV1_H
5 
6 #include "PHG4CylinderCell.h"
7 
8 #include "PHG4Cell.h" // for PHG4Cell::EdepMap, PHG4Cell::Showe...
9 #include "PHG4CylinderCellDefs.h" // for keytype
10 
11 #include <g4main/PHG4HitDefs.h>
12 
13 #include <iostream> // for cout, ostream
14 #include <map>
15 #include <utility> // for make_pair
16 
18 {
19  public:
20 
22  ~PHG4CylinderCellv1() override{}
23 
24  void identify(std::ostream& os = std::cout) const override;
25 
27  {return std::make_pair(edeps.begin(), edeps.end());}
28  void add_edep(const PHG4HitDefs::keytype g4hitid, const float edep) override;
29  void add_edep(const PHG4HitDefs::keytype g4hitid, const float edep, const float light_yield) override;
30 
32  {return std::make_pair(showeredeps.begin(), showeredeps.end());}
33  void add_shower_edep(const int g4showerid, const float edep) override;
34 
35  void set_cell_id(const PHG4CylinderCellDefs::keytype id) override {cellid = id;}
36  void set_layer(const unsigned int i) override {layer = i;}
37  double get_edep() const override;
38  unsigned int get_layer() const override {return layer;}
40  int get_binz() const override {return binz;}
41  int get_binphi() const override {return binphi;}
42  int get_bineta() const override {return get_binz();}
43  float get_light_yield() const override {return light_yield;}
44 
45 
46  void set_zbin(const int i) override {binz = i;}
47  void set_etabin(const int i) override {set_zbin(i);}
48  void set_phibin(const int i) override {binphi = i;}
49  void set_light_yield(const float lightYield) override { light_yield = lightYield;}
50 
51  protected:
52 
53  unsigned int layer;
55  int binz;
56  int binphi;
59  float light_yield;
60 
61  ClassDefOverride(PHG4CylinderCellv1,2)
62 };
63 
64 #endif