ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHG4ScintillatorSlat.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHG4ScintillatorSlat.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef G4DETECTORS_PHG4SCINTILLATORSLAT_H
4 #define G4DETECTORS_PHG4SCINTILLATORSLAT_H
5 
7 
8 #include <g4main/PHG4HitDefs.h>
9 #include <phool/PHObject.h>
10 #include <cmath>
11 #include <map>
12 #include <set>
13 
15 {
16  public:
17 
18  ~PHG4ScintillatorSlat() override{}
19 
20 // from PHObject
21  void identify(std::ostream& os = std::cout) const override {
22  os << "PHG4ScintillatorSlat base class" << std::endl;
23  }
24 
25  virtual void add_edep(const double /*edep*/, const double /*e*/, const double /*light_yield*/) {return;}
26 
27  virtual void set_key(const PHG4ScintillatorSlatDefs::keytype) {return;}
28  virtual void add_hit_key(PHG4HitDefs::keytype) {return;}
29 
30  virtual short get_column() const {return -1;}
31  virtual short get_row() const {return -1;}
32  virtual PHG4ScintillatorSlatDefs::keytype get_key() const {return 0xFFFFFFFF;}
33 
34  virtual double get_edep() const {return NAN;}
35  virtual double get_eion() const {return NAN;}
36  virtual double get_light_yield() const {return NAN;}
37  virtual std::pair<std::set<PHG4HitDefs::keytype>::const_iterator, std::set<PHG4HitDefs::keytype>::const_iterator> get_hit_ids() const = 0;
38 
39 
40  protected:
41 
43  ClassDefOverride(PHG4ScintillatorSlat,1)
44 };
45 
46 #endif