BOSS 6.6.4.p03
BESIII Offline Software System
Loading...
Searching...
No Matches
ExtBesTofConstruction.cxx
Go to the documentation of this file.
2#include "G4LogicalVolume.hh"
3#include "G4UnitsTable.hh"
4#include "G4ios.hh"
5#include "G4Geo/TofG4Geo.h"
6#include "G4Geo/MRPCG4Geo.h"
7#include "GaudiKernel/MsgStream.h"
8#include "GaudiKernel/AlgFactory.h"
9#include "GaudiKernel/SmartIF.h"
10#include "GaudiKernel/Property.h"
11#include "GaudiKernel/ISvcLocator.h"
12
13
15
16{
17}
18
20
21void ExtBesTofConstruction::Construct(G4LogicalVolume* logicBes)
22{
23
24 TofG4Geo* aTofG4Geo = new TofG4Geo();
25 logicalTof = aTofG4Geo->GetTopVolume();
26 if(!logicalTof) G4cout<<"ExtBesTofConstruction::Construct(), logicalTof not found"<<G4endl;
27 physicalTof = new G4PVPlacement(0,G4ThreeVector(0,0,0),logicalTof,"physicalTof",logicBes,false,0);
28}
29
30
31void ExtBesTofConstruction::Construct_mrpc(G4LogicalVolume* logicBes)
32{
33
34 MRPCG4Geo* aTofG4Geo = new MRPCG4Geo();
35 logicalTof = aTofG4Geo->GetTopVolume();
36 if(!logicalTof) G4cout<<"ExtBesTofConstruction::Construct(), logicalTof not found"<<G4endl;
37 physicalTof = new G4PVPlacement(0,G4ThreeVector(0,0,0),logicalTof,"physicalTof",logicBes,false,0);
38}
void Construct_mrpc(G4LogicalVolume *logicBes)
void Construct(G4LogicalVolume *logicBes)
G4LogicalVolume * GetTopVolume()
Get the top(world) volume;.