VMC Examples Version 6.6
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Ex03RegionConstruction Class Reference

Special class for definition of regions. More...

#include <Ex03RegionConstruction.h>

Inheritance diagram for Ex03RegionConstruction:
Inheritance graph
[legend]

Public Member Functions

 Ex03RegionConstruction ()
 
virtual ~Ex03RegionConstruction ()
 
virtual void Construct ()
 
 Ex03RegionConstruction ()
 
virtual ~Ex03RegionConstruction ()
 
virtual void Construct ()
 
 Ex03RegionConstruction ()
 
virtual ~Ex03RegionConstruction ()
 
virtual void Construct ()
 

Detailed Description

Special class for definition of regions.

Author
I. Hrivnacova; IPN, Orsay

Definition at line 27 of file Ex03RegionConstruction.h.

Constructor & Destructor Documentation

◆ Ex03RegionConstruction() [1/3]

Ex03RegionConstruction::Ex03RegionConstruction ( )

Standard constructor

Definition at line 27 of file Ex03RegionConstruction.cxx.

28{
29 /// Standard constructor
30}

◆ ~Ex03RegionConstruction() [1/3]

Ex03RegionConstruction::~Ex03RegionConstruction ( )
virtual

Destructor

Definition at line 33 of file Ex03RegionConstruction.cxx.

34{
35 /// Destructor
36}

◆ Ex03RegionConstruction() [2/3]

Ex03RegionConstruction::Ex03RegionConstruction ( )

◆ ~Ex03RegionConstruction() [2/3]

virtual Ex03RegionConstruction::~Ex03RegionConstruction ( )
virtual

◆ Ex03RegionConstruction() [3/3]

Ex03RegionConstruction::Ex03RegionConstruction ( )

◆ ~Ex03RegionConstruction() [3/3]

virtual Ex03RegionConstruction::~Ex03RegionConstruction ( )
virtual

Member Function Documentation

◆ Construct() [1/3]

void Ex03RegionConstruction::Construct ( )
virtual

Definition of regions

Definition at line 43 of file Ex03RegionConstruction.cxx.

44{
45 /// Definition of regions
46
47 G4LogicalVolume* logicalVolume =
48 TG4GeometryServices::Instance()->FindLogicalVolume("LAYE");
49 if (!logicalVolume) {
50 G4cerr << "Logical volume LAYE not found" << G4endl;
51 return;
52 }
53
54 G4Region* testRegion = new G4Region("Test_region");
55 testRegion->AddRootLogicalVolume(logicalVolume);
56 testRegion->SetProductionCuts(new G4ProductionCuts());
57
58 std::vector<double> cuts;
59 cuts.push_back(1.0 * cm);
60 cuts.push_back(1.0 * cm);
61 cuts.push_back(1.0 * cm);
62 testRegion->GetProductionCuts()->SetProductionCuts(cuts);
63}

◆ Construct() [2/3]

virtual void Ex03RegionConstruction::Construct ( )
virtual

◆ Construct() [3/3]

virtual void Ex03RegionConstruction::Construct ( )
virtual

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