Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
Analysis Software
Deprecated List
Modules
Namespaces
Classes
Files
File List
acts
acts-fatras
analysis
analysis_tpc_prototype
coresoftware
Doxygen_Assist
g4exampledetector
GenFit
JETSCAPE
KFParticle
macros
blob
master
calibrations
CaloProduction
CDBTest
common
CDBUtils.C
DisplayOn.C
Fun4All_CaloProduction.C
G4_ActsGeom.C
G4_BeamLine.C
G4_BlackHole.C
G4_CaloTrigger.C
G4_CEmc_Albedo.C
G4_CEmc_Spacal.C
G4_Centrality.C
G4_DSTReader.C
G4_EPD.C
G4_Global.C
G4_HcalIn_ref.C
G4_HcalOut_ref.C
G4_HIJetReco.C
G4_Input.C
G4_Jets.C
G4_KFParticle.C
G4_Magnet.C
G4_Mbd.C
G4_ParticleFlow.C
G4_Pipe.C
G4_PlugDoor.C
G4_Production.C
G4_PSTOF.C
G4_TopoClusterReco.C
G4_Tracking.C
G4_Tracking_Cosmics.C
G4_TrkrSimulation.C
G4_TrkrVariables.C
G4_User.C
G4_World.C
G4_ZDC.C
GlobalVariables.C
HIJetReco.C
QA.C
sPhenixStyle.C
sPhenixStyle.h
Trkr_Clustering.C
Trkr_CommissioningReco.C
Trkr_Diagnostics.C
Trkr_Eval.C
Trkr_LaserClustering.C
Trkr_QA.C
Trkr_Reco.C
Trkr_Reco_Cosmics.C
Trkr_RecoInit.C
Trkr_TruthReco.C
Trkr_TruthTables.C
detectors
eventcombine
InttProduction
macros
MvtxProduction
StreamingProduction
TpcProduction
TrackingProduction
validation
online_distribution
OnlMon
prototype
pythia6
rcdaq
RDBC
tutorials
doxygen_mainpage.h
File Members
Examples
External Links
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
G4_Global.C
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file G4_Global.C
1
#ifndef MACRO_G4GLOBAL_C
2
#define MACRO_G4GLOBAL_C
3
4
#include <
GlobalVariables.C
>
5
6
#include <
g4vertex/GlobalVertexFastSimReco.h
>
7
#include <
globalvertex/GlobalVertexReco.h
>
8
9
#include <
fun4all/Fun4AllServer.h
>
10
11
R__LOAD_LIBRARY(libg4vertex.so)
12
R__LOAD_LIBRARY(libglobalvertex.so)
13
namespace Enable
14
{
15
bool
GLOBAL_RECO
=
false
;
16
bool
GLOBAL_FASTSIM
=
false
;
17
int
GLOBAL_VERBOSITY
= 0;
18
}
// namespace Enable
19
20
namespace
G4GLOBAL
21
{
22
double
x_smearing
= 0.01;
// 100 um
23
double
y_smearing
= 0.01;
// 100 um
24
double
z_smearing
= 0.015;
// 150um
25
double
t_smearing
= 0.002;
// 20ps
26
}
// namespace G4GLOBAL
27
28
void
GlobalInit
() {}
29
30
void
Global_Reco
()
31
{
32
int
verbosity
= std::max(
Enable::VERBOSITY
,
Enable::GLOBAL_VERBOSITY
);
33
34
Fun4AllServer
* se =
Fun4AllServer::instance
();
35
36
GlobalVertexReco
* gblvertex =
new
GlobalVertexReco
();
37
gblvertex->
Verbosity
(verbosity);
38
se->
registerSubsystem
(gblvertex);
39
40
return
;
41
}
42
43
void
Global_FastSim
()
44
{
45
int
verbosity
= std::max(
Enable::VERBOSITY
,
Enable::GLOBAL_VERBOSITY
);
46
47
Fun4AllServer
* se =
Fun4AllServer::instance
();
48
49
GlobalVertexFastSimReco
* gblvertex =
new
GlobalVertexFastSimReco
();
50
gblvertex->
set_x_smearing
(
G4GLOBAL::x_smearing
);
51
gblvertex->
set_y_smearing
(
G4GLOBAL::y_smearing
);
52
gblvertex->
set_z_smearing
(
G4GLOBAL::z_smearing
);
53
gblvertex->
set_t_smearing
(
G4GLOBAL::t_smearing
);
54
gblvertex->
Verbosity
(verbosity);
55
56
se->
registerSubsystem
(gblvertex);
57
58
return
;
59
}
60
#endif
macros
blob
master
common
G4_Global.C
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:48
using
1.8.2 with
sPHENIX GitHub integration