Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4ProcessAttribute Class Reference

#include <G4ProcessAttribute.hh>

Public Member Functions

 G4ProcessAttribute ()
 
 G4ProcessAttribute (const G4VProcess *aProcess)
 
 G4ProcessAttribute (const G4ProcessAttribute &right)
 
 ~G4ProcessAttribute ()
 
G4ProcessAttributeoperator= (const G4ProcessAttribute &right)
 
G4int operator== (const G4ProcessAttribute &right) const
 
G4int operator!= (const G4ProcessAttribute &right) const
 

Protected Attributes

G4VProcesspProcess
 
G4bool isActive
 
G4int idxProcessList
 
G4int idxProcVector [G4ProcessManager::SizeOfProcVectorArray]
 
G4int ordProcVector [G4ProcessManager::SizeOfProcVectorArray]
 

Friends

class G4ProcessManager
 

Detailed Description

Definition at line 53 of file G4ProcessAttribute.hh.

Constructor & Destructor Documentation

◆ G4ProcessAttribute() [1/3]

G4ProcessAttribute::G4ProcessAttribute ( )

Definition at line 42 of file G4ProcessAttribute.cc.

42 :
43 isActive(true)
44{
45 pProcess = 0;
46 idxProcessList = -1;
47 // clear
48 for (G4int idx=0; idx<G4ProcessManager::SizeOfProcVectorArray; idx++){
49 idxProcVector[idx] = -1;
50 ordProcVector[idx] = -1;
51 }
52}
int G4int
Definition: G4Types.hh:66
G4int ordProcVector[G4ProcessManager::SizeOfProcVectorArray]
G4int idxProcVector[G4ProcessManager::SizeOfProcVectorArray]

◆ G4ProcessAttribute() [2/3]

G4ProcessAttribute::G4ProcessAttribute ( const G4VProcess aProcess)
inline

Definition at line 93 of file G4ProcessAttribute.hh.

93 :
94 pProcess((G4VProcess*)aProcess),
95 isActive(true),
97{
98 for(size_t ii=0; ii<G4ProcessManager::SizeOfProcVectorArray; ii++){
99 idxProcVector[ii]=-1;
100 ordProcVector[ii]=0;
101 }
102}

◆ G4ProcessAttribute() [3/3]

G4ProcessAttribute::G4ProcessAttribute ( const G4ProcessAttribute right)

Definition at line 54 of file G4ProcessAttribute.cc.

55 :isActive(true)
56{
57 pProcess = right.pProcess;
59 // copy all contents in idxProcVector[] and ordProcVector[]
60 // deep copy
61 for (G4int idx=0; idx<G4ProcessManager::SizeOfProcVectorArray; idx++){
62 idxProcVector[idx] = right.idxProcVector[idx];
63 ordProcVector[idx] = right.ordProcVector[idx];
64 }
65 isActive = right.isActive;
66}

◆ ~G4ProcessAttribute()

G4ProcessAttribute::~G4ProcessAttribute ( )

Definition at line 68 of file G4ProcessAttribute.cc.

69{
70 // do nothing
71}

Member Function Documentation

◆ operator!=()

G4int G4ProcessAttribute::operator!= ( const G4ProcessAttribute right) const
inline

Definition at line 111 of file G4ProcessAttribute.hh.

112{
113 return this->pProcess != right.pProcess;
114}

◆ operator=()

G4ProcessAttribute & G4ProcessAttribute::operator= ( const G4ProcessAttribute right)

Definition at line 73 of file G4ProcessAttribute.cc.

74{
75 if (this != &right) {
76 pProcess = right.pProcess;
78 isActive = right.isActive;
79 // copy all contents in idxProcVector[] and ordProcVector[]
80 // deep copy
81 for (G4int idx=0; idx<G4ProcessManager::SizeOfProcVectorArray; idx++){
82 idxProcVector[idx] = right.idxProcVector[idx];
83 ordProcVector[idx] = right.ordProcVector[idx];
84 }
85 }
86 return *this;
87}

◆ operator==()

G4int G4ProcessAttribute::operator== ( const G4ProcessAttribute right) const
inline

Definition at line 105 of file G4ProcessAttribute.hh.

106{
107 return this->pProcess == right.pProcess;
108}

Friends And Related Function Documentation

◆ G4ProcessManager

friend class G4ProcessManager
friend

Definition at line 56 of file G4ProcessAttribute.hh.

Member Data Documentation

◆ idxProcessList

G4int G4ProcessAttribute::idxProcessList
protected

◆ idxProcVector

◆ isActive

G4bool G4ProcessAttribute::isActive
protected

◆ ordProcVector

◆ pProcess

G4VProcess* G4ProcessAttribute::pProcess
protected

Definition at line 75 of file G4ProcessAttribute.hh.

Referenced by G4ProcessAttribute(), operator!=(), operator=(), and operator==().


The documentation for this class was generated from the following files: