Geant4 VMC Version 6.6
Loading...
Searching...
No Matches
TG4SpecialControlsV2.h
Go to the documentation of this file.
1#ifndef TG4_SPECIAL_CONTROLS_V2_H
2#define TG4_SPECIAL_CONTROLS_V2_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 "TG4G3Control.h"
19#include "TG4Globals.h"
20#include "TG4Verbose.h"
21
22// clang-format off
23#include <G4VProcess.hh>
24#include <G4ProcessVector.hh>
25#include <globals.hh>
26// clang-format on
27
28#include <vector>
29
42
44{
52
53 public:
55 virtual ~TG4SpecialControlsV2();
56
57 // methods
58 void StartTrack(const G4Track* track);
59 void ApplyControls();
61
62 // get methods
63 Bool_t IsApplicable() const;
64
65 private:
70
71 // methods
72 void SetSwitch();
73 void Reset();
74
75 // data members
76
79
81 const G4Track* fkTrack;
82
85
87 G4ProcessVector fSwitchedProcesses;
88
91
94};
95
97{
99 return fIsApplicable;
100}
101
102#endif // TG4_SPECIAL_CONTROLS_V2_H
Definition of the enumerations TG4G3Control, TG4G3ControlValue.
Definition of the TG4Globals class and basic container types.
Definition of the TG4Verbose class.
The manager class for G3 process controls.
TG4SpecialControlsV2(const TG4SpecialControlsV2 &right)
Not implemented.
Switch
The action to be performed in the current step.
@ kUnswitch
do not switch the process activation
@ kReswitch
switch the process activation back
@ kSwitch
switch the process activation
G4bool fIsApplicable
Applicability for the current track.
Switch fSwitch
The action to be performed in the current step.
TG4SpecialControlsV2 & operator=(const TG4SpecialControlsV2 &right)
Not implemented.
TG4boolVector fSwitchedControls
Vector for storing the current values of the processes activation.
G4ProcessVector fSwitchedProcesses
Vector of the processes the activation of which is changed by this process.
TG4boolVector fProcessActivations
vector of the origin process activations
const G4Track * fkTrack
The current track.
void StartTrack(const G4Track *track)
Base class for defining the verbose level and a common messenger.
Definition TG4Verbose.h:36
std::vector< G4bool > TG4boolVector
Definition TG4Globals.h:37