Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
RE01RegionInformation Class Reference

#include <RE01RegionInformation.hh>

Inheritance diagram for RE01RegionInformation:
G4VUserRegionInformation

Public Member Functions

 RE01RegionInformation ()
 
virtual ~RE01RegionInformation ()
 
virtual void Print () const
 
void SetWorld (G4bool v=true)
 
void SetTracker (G4bool v=true)
 
void SetCalorimeter (G4bool v=true)
 
G4bool IsCalorimeter () const
 
- Public Member Functions inherited from G4VUserRegionInformation
 G4VUserRegionInformation ()
 
virtual ~G4VUserRegionInformation ()
 

Detailed Description

Definition at line 39 of file RE01RegionInformation.hh.

Constructor & Destructor Documentation

RE01RegionInformation::RE01RegionInformation ( )

Definition at line 37 of file RE01RegionInformation.cc.

39  fIsWorld(false),fIsTracker(false),fIsCalorimeter(false)
40 {;}
RE01RegionInformation::~RE01RegionInformation ( )
virtual

Definition at line 43 of file RE01RegionInformation.cc.

44 {;}

Member Function Documentation

G4bool RE01RegionInformation::IsCalorimeter ( ) const
inline

Definition at line 49 of file RE01RegionInformation.hh.

Referenced by RE01SteppingAction::UserSteppingAction().

49 {return fIsCalorimeter;}
void RE01RegionInformation::Print ( void  ) const
virtual

Implements G4VUserRegionInformation.

Definition at line 47 of file RE01RegionInformation.cc.

References G4cout, and G4endl.

Referenced by RE01DetectorConstruction::Construct().

48 {
49  G4cout << "I'm ";
50  if(fIsWorld) { G4cout << "World."; }
51  else if(fIsTracker) { G4cout << "Tracker."; }
52  else if(fIsCalorimeter) { G4cout << "Calorimeter."; }
53  else { G4cout << "unknown."; }
54  G4cout << G4endl;
55 }
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61
void RE01RegionInformation::SetCalorimeter ( G4bool  v = true)
inline

Definition at line 48 of file RE01RegionInformation.hh.

References test::v.

Referenced by RE01DetectorConstruction::Construct().

48 {fIsCalorimeter = v;}
void RE01RegionInformation::SetTracker ( G4bool  v = true)
inline

Definition at line 47 of file RE01RegionInformation.hh.

References test::v.

Referenced by RE01DetectorConstruction::Construct().

47 {fIsTracker = v;}
void RE01RegionInformation::SetWorld ( G4bool  v = true)
inline

Definition at line 46 of file RE01RegionInformation.hh.

References test::v.

Referenced by RE01DetectorConstruction::Construct().

46 {fIsWorld = v;}

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