BOSS
8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
ExtBesTofConstruction.cxx
Go to the documentation of this file.
1
#include "
ExtBesTofConstruction.h
"
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
12
ExtBesTofConstruction::ExtBesTofConstruction
()
13
14
{}
15
16
ExtBesTofConstruction::~ExtBesTofConstruction
() {}
17
18
void
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
28
void
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
}
ExtBesTofConstruction.h
ExtBesTofConstruction::~ExtBesTofConstruction
virtual ~ExtBesTofConstruction()
Definition
ExtBesTofConstruction.cxx:16
ExtBesTofConstruction::ConstructETF
void ConstructETF(G4LogicalVolume *logicBes)
Definition
ExtBesTofConstruction.cxx:28
ExtBesTofConstruction::Construct
void Construct(G4LogicalVolume *logicBes)
Definition
ExtBesTofConstruction.cxx:18
ExtBesTofConstruction::ExtBesTofConstruction
ExtBesTofConstruction()
Definition
ExtBesTofConstruction.cxx:12
MRPCG4Geo
Definition
DetectorDescription/G4Geo/include/G4Geo/MRPCG4Geo.h:21
SubDetectorG4Geo::GetTopVolume
G4LogicalVolume * GetTopVolume()
Get the top(world) volume;.
Definition
DetectorDescription/G4Geo/include/G4Geo/SubDetectorG4Geo.h:49
TofG4Geo
Definition
DetectorDescription/G4Geo/include/G4Geo/TofG4Geo.h:21
8.0.0
BOSS_Source
Reconstruction
TrkExtAlg
src
ExtBesTofConstruction.cxx
Generated by
1.16.1