/
G4JLeicVTXSteppingAction.h
48 lines (39 loc) · 1.15 KB
/
G4JLeicVTXSteppingAction.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 G4JLEIC_G4JLEICVTXSTEPPINGACTION_H
#define G4JLEIC_G4JLEICVTXSTEPPINGACTION_H
#include <g4main/PHG4SteppingAction.h>
class G4Step;
class G4VPhysicalVolume;
class PHCompositeNode;
class G4JLeicVTXDetector;
class PHG4Hit;
class PHG4HitContainer;
class PHParametersContainer;
class G4JLeicVTXSteppingAction : public PHG4SteppingAction
{
public:
//! constructor
G4JLeicVTXSteppingAction(G4JLeicVTXDetector*, const PHParametersContainer*);
//! destructor
virtual ~G4JLeicVTXSteppingAction();
//! stepping action
virtual bool UserSteppingAction(const G4Step*, bool);
//! reimplemented from base class
virtual void SetInterfacePointers(PHCompositeNode*);
private:
//! pointer to the detector
G4JLeicVTXDetector* m_Detector;
//! pointer to hit container
PHG4HitContainer* m_HitContainer;
PHG4Hit* m_Hit;
PHG4HitContainer* m_SaveHitContainer;
G4VPhysicalVolume* m_SaveVolPre;
G4VPhysicalVolume* m_SaveVolPost;
int m_SaveTrackId;
int m_SavePreStepStatus;
int m_SavePostStepStatus;
double m_EdepSum;
double m_EionSum;
};
#endif // G4JLEIC_G4JLEICVTXSTEPPINGACTION_H