ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
ECCE @ EIC Software
Deprecated List
Modules
Namespaces
Classes
Files
File List
acts
analysis
coresoftware
Doxygen_Assist
ecce-detectors
fun4all_eicdetectors
geant4
macros
blob
master
common
DisplayOn.C
ECCEStyle.C
ECCEStyle.h
G4_Aerogel.C
G4_AllSilicon.C
G4_B0ECAL.C
G4_B0Tracking_EIC.C
G4_Barrel_EIC.C
G4_Bbc.C
G4_BECAL.C
G4_BlackHole.C
G4_BMMG.C
G4_BToF.C
G4_BWD.C
G4_CEmc_Albedo.C
G4_CEmc_EIC.C
G4_CEmc_Spacal.C
G4_DIRC.C
G4_DRCALO.C
G4_dRICH.C
G4_DSTReader_EICDetector.C
G4_EEMC.C
G4_EEMC_hybrid.C
G4_EHCAL.C
G4_EToF.C
G4_EventEvaluator.C
G4_FEMC.C
G4_FEMC_EIC.C
G4_FHCAL.C
G4_FST_EIC.C
G4_FwdJets.C
G4_GEM_EIC.C
G4_Global.C
G4_HcalIn_ref.C
G4_HcalOut_ref.C
G4_hFarBwdBeamLine_EIC.C
G4_hFarFwdBeamLine_EIC.C
G4_HToF.C
G4_Input.C
G4_Jets.C
G4_KFParticle.C
G4_LFHCAL.C
G4_Magnet.C
G4_Micromegas.C
G4_mRICH.C
G4_mRwell_EIC.C
G4_Mvtx_EIC.C
G4_ParticleFlow.C
G4_Pipe.C
G4_Pipe_EIC.C
G4_Piston.C
G4_PlugDoor.C
G4_PlugDoor_EIC.C
G4_Production.C
G4_PSTOF.C
G4_RICH.C
G4_TopoClusterReco.C
G4_TPC_EIC.C
G4_Tracking_EIC.C
G4_TrackingSupport.C
G4_TRD.C
G4_TTL_EIC.C
G4_User.C
G4_World.C
GlobalVariables.C
QA.C
sPhenixStyle.C
sPhenixStyle.h
detectors
online_distribution
tutorials
doxygen_mainpage.h
File Members
External Links
•
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->
SetActive
();
// this saves hits in the MimosaCore volumes
43
if
(AbsorberActive) allsili->
SetAbsorberActive
();
// this saves hits in all volumes (in the absorber node)
44
g4Reco->
registerSubsystem
(allsili);
45
}
46
#endif
macros
blob
master
common
G4_AllSilicon.C
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:25:58
using
1.8.2 with
ECCE GitHub integration