EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
G4_AllSilicon.C
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file G4_AllSilicon.C
1
#ifndef MACRO_G4ALLSILICON_C
2
#define MACRO_G4ALLSILICON_C
3
4
#include <GlobalVariables.C>
5
6
#include <
g4lblvtx/AllSiliconTrackerSubsystem.h
>
7
8
R__LOAD_LIBRARY
(libg4lblvtx.so)
9
10
namespace Enable
11
{
12
bool
ALLSILICON
=
false
;
13
bool
ALLSILICON_ABSORBER
=
false
;
14
bool
ALLSILICON_OVERLAPCHECK
=
false
;
15
}
// namespace Enable
16
17
namespace
G4ALLSILICON
18
{
19
namespace
SETTING
20
{
21
int
geomVersion
= 2;
22
}
// namespace SETTING
23
}
// namespace G4FHCAL
24
25
void
AllSiliconInit
() {}
26
27
void
AllSiliconSetup
(
PHG4Reco
*g4Reco)
28
{
29
bool
AbsorberActive =
Enable::ABSORBER
||
Enable::ALLSILICON_ABSORBER
;
30
bool
OverlapCheck =
Enable::OVERLAPCHECK
||
Enable::ALLSILICON_OVERLAPCHECK
;
31
AllSiliconTrackerSubsystem
*allsili =
new
AllSiliconTrackerSubsystem
();
32
33
34
allsili->
set_string_param
(
"GDMPath"
,
string
(getenv(
"CALIBRATIONROOT"
)) + Form(
"/AllSiliconTracker/genfitGeom_AllSi_v%d.gdml"
,
G4ALLSILICON::SETTING::geomVersion
));
35
36
allsili->
AddAssemblyVolume
(
"VST"
);
// Barrel
37
allsili->
AddAssemblyVolume
(
"FST"
);
// Forward disks
38
allsili->
AddAssemblyVolume
(
"BST"
);
// Backward disks
39
//allsili->AddAssemblyVolume("BEAMPIPE"); // Beampipe
40
allsili->
SuperDetector
(
"LBLVTX"
);
41
allsili->
OverlapCheck
(OverlapCheck);
42
// allsili->OverlapCheck(false);
43
allsili->
SetActive
();
// this saves hits in the MimosaCore volumes
44
if
(AbsorberActive) allsili->
SetAbsorberActive
();
// this saves hits in all volumes (in the absorber node)
45
g4Reco->
registerSubsystem
(allsili);
46
}
47
#endif
fun4all_eicmacros
blob
master
common
G4_AllSilicon.C
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:53
using
1.8.2 with
EIC GitHub integration