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 
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  {
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 }
const double FMAGSTR
Definition: MacroCommon.h:2
const double KMAGSTR
Definition: MacroCommon.h:3
G4String sqlServer
Definition: Settings.hh:40
double beamCurrent
Definition: Settings.hh:27
double trackingEnergyCut
Definition: Settings.hh:44
int dimuonRepeat
Definition: Settings.hh:42
G4String login
Definition: Settings.hh:35
bool ironOn
Definition: Settings.hh:43
int target
Definition: Settings.hh:30
bool asciiFieldMap
Definition: Settings.hh:28
G4String password
Definition: Settings.hh:37
G4String kMagName
Definition: Settings.hh:39
int sqlPort
Definition: Settings.hh:41
double beamMomentum
Definition: Settings.hh:26
G4String dimuonSource
Definition: Settings.hh:34
G4String geometrySchema
Definition: Settings.hh:48
double kMagMultiplier
Definition: Settings.hh:47
int bucket_size
Definition: Settings.hh:52
G4String fMagName
Definition: Settings.hh:38
bool pythia_shower
Definition: Settings.hh:51
G4String magnetSchema
Definition: Settings.hh:49
G4String eventPos
Definition: Settings.hh:33
G4String outputFileName
Definition: Settings.hh:36
Settings()
Definition: Settings.cc:6
int seed
Definition: Settings.hh:25
double trackingZCut
Definition: Settings.hh:45
G4String generator
Definition: Settings.hh:29
double energyCut
Definition: Settings.hh:31
double fMagMultiplier
Definition: Settings.hh:46
G4String recordMethod
Definition: Settings.hh:32