| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

GiGaVolume Class Reference

Helpful "intermediate" class to minimize teh difference between Logical volume and logical assembly. More...

#include <GiGaCnv/GiGaVolume.h>

Collaboration diagram for GiGaVolume:

[legend]
List of all members.

Public Member Functions

 GiGaVolume (G4LogicalVolume *volume=0, GiGaAssembly *assembly=0)
 Standard constructor.
 ~GiGaVolume ()
 destructor
G4LogicalVolume * volume () const
 accessor to logical volume
GiGaAssemblyassembly () const
 accessor to logical assembly
bool valid () const
 valid? only volume or assembly must be valid!
void setVolume (G4LogicalVolume *value=0)
 set/reset the new value for logical volume
void setAssembly (GiGaAssembly *value=0)
 set/reset the new value for logical assembly

Private Attributes

G4LogicalVolume * m_volume
GiGaAssemblym_assembly

Detailed Description

Helpful "intermediate" class to minimize teh difference between Logical volume and logical assembly.

Author:
Ivan Belyaev
Date:
17/01/2002

Definition at line 24 of file GiGaVolume.h.


Constructor & Destructor Documentation

GiGaVolume::GiGaVolume ( G4LogicalVolume *  volume = 0,
GiGaAssembly assembly = 0 
) [inline]

Standard constructor.

Parameters:
volume pointer to logical volume
assembly pointer to logical assembly

Definition at line 33 of file GiGaVolume.h.

00035     : m_volume   ( volume   ) 
00036     , m_assembly ( assembly )
00037   {};

GiGaVolume::~GiGaVolume (  )  [inline]

destructor

Definition at line 41 of file GiGaVolume.h.

00041 {}; 


Member Function Documentation

G4LogicalVolume* GiGaVolume::volume (  )  const [inline]

accessor to logical volume

Returns:
pointer to logical volume

Definition at line 46 of file GiGaVolume.h.

00046 { return m_volume   ; }

GiGaAssembly* GiGaVolume::assembly (  )  const [inline]

accessor to logical assembly

Returns:
pointer to logical assembly

Definition at line 51 of file GiGaVolume.h.

00051 { return m_assembly ; }

bool GiGaVolume::valid (  )  const [inline]

valid? only volume or assembly must be valid!

Definition at line 56 of file GiGaVolume.h.

00057   {
00058     return 
00059       0 == volume () && 0 == assembly () ? false :
00060       0 != volume () && 0 != assembly () ? false : true ;
00061   };

void GiGaVolume::setVolume ( G4LogicalVolume *  value = 0  )  [inline]

set/reset the new value for logical volume

Parameters:
value new value for logical volume

Definition at line 66 of file GiGaVolume.h.

00067   { m_volume  = value ; }

void GiGaVolume::setAssembly ( GiGaAssembly value = 0  )  [inline]

set/reset the new value for logical assembly

Parameters:
value new value for logical assembly

Definition at line 72 of file GiGaVolume.h.

00073   { m_assembly = value ; }


Member Data Documentation

G4LogicalVolume* GiGaVolume::m_volume [private]

Definition at line 77 of file GiGaVolume.h.

GiGaAssembly* GiGaVolume::m_assembly [private]

Definition at line 78 of file GiGaVolume.h.


The documentation for this class was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 20:03:53 2011 for GiGaCnv by doxygen 1.4.7