CGEM BOSS 6.6.5.h
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"
8
9#include "GaudiKernel/MsgStream.h"
10#include "GaudiKernel/AlgFactory.h"
11#include "GaudiKernel/SmartIF.h"
12#include "GaudiKernel/Property.h"
13#include "GaudiKernel/ISvcLocator.h"
14
15
20
22
23void ExtBesTofConstruction::Construct(G4LogicalVolume* logicBes)
24{
25
26 TofG4Geo* aTofG4Geo = new TofG4Geo();
27 logicalTof = aTofG4Geo->GetTopVolume();
28 if(!logicalTof) G4cout<<"ExtBesTofConstruction::Construct(), logicalTof not found"<<G4endl;
29 physicalTof = new G4PVPlacement(0,G4ThreeVector(0,0,0),logicalTof,"physicalTof",logicBes,false,0);
30}
31
32
33void ExtBesTofConstruction::Construct_mrpc(G4LogicalVolume* logicBes)
34{
35
36 MRPCG4Geo* aTofG4Geo = new MRPCG4Geo();
37 logicalTof = aTofG4Geo->GetTopVolume();
38 if(!logicalTof) G4cout<<"ExtBesTofConstruction::Construct(), logicalTof not found"<<G4endl;
39 physicalTof = new G4PVPlacement(0,G4ThreeVector(0,0,0),logicalTof,"physicalTof",logicBes,false,0);
40}
41
42
43void ExtBesTofConstruction::Construct_mrpc_dbs(G4LogicalVolume* logicBes)
44{
45
46 MRPCG4Geo_dbs* aTofG4Geo = new MRPCG4Geo_dbs();
47 logicalTof = aTofG4Geo->GetTopVolume();
48 if(!logicalTof) G4cout<<"ExtBesTofConstruction::Construct(), logicalTof not found"<<G4endl;
49 physicalTof = new G4PVPlacement(0,G4ThreeVector(0,0,0),logicalTof,"physicalTof",logicBes,false,0);
50}
void Construct_mrpc(G4LogicalVolume *logicBes)
void Construct(G4LogicalVolume *logicBes)
void Construct_mrpc_dbs(G4LogicalVolume *logicBes)
G4LogicalVolume * GetTopVolume()
Get the top(world) volume;.