ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHG4ScintillatorSlatv1.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHG4ScintillatorSlatv1.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef G4DETECTORS_PHG4SCINTILLATORSLATV1_H
4 #define G4DETECTORS_PHG4SCINTILLATORSLATV1_H
5 
6 #include "PHG4ScintillatorSlat.h"
7 
8 #include "PHG4ScintillatorSlatDefs.h" // for keytype
9 
10 #include <g4main/PHG4HitDefs.h>
11 
12 #include <iostream> // for cout, ostream
13 #include <set>
14 #include <utility> // for make_pair, pair
15 
17 {
18  public:
19 
22 
23  void identify(std::ostream& os = std::cout) const override;
24 
25  void add_edep(const double f, const double e, const double ly) override {edep+=f; eion+= e; light_yield+=ly;}
26  void add_hit_key(PHG4HitDefs::keytype key) override {hit_id.insert(key);}
27 
29  void set_light_yield(const double lightYield) {light_yield = lightYield;}
30 
31  short get_row() const override;
32  short get_column() const override;
33  PHG4ScintillatorSlatDefs::keytype get_key() const override {return key;}
34  double get_edep() const override {return edep;}
35  double get_eion() const override {return eion;}
36  double get_light_yield() const override {return light_yield;}
37  std::pair<std::set<PHG4HitDefs::keytype>::const_iterator, std::set<PHG4HitDefs::keytype>::const_iterator> get_hit_ids() const override {return std::make_pair(hit_id.begin(),hit_id.end());}
38 
39 
40  protected:
42  double edep;
43  double eion;
44  double light_yield;
45  std::set<PHG4HitDefs::keytype> hit_id;
46 
47 
48  ClassDefOverride(PHG4ScintillatorSlatv1,1)
49 };
50 
51 #endif