Page Menu
Home
HEPForge
Search
Configure Global Search
Log In
Files
F19244954
test_scale_import.cc
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
test_scale_import.cc
View Options
/**
* \authors The HEJ collaboration (see AUTHORS for details)
* \date 2019-2020
* \copyright GPLv2 or later
*/
#include
<cstdlib>
#include
"fastjet/JetDefinition.hh"
#include
"fastjet/PseudoJet.hh"
#include
"HEJ/Config.hh"
#include
"HEJ/Event.hh"
#include
"HEJ/exceptions.hh"
#include
"HEJ/PDG_codes.hh"
#include
"HEJ/YAMLreader.hh"
int
main
(
int
argc
,
char
**
argv
)
{
constexpr
double
ep
=
1e-7
;
if
(
argc
!=
2
)
{
throw
std
::
logic_error
{
"wrong number of args"
};
}
const
HEJ
::
Config
config
=
HEJ
::
load_config
(
argv
[
1
]);
HEJ
::
Event
::
EventData
tmp
;
tmp
.
outgoing
.
push_back
(
{
HEJ
::
ParticleID
::
gluon
,
fastjet
::
PtYPhiM
(
50.
,
-
1.
,
0.3
,
0.
),
{}}
);
tmp
.
outgoing
.
push_back
(
{
HEJ
::
ParticleID
::
gluon
,
fastjet
::
PtYPhiM
(
30.
,
1.
,
-
0.3
,
0.
),
{}}
);
HEJ
::
Event
ev
{
tmp
(
fastjet
::
JetDefinition
{
fastjet
::
kt_algorithm
,
0.4
},
20.
)
};
const
double
softest_pt
=
config
.
scales
.
base
[
0
](
ev
);
if
(
std
::
abs
(
softest_pt
-
30.
)
>
ep
){
throw
std
::
logic_error
{
"wrong softest pt"
};
}
return
EXIT_SUCCESS
;
}
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Tue, Sep 30, 4:47 AM (11 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
6506929
Default Alt Text
test_scale_import.cc (1 KB)
Attached To
Mode
rHEJ HEJ
Attached
Detach File
Event Timeline
Log In to Comment