Geant4 VMC
Version 6.8
Toggle main menu visibility
Loading...
Searching...
No Matches
source
event
include
TG4SpecialStackingAction.h
Go to the documentation of this file.
1
#ifndef TG4_STACKING_ACTION_H
2
#define TG4_STACKING_ACTION_H
3
4
//------------------------------------------------
5
// The Geant4 Virtual Monte Carlo package
6
// Copyright (C) 2007 - 2014 Ivana Hrivnacova
7
// All rights reserved.
8
//
9
// For the licensing terms see geant4_vmc/LICENSE.
10
// Contact: root-vmc@cern.ch
11
//-------------------------------------------------
12
17
18
#include "
TG4Verbose.h
"
19
20
#include <G4UserStackingAction.hh>
21
#include <globals.hh>
22
23
class
G4Track;
24
class
G4TrackStack;
25
37
38
#include "
TG4SpecialStackingActionMessenger.h
"
39
40
class
TG4SpecialStackingAction
:
public
G4UserStackingAction
,
public
TG4Verbose
41
{
42
public
:
43
TG4SpecialStackingAction
();
44
virtual
~TG4SpecialStackingAction
();
45
46
// methods
47
G4ClassificationOfNewTrack
ClassifyNewTrack
(
const
G4Track* track);
48
void
NewStage
();
49
void
PrepareNewEvent
();
50
51
// set method
52
void
SetSkipNeutrino
(G4bool value);
53
void
SetWaitPrimary
(G4bool value);
54
55
// get method
56
G4bool
GetSkipNeutrino
()
const
;
57
G4bool
GetWaitPrimary
()
const
;
58
59
private
:
61
TG4SpecialStackingAction
(
const
TG4SpecialStackingAction
& right);
63
TG4SpecialStackingAction
&
operator=
(
const
TG4SpecialStackingAction
& right);
64
65
// data members
66
TG4SpecialStackingActionMessenger
fMessenger
;
68
G4int
fStage
;
70
G4bool
fSkipNeutrino
;
73
G4bool
fWaitPrimary
;
74
};
75
76
// inline functions
77
79
inline
void
TG4SpecialStackingAction::SetSkipNeutrino
(G4bool value)
80
{
81
fSkipNeutrino
= value;
82
}
83
86
inline
void
TG4SpecialStackingAction::SetWaitPrimary
(G4bool value)
87
{
88
fWaitPrimary
= value;
89
}
90
92
inline
G4bool
TG4SpecialStackingAction::GetSkipNeutrino
()
const
93
{
94
return
fSkipNeutrino
;
95
}
96
98
inline
G4bool
TG4SpecialStackingAction::GetWaitPrimary
()
const
99
{
100
return
fWaitPrimary
;
101
}
102
103
#endif
// TG4_STACKING_ACTION_H
TG4SpecialStackingActionMessenger.h
Definition of the TG4SpecialStackingActionMessenger class.
TG4Verbose.h
Definition of the TG4Verbose class.
G4UserStackingAction
TG4SpecialStackingActionMessenger
Messenger class that defines commands for TG4StackingAction.
Definition
TG4SpecialStackingActionMessenger.h:37
TG4SpecialStackingAction::TG4SpecialStackingAction
TG4SpecialStackingAction()
Definition
TG4SpecialStackingAction.cxx:26
TG4SpecialStackingAction::fStage
G4int fStage
Stage number.
Definition
TG4SpecialStackingAction.h:68
TG4SpecialStackingAction::~TG4SpecialStackingAction
virtual ~TG4SpecialStackingAction()
Definition
TG4SpecialStackingAction.cxx:40
TG4SpecialStackingAction::GetSkipNeutrino
G4bool GetSkipNeutrino() const
Return the option for skipping neutrino.
Definition
TG4SpecialStackingAction.h:92
TG4SpecialStackingAction::fMessenger
TG4SpecialStackingActionMessenger fMessenger
Definition
TG4SpecialStackingAction.h:66
TG4SpecialStackingAction::operator=
TG4SpecialStackingAction & operator=(const TG4SpecialStackingAction &right)
Not implemented.
TG4SpecialStackingAction::fSkipNeutrino
G4bool fSkipNeutrino
Option to skip tracking of all neutrina.
Definition
TG4SpecialStackingAction.h:70
TG4SpecialStackingAction::SetWaitPrimary
void SetWaitPrimary(G4bool value)
Definition
TG4SpecialStackingAction.h:86
TG4SpecialStackingAction::fWaitPrimary
G4bool fWaitPrimary
Definition
TG4SpecialStackingAction.h:73
TG4SpecialStackingAction::SetSkipNeutrino
void SetSkipNeutrino(G4bool value)
Set the option for skipping neutrino.
Definition
TG4SpecialStackingAction.h:79
TG4SpecialStackingAction::PrepareNewEvent
void PrepareNewEvent()
Definition
TG4SpecialStackingAction.cxx:92
TG4SpecialStackingAction::TG4SpecialStackingAction
TG4SpecialStackingAction(const TG4SpecialStackingAction &right)
Not implemented.
TG4SpecialStackingAction::GetWaitPrimary
G4bool GetWaitPrimary() const
Return the option for skipping neutrino.
Definition
TG4SpecialStackingAction.h:98
TG4SpecialStackingAction::NewStage
void NewStage()
Definition
TG4SpecialStackingAction.cxx:73
TG4SpecialStackingAction::ClassifyNewTrack
G4ClassificationOfNewTrack ClassifyNewTrack(const G4Track *track)
Definition
TG4SpecialStackingAction.cxx:50
TG4Verbose::TG4Verbose
TG4Verbose(const G4String &cmdName)
Definition
TG4Verbose.cxx:24
Generated on
for Geant4 VMC by
1.17.0