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