Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4MaterialCutsCouple Class Reference

#include <G4MaterialCutsCouple.hh>

Public Member Functions

 G4MaterialCutsCouple ()
 
 G4MaterialCutsCouple (const G4Material *, G4ProductionCuts *cut=0)
 
 G4MaterialCutsCouple (const G4MaterialCutsCouple &right)
 
G4MaterialCutsCoupleoperator= (const G4MaterialCutsCouple &right)
 
virtual ~G4MaterialCutsCouple ()
 
G4int operator== (const G4MaterialCutsCouple &right) const
 
G4int operator!= (const G4MaterialCutsCouple &right) const
 
void SetMaterial (const G4Material *)
 
const G4MaterialGetMaterial () const
 
void SetProductionCuts (G4ProductionCuts *)
 
G4ProductionCutsGetProductionCuts () const
 
G4bool IsRecalcNeeded () const
 
void PhysicsTableUpdated ()
 
void SetIndex (G4int idx)
 
G4int GetIndex () const
 
void SetUseFlag (G4bool flg=true)
 
G4bool IsUsed () const
 

Detailed Description

Definition at line 50 of file G4MaterialCutsCouple.hh.

Constructor & Destructor Documentation

G4MaterialCutsCouple::G4MaterialCutsCouple ( )

Definition at line 41 of file G4MaterialCutsCouple.cc.

41  :
42  isMaterialModified(false),
43  fMaterial(0),
44  fCuts(0),
45  indexNumber(-1),
46  isUsedInGeometry(false)
47 {
48 }
G4MaterialCutsCouple::G4MaterialCutsCouple ( const G4Material material,
G4ProductionCuts cut = 0 
)

Definition at line 50 of file G4MaterialCutsCouple.cc.

51  :
52  isMaterialModified(true),
53  fMaterial(material),
54  fCuts(cut),
55  indexNumber(-1),
56  isUsedInGeometry(false)
57 {
58 }
G4MaterialCutsCouple::G4MaterialCutsCouple ( const G4MaterialCutsCouple right)

Definition at line 61 of file G4MaterialCutsCouple.cc.

62  :fMaterial(0), fCuts(0)
63 {
64  *this = right;
65 }
G4MaterialCutsCouple::~G4MaterialCutsCouple ( )
virtual

Definition at line 67 of file G4MaterialCutsCouple.cc.

68 {
69 }

Member Function Documentation

G4int G4MaterialCutsCouple::GetIndex ( ) const
inline

Definition at line 111 of file G4MaterialCutsCouple.hh.

112 { return indexNumber; }
const G4Material * G4MaterialCutsCouple::GetMaterial ( ) const
inline

Definition at line 150 of file G4MaterialCutsCouple.hh.

151 {
152  return fMaterial;
153 }
G4ProductionCuts * G4MaterialCutsCouple::GetProductionCuts ( ) const
inline

Definition at line 127 of file G4MaterialCutsCouple.hh.

128 { return fCuts; }

Here is the caller graph for this function:

G4bool G4MaterialCutsCouple::IsRecalcNeeded ( ) const
inline

Definition at line 156 of file G4MaterialCutsCouple.hh.

157 {
158  G4bool isCutModified = false;
159  if (fCuts !=0 ) isCutModified = fCuts->IsModified();
160  return (isMaterialModified || isCutModified);
161 }
G4bool IsModified() const
bool G4bool
Definition: G4Types.hh:79

Here is the call graph for this function:

Here is the caller graph for this function:

G4bool G4MaterialCutsCouple::IsUsed ( ) const
inline

Definition at line 119 of file G4MaterialCutsCouple.hh.

120 { return isUsedInGeometry; }

Here is the caller graph for this function:

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

Definition at line 137 of file G4MaterialCutsCouple.hh.

138 {
139  return (this != &right);
140 }
G4MaterialCutsCouple & G4MaterialCutsCouple::operator= ( const G4MaterialCutsCouple right)

Definition at line 71 of file G4MaterialCutsCouple.cc.

72 {
73  if (&right==this) return *this;
74 
75  fMaterial = right.fMaterial;
76  fCuts = right.fCuts;
77  isMaterialModified = right.isMaterialModified;
78  indexNumber = right.indexNumber;
79  isUsedInGeometry = right.isUsedInGeometry;
80 
81  return *this;
82 }
G4int G4MaterialCutsCouple::operator== ( const G4MaterialCutsCouple right) const
inline

Definition at line 131 of file G4MaterialCutsCouple.hh.

132 {
133  return (this == &right);
134 }
void G4MaterialCutsCouple::PhysicsTableUpdated ( )
inline

Definition at line 164 of file G4MaterialCutsCouple.hh.

165 {
166  if (fCuts !=0 ) fCuts->PhysicsTableUpdated();
167  isMaterialModified = false;
168 }

Here is the call graph for this function:

void G4MaterialCutsCouple::SetIndex ( G4int  idx)
inline

Definition at line 107 of file G4MaterialCutsCouple.hh.

108 { indexNumber = idx; }

Here is the caller graph for this function:

void G4MaterialCutsCouple::SetMaterial ( const G4Material material)
inline

Definition at line 143 of file G4MaterialCutsCouple.hh.

144 {
145  fMaterial = material;
146  isMaterialModified = true;
147 }
string material
Definition: eplot.py:19
void G4MaterialCutsCouple::SetProductionCuts ( G4ProductionCuts aCut)
inline

Definition at line 123 of file G4MaterialCutsCouple.hh.

124 { fCuts = aCut; }
void G4MaterialCutsCouple::SetUseFlag ( G4bool  flg = true)
inline

Definition at line 115 of file G4MaterialCutsCouple.hh.

116 { isUsedInGeometry = flg; }

Here is the caller graph for this function:


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