/
AllSiliconTrackerSteppingAction.h
48 lines (39 loc) · 1.17 KB
/
AllSiliconTrackerSteppingAction.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// Tell emacs that this is a C++ source
// -*- C++ -*-.
#ifndef ALLSILICONTRACKERSTEPPINGACTION_H
#define ALLSILICONTRACKERSTEPPINGACTION_H
#include <g4main/PHG4SteppingAction.h>
class AllSiliconTrackerDetector;
class G4Step;
class G4VPhysicalVolume;
class PHCompositeNode;
class PHG4Hit;
class PHG4HitContainer;
class PHParameters;
class AllSiliconTrackerSteppingAction : public PHG4SteppingAction
{
public:
//! constructor
AllSiliconTrackerSteppingAction(AllSiliconTrackerDetector*, const PHParameters* parameters);
//! destructor
virtual ~AllSiliconTrackerSteppingAction();
//! stepping action
virtual bool UserSteppingAction(const G4Step*, bool);
private:
//! pointer to the detector
AllSiliconTrackerDetector* m_Detector;
const PHParameters* m_Params;
//! pointer to hit container
PHG4HitContainer* m_HitContainer;
PHG4HitContainer* m_AbsorberHitContainer;
PHG4Hit* m_Hit;
PHG4HitContainer* m_SaveHitContainer;
G4VPhysicalVolume* m_SaveVolPre;
G4VPhysicalVolume* m_SaveVolPost;
int m_SaveTrackId;
int m_SavePreStepStatus;
int m_SavePostStepStatus;
int m_BlackHoleFlag;
double m_EdepSum;
};
#endif // ALLSILICONTRACKERSTEPPINGACTION_H