Class Reference for E1039 Core & Analysis Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PHG4CylinderCellv1.h
Go to the documentation of this file.
1 #ifndef PHG4CYLINDERCELLV1_H
2 #define PHG4CYLINDERCELLV1_H
3 
4 #include "PHG4CylinderCell.h"
5 #include <g4main/PHG4HitDefs.h>
6 
7 #include <cmath>
8 #include <map>
9 
11 {
12  public:
13 
15  virtual ~PHG4CylinderCellv1(){}
16 
17  void identify(std::ostream& os = std::cout) const;
18 
20  {return std::make_pair(edeps.begin(), edeps.end());}
21  void add_edep(const PHG4HitDefs::keytype g4hitid, const float edep);
22  void add_edep(const PHG4HitDefs::keytype g4hitid, const float edep, const float light_yield);
23 
25  {return std::make_pair(showeredeps.begin(), showeredeps.end());}
26  void add_shower_edep(const int g4showerid, const float edep);
27 
29  void set_layer(const unsigned int i) {layer = i;}
30  double get_edep() const;
31  unsigned int get_layer() const {return layer;}
33  int get_binz() const {return binz;}
34  int get_binphi() const {return binphi;}
35  int get_bineta() const {return get_binz();}
36  float get_light_yield() const {return light_yield;}
37 
38 
39  void set_zbin(const int i) {binz = i;}
40  void set_etabin(const int i) {set_zbin(i);}
41  void set_phibin(const int i) {binphi = i;}
42  void set_light_yield(const float lightYield) { light_yield = lightYield; }
43 
44  protected:
45 
46  unsigned int layer;
48  int binz;
49  int binphi;
52  float light_yield;
53 
54  ClassDef(PHG4CylinderCellv1,2)
55 };
56 
57 #endif
std::pair< ShowerEdepConstIterator, ShowerEdepConstIterator > ShowerEdepConstRange
Definition: PHG4Cell.h:25
std::pair< EdepConstIterator, EdepConstIterator > EdepConstRange
Definition: PHG4Cell.h:19
std::map< int, float > ShowerEdepMap
Definition: PHG4Cell.h:21
std::map< PHG4HitDefs::keytype, float > EdepMap
Definition: PHG4Cell.h:15
ShowerEdepConstRange get_g4showers()
void set_light_yield(const float lightYield)
void set_etabin(const int i)
double get_edep() const
unsigned int get_layer() const
void set_layer(const unsigned int i)
PHG4CylinderCellDefs::keytype get_cell_id() const
void set_zbin(const int i)
EdepConstRange get_g4hits()
PHG4CylinderCellDefs::keytype cellid
void identify(std::ostream &os=std::cout) const
float get_light_yield() const
void set_cell_id(const PHG4CylinderCellDefs::keytype id)
void add_shower_edep(const int g4showerid, const float edep)
ShowerEdepMap showeredeps
void add_edep(const PHG4HitDefs::keytype g4hitid, const float edep)
void set_phibin(const int i)
unsigned int keytype
Definition: PHG4HitDefs.h:8