BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
ExtBesTofConstruction Class Reference

#include <ExtBesTofConstruction.h>

Inheritance diagram for ExtBesTofConstruction:

Public Member Functions

 ExtBesTofConstruction ()
virtual ~ExtBesTofConstruction ()
void Construct (G4LogicalVolume *logicBes)
void ConstructETF (G4LogicalVolume *logicBes)
Public Member Functions inherited from ExtBesSubdetector
 ExtBesSubdetector ()
virtual ~ExtBesSubdetector ()
G4LogicalVolume * FindLogicalVolume (const G4String &vn)

Detailed Description

Definition at line 9 of file ExtBesTofConstruction.h.

Constructor & Destructor Documentation

◆ ExtBesTofConstruction()

ExtBesTofConstruction::ExtBesTofConstruction ( )

Definition at line 12 of file ExtBesTofConstruction.cxx.

14{}

◆ ~ExtBesTofConstruction()

ExtBesTofConstruction::~ExtBesTofConstruction ( )
virtual

Definition at line 16 of file ExtBesTofConstruction.cxx.

16{}

Member Function Documentation

◆ Construct()

void ExtBesTofConstruction::Construct ( G4LogicalVolume * logicBes)
virtual

Implements ExtBesSubdetector.

Definition at line 18 of file ExtBesTofConstruction.cxx.

18 {
19
20 TofG4Geo* aTofG4Geo = new TofG4Geo();
21 logicalTof = aTofG4Geo->GetTopVolume();
22 if ( !logicalTof )
23 G4cout << "ExtBesTofConstruction::Construct(), logicalTof not found" << G4endl;
24 physicalTof = new G4PVPlacement( 0, G4ThreeVector( 0, 0, 0 ), logicalTof, "physicalTof",
25 logicBes, false, 0 );
26}
G4LogicalVolume * GetTopVolume()
Get the top(world) volume;.

◆ ConstructETF()

void ExtBesTofConstruction::ConstructETF ( G4LogicalVolume * logicBes)

Definition at line 28 of file ExtBesTofConstruction.cxx.

28 {
29
30 MRPCG4Geo* aTofG4Geo = new MRPCG4Geo();
31 logicalTof = aTofG4Geo->GetTopVolume();
32 if ( !logicalTof )
33 G4cout << "ExtBesTofConstruction::Construct(), logicalTof not found" << G4endl;
34 physicalTof = new G4PVPlacement( 0, G4ThreeVector( 0, 0, 0 ), logicalTof, "physicalTof",
35 logicBes, false, 0 );
36}

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