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_User.C
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file G4_User.C
1
#ifndef MACRO_G4USER_C
2
#define MACRO_G4USER_C
3
4
#include <
fun4all/Fun4AllServer.h
>
5
6
R__LOAD_LIBRARY(libfun4all.so)
7
8
class
PHG4Reco
;
9
10
namespace Enable
11
{
12
// if you want this to run by default, initialize this to true
13
// Otherwise you have to use Enable::USER = true; in your macro
14
bool
USER
=
false
;
15
int
USER_VERBOSITY
= 0;
16
}
17
18
namespace
G4USER
19
{
20
// here you can set parameters in your macro via
21
// G4USER::myparam = 1;
22
// add as many as you need
23
int
myparam
= 0;
24
}
25
26
// This initializes the G4 part if you have a detector implemented
27
// You need to tell its dimensions to the surrounding black hole
28
void
UserInit
()
29
{
30
// set the black hole dimensions surrounding the detector
31
// XXX: maximum radius of your detector
32
// YYY: maximum extension in z
33
// ZZZ: maximum extension in -z (use -ZZZ)
34
//BlackHoleGeometry::max_radius = std::max(BlackHoleGeometry::max_radius, XXX);
35
//BlackHoleGeometry::max_z = std::max(BlackHoleGeometry::max_z, YYY);
36
//BlackHoleGeometry::min_z = std::min(BlackHoleGeometry::min_z, ZZZ);
37
}
38
39
// If you have a detector - here goes the setup
40
void
UserDetector
(
PHG4Reco
*g4Reco)
41
{
42
return
;
43
}
44
45
// Any analysis goes here (registering your module with Fun4All)
46
void
UserAnalysisInit
()
47
{
48
Fun4AllServer
* se =
Fun4AllServer::instance
();
49
50
return
;
51
}
52
53
#endif
macros
blob
master
common
G4_User.C
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:27
using
1.8.2 with
sPHENIX GitHub integration