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