BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
ExtBesTofConstruction.cxx
Go to the documentation of this file.
2#include "G4Geo/MRPCG4Geo.h"
3#include "G4Geo/TofG4Geo.h"
4#include "G4LogicalVolume.hh"
5#include "G4UnitsTable.hh"
6#include "G4ios.hh"
7
8#include "GaudiKernel/ISvcLocator.h"
9#include "GaudiKernel/MsgStream.h"
10#include "GaudiKernel/SmartIF.h"
11
15
17
18void ExtBesTofConstruction::Construct( G4LogicalVolume* logicBes ) {
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}
27
28void ExtBesTofConstruction::ConstructETF( G4LogicalVolume* logicBes ) {
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}
void ConstructETF(G4LogicalVolume *logicBes)
void Construct(G4LogicalVolume *logicBes)
G4LogicalVolume * GetTopVolume()
Get the top(world) volume;.