Special class for definition of regions.
More...
#include <Ex03RegionConstruction.h>
Special class for definition of regions.
- Author
- I. Hrivnacova; IPN, Orsay
Definition at line 27 of file Ex03RegionConstruction.h.
◆ Ex03RegionConstruction() [1/3]
Ex03RegionConstruction::Ex03RegionConstruction |
( |
| ) |
|
◆ ~Ex03RegionConstruction() [1/3]
Ex03RegionConstruction::~Ex03RegionConstruction |
( |
| ) |
|
|
virtual |
◆ Ex03RegionConstruction() [2/3]
Ex03RegionConstruction::Ex03RegionConstruction |
( |
| ) |
|
◆ ~Ex03RegionConstruction() [2/3]
virtual Ex03RegionConstruction::~Ex03RegionConstruction |
( |
| ) |
|
|
virtual |
◆ Ex03RegionConstruction() [3/3]
Ex03RegionConstruction::Ex03RegionConstruction |
( |
| ) |
|
◆ ~Ex03RegionConstruction() [3/3]
virtual Ex03RegionConstruction::~Ex03RegionConstruction |
( |
| ) |
|
|
virtual |
◆ Construct() [1/3]
void Ex03RegionConstruction::Construct |
( |
| ) |
|
|
virtual |
Definition of regions
Definition at line 43 of file Ex03RegionConstruction.cxx.
44{
45
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: