BOSS
7.1.1
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
15
ExtBesTofConstruction::ExtBesTofConstruction
()
16
17
{
18
}
19
20
ExtBesTofConstruction::~ExtBesTofConstruction
() {}
21
22
void
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
32
void
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
}
ExtBesTofConstruction.h
MRPCG4Geo.h
TofG4Geo.h
ExtBesTofConstruction::~ExtBesTofConstruction
virtual ~ExtBesTofConstruction()
Definition
ExtBesTofConstruction.cxx:20
ExtBesTofConstruction::ConstructETF
void ConstructETF(G4LogicalVolume *logicBes)
Definition
ExtBesTofConstruction.cxx:32
ExtBesTofConstruction::Construct
void Construct(G4LogicalVolume *logicBes)
Definition
ExtBesTofConstruction.cxx:22
ExtBesTofConstruction::ExtBesTofConstruction
ExtBesTofConstruction()
Definition
ExtBesTofConstruction.cxx:15
MRPCG4Geo
Definition
MRPCG4Geo.h:22
SubDetectorG4Geo::GetTopVolume
G4LogicalVolume * GetTopVolume()
Get the top(world) volume;.
Definition
SubDetectorG4Geo.h:50
TofG4Geo
Definition
TofG4Geo.h:22
7.1.1
Reconstruction
TrkExtAlg
TrkExtAlg-00-00-67
src
ExtBesTofConstruction.cxx
Generated by
1.12.0