Class Reference for E1039 Core & Analysis Software
Settings.cc
Go to the documentation of this file.
1
#include "
Settings.hh
"
2
3
#include "jobopts_svc/JobOptsSvc.h"
4
#include "
GlobalConsts.h
"
5
6
Settings::Settings
()
7
{
8
// These are the settings that will be used by the monte carlo if parameters are not specified.
9
10
JobOptsSvc* p_jobOptsSvc = JobOptsSvc::instance();
11
12
seed
= 0;
13
beamMomentum
= 120*GeV;
14
beamCurrent
= 2e12;
15
asciiFieldMap
=
true
;
16
generator
=
"gun"
;
17
energyCut
= 1.0*GeV;
18
recordMethod
=
"hits"
;
19
eventPos
=
"both"
;
20
dimuonSource
=
"both"
;
21
login
=
"seaguest"
;
22
outputFileName
=
"test_default"
;
23
password
=
"qqbar2mu+mu-"
;
24
fMagName
= p_jobOptsSvc->m_fMagFile;
25
kMagName
= p_jobOptsSvc->m_kMagFile;
26
sqlServer
= p_jobOptsSvc->m_mySQLInputServer;
27
sqlPort
= p_jobOptsSvc->m_mySQLInputPort;
28
dimuonRepeat
= 1;
29
ironOn
=
true
;
30
trackingZCut
= 400*cm;
31
trackingEnergyCut
= 1.0*GeV;
32
if
(p_jobOptsSvc->m_alignmentMode)
33
{
34
kMagMultiplier
= 0.;
35
fMagMultiplier
= 0.;
36
}
37
else
if
(p_jobOptsSvc->m_mcMode)
38
{
39
kMagMultiplier
= 1.;
40
fMagMultiplier
= 1.;
41
}
42
else
43
{
44
kMagMultiplier
=
KMAGSTR
;
45
fMagMultiplier
=
FMAGSTR
;
46
}
47
48
geometrySchema
= p_jobOptsSvc->m_geomVersion;
49
magnetSchema
=
"geometry_R996_magneticFields"
;
50
target
= 1;
51
pythia_shower
=
true
;
52
bucket_size
= 40000;
53
}
GlobalConsts.h
FMAGSTR
const double FMAGSTR
Definition:
MacroCommon.h:2
KMAGSTR
const double KMAGSTR
Definition:
MacroCommon.h:3
Settings.hh
Settings::sqlServer
G4String sqlServer
Definition:
Settings.hh:40
Settings::beamCurrent
double beamCurrent
Definition:
Settings.hh:27
Settings::trackingEnergyCut
double trackingEnergyCut
Definition:
Settings.hh:44
Settings::dimuonRepeat
int dimuonRepeat
Definition:
Settings.hh:42
Settings::login
G4String login
Definition:
Settings.hh:35
Settings::ironOn
bool ironOn
Definition:
Settings.hh:43
Settings::target
int target
Definition:
Settings.hh:30
Settings::asciiFieldMap
bool asciiFieldMap
Definition:
Settings.hh:28
Settings::password
G4String password
Definition:
Settings.hh:37
Settings::kMagName
G4String kMagName
Definition:
Settings.hh:39
Settings::sqlPort
int sqlPort
Definition:
Settings.hh:41
Settings::beamMomentum
double beamMomentum
Definition:
Settings.hh:26
Settings::dimuonSource
G4String dimuonSource
Definition:
Settings.hh:34
Settings::geometrySchema
G4String geometrySchema
Definition:
Settings.hh:48
Settings::kMagMultiplier
double kMagMultiplier
Definition:
Settings.hh:47
Settings::bucket_size
int bucket_size
Definition:
Settings.hh:52
Settings::fMagName
G4String fMagName
Definition:
Settings.hh:38
Settings::pythia_shower
bool pythia_shower
Definition:
Settings.hh:51
Settings::magnetSchema
G4String magnetSchema
Definition:
Settings.hh:49
Settings::eventPos
G4String eventPos
Definition:
Settings.hh:33
Settings::outputFileName
G4String outputFileName
Definition:
Settings.hh:36
Settings::Settings
Settings()
Definition:
Settings.cc:6
Settings::seed
int seed
Definition:
Settings.hh:25
Settings::trackingZCut
double trackingZCut
Definition:
Settings.hh:45
Settings::generator
G4String generator
Definition:
Settings.hh:29
Settings::energyCut
double energyCut
Definition:
Settings.hh:31
Settings::fMagMultiplier
double fMagMultiplier
Definition:
Settings.hh:46
Settings::recordMethod
G4String recordMethod
Definition:
Settings.hh:32
e1039-core
packages
db2g4
Settings.cc
Built by
Haiwang Yu
. updated:
Thu Jan 30 2025 10:15:16
using
1.9.1 with
SeaQuest GitHub integration