Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
Sherpa Team
sherpa
Commits
65e2ba8e
Commit
65e2ba8e
authored
Sep 18, 2012
by
Hendrik Hoeth
Browse files
Introduce TUNE option to set all tuned parameters at a time.
parent
dab5f4bf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
1 deletion
+39
-1
SHERPA/Initialization/Initialization_Handler.C
SHERPA/Initialization/Initialization_Handler.C
+38
-1
SHERPA/Initialization/Initialization_Handler.H
SHERPA/Initialization/Initialization_Handler.H
+1
-0
No files found.
SHERPA/Initialization/Initialization_Handler.C
View file @
65e2ba8e
...
...
@@ -1024,6 +1024,9 @@ void Initialization_Handler::ExtractCommandLineParameters(int argc,char * argv[]
else
{
Read_Write_Base
::
AddCommandLine
(
key
+
" = "
+
value
+
"; "
);
}
if
(
key
==
"TUNE"
)
{
SetTuneParameters
(
value
);
}
}
else
{
Read_Write_Base
::
AddCommandLine
(
par
+
";"
);
...
...
@@ -1032,4 +1035,38 @@ void Initialization_Handler::ExtractCommandLineParameters(int argc,char * argv[]
rpa
->
gen
.
SetVariable
(
"RUN_DATA_FILE"
,
m_file
);
}
void
Initialization_Handler
::
SetTuneParameters
(
const
std
::
string
tune
)
{
std
::
vector
<
std
::
string
>
tuneparams
;
if
(
tune
==
"NNPDF23"
)
{
tuneparams
.
push_back
(
"PDF_LIBRARY = LHAPDFSherpa"
);
tuneparams
.
push_back
(
"PDF_SET = NNPDF23_nlo_as_0119.LHgrid"
);
tuneparams
.
push_back
(
"K_PERP_MEAN_1 = 1.08"
);
tuneparams
.
push_back
(
"K_PERP_MEAN_2 = 1.08"
);
tuneparams
.
push_back
(
"K_PERP_SIGMA_1 = 1.10"
);
tuneparams
.
push_back
(
"K_PERP_SIGMA_2 = 1.10"
);
tuneparams
.
push_back
(
"PROFILE_PARAMETERS = 0.44 0.93"
);
tuneparams
.
push_back
(
"RESCALE_EXPONENT = 0.208"
);
tuneparams
.
push_back
(
"SCALE_MIN = 2.63"
);
tuneparams
.
push_back
(
"SIGMA_ND_FACTOR = 0.388"
);
tuneparams
.
push_back
(
"CSS_IS_AS_FAC = 0.872"
);
tuneparams
.
push_back
(
"CSS_IS_PT2MIN = 2.21"
);
tuneparams
.
push_back
(
"COLOUR_RECONNECTION_STRENGTH = 0.25"
);
}
else
{
msg_Error
()
<<
"Ignoring unknown tune name
\"
"
<<
tune
<<
"
\"
"
<<
std
::
endl
;
return
;
}
msg_Out
()
<<
"******************************************************"
<<
std
::
endl
;
msg_Out
()
<<
"****"
<<
std
::
endl
;
msg_Out
()
<<
"**** Setting tune parameters for "
<<
tune
<<
std
::
endl
;
msg_Out
()
<<
"****"
<<
std
::
endl
;
for
(
size_t
i
=
0
;
i
<
tuneparams
.
size
();
i
++
)
{
msg_Out
()
<<
"**** "
<<
tuneparams
[
i
]
<<
std
::
endl
;
Read_Write_Base
::
AddCommandLine
(
tuneparams
[
i
]);
}
msg_Out
()
<<
"****"
<<
std
::
endl
;
msg_Out
()
<<
"**** Note that these parameters might get overwritten on the command line"
<<
std
::
endl
;
msg_Out
()
<<
"**** or by parameters set appearing later in the run card."
<<
std
::
endl
;
msg_Out
()
<<
"****"
<<
std
::
endl
;
msg_Out
()
<<
"******************************************************"
<<
std
::
endl
;
}
SHERPA/Initialization/Initialization_Handler.H
View file @
65e2ba8e
...
...
@@ -92,6 +92,7 @@ namespace SHERPA {
const
std
::
string
&
arg
,
const
std
::
string
&
tag
,
const
std
::
string
&
def
=
std
::
string
(
""
))
const
;
void
ExtractCommandLineParameters
(
int
argc
,
char
*
argv
[]);
void
SetTuneParameters
(
const
std
::
string
tune
);
bool
CheckBeamISRConsistency
();
void
SetGlobalVariables
();
void
PrepareTerminate
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment