Geant4 VMC Version 6.6
Loading...
Searching...
No Matches
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
23class G4Track;
24class G4TrackStack;
25
37
39
41{
42 public:
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:
64
65 // data members
68 G4int fStage;
74};
75
76// inline functions
77
80{
81 fSkipNeutrino = value;
82}
83
87{
88 fWaitPrimary = value;
89}
90
93{
94 return fSkipNeutrino;
95}
96
99{
100 return fWaitPrimary;
101}
102
103#endif // TG4_STACKING_ACTION_H
Definition of the TG4SpecialStackingActionMessenger class.
Definition of the TG4Verbose class.
Messenger class that defines commands for TG4StackingAction.
Defines a special stacking mechanism.
G4bool GetSkipNeutrino() const
Return the option for skipping neutrino.
TG4SpecialStackingActionMessenger fMessenger
TG4SpecialStackingAction & operator=(const TG4SpecialStackingAction &right)
Not implemented.
G4bool fSkipNeutrino
Option to skip tracking of all neutrina.
void SetSkipNeutrino(G4bool value)
Set the option for skipping neutrino.
TG4SpecialStackingAction(const TG4SpecialStackingAction &right)
Not implemented.
G4bool GetWaitPrimary() const
Return the option for skipping neutrino.
G4ClassificationOfNewTrack ClassifyNewTrack(const G4Track *track)
Base class for defining the verbose level and a common messenger.
Definition TG4Verbose.h:36