BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
ExtBesMdcConstruction.cxx
Go to the documentation of this file.
2#include "G4LogicalVolume.hh"
3#include "G4PVPlacement.hh"
4#include "G4PVReplica.hh"
5
6#include "G4UserLimits.hh"
7
8#include "G4Geo/MdcG4Geo.h"
9#include "G4ios.hh"
10
12
14
15void ExtBesMdcConstruction::Construct( G4LogicalVolume* logicBes ) {
16 MdcG4Geo* aMdcG4Geo = new MdcG4Geo();
17 G4LogicalVolume* logicalMdc = aMdcG4Geo->GetTopVolume();
18 if ( !logicalMdc )
19 { G4cout << "ExtBesMdcConstruction::Construct(), logicalMdc not found" << G4endl; }
20 else
21 { // construct Mdc
22 physicalMdc = new G4PVPlacement( 0, G4ThreeVector( 0, 0, 0 ), logicalMdc, "physicalMdc",
23 logicBes, false, 0 );
24 }
25}
void Construct(G4LogicalVolume *)
G4LogicalVolume * GetTopVolume()
Get the top(world) volume;.