ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHG4ForwardDualReadoutSteppingAction.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHG4ForwardDualReadoutSteppingAction.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef G4DETECTORS_PHG4FORWARDDUALREADOUTSTEPPINGACTION_H
4 #define G4DETECTORS_PHG4FORWARDDUALREADOUTSTEPPINGACTION_H
5 
7 
8 #include <Geant4/G4TouchableHandle.hh>
9 #include <Geant4/G4StepPoint.hh> // for G4StepPoint
10 
11 class G4Step;
12 class G4VPhysicalVolume;
13 class PHCompositeNode;
15 class PHG4Hit;
16 class PHG4HitContainer;
17 class PHG4Shower;
18 
20 {
21  public:
24 
27 
29  virtual bool UserSteppingAction(const G4Step*, bool);
30 
33  void SetTowerSize(G4double twrsze)
34  {
35  _tower_size = twrsze;
36  }
38  {
39  _readout_size = rdosze;
40  }
42  {
43  _detector_size = detsze;
44  }
45  private:
46  int FindTowerIndex(G4TouchableHandle touch, int& j, int& k);
47  int FindTowerIndexFromPosition(G4StepPoint* prePoint, int& j, int& k);
48 
49  int ParseG4VolumeName(G4VPhysicalVolume* volume, int& j, int& k);
50 
53 
60 
67 };
68 
69 #endif // G4DETECTORS_PHG4FORWARDDUALREADOUTSTEPPINGACTION_H