Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pythia6m
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
monte_carlo
pythia6m
Commits
45d9ab52
Commit
45d9ab52
authored
9 years ago
by
Sylvester Joosten
Browse files
Options
Downloads
Patches
Plain Diff
added program stub to cmake build
parent
c7accf2a
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
program/CMakeLists.txt
+54
-0
54 additions, 0 deletions
program/CMakeLists.txt
program/example-config.json
+5
-0
5 additions, 0 deletions
program/example-config.json
program/pythia6m.cc
+16
-0
16 additions, 0 deletions
program/pythia6m.cc
with
75 additions
and
0 deletions
program/CMakeLists.txt
0 → 100644
+
54
−
0
View file @
45d9ab52
################################################################################
## CMAKE Settings
################################################################################
set
(
EXE
"pythia6m"
)
set
(
TARGETS
${
TARGETS
}
${
EXE
}
PARENT_SCOPE
)
################################################################################
## Sources and install headers
################################################################################
set
(
SOURCES
"pythia6m.cc"
)
################################################################################
## Include directories
################################################################################
include_directories
(
"
${
PROJECT_SOURCE_DIR
}
"
)
include_directories
(
"
${
CMAKE_CURRENT_SOURCE_DIR
}
"
)
################################################################################
## External Libraries
################################################################################
## ROOT
find_package
(
ROOT REQUIRED
)
include_directories
(
${
ROOT_INCLUDE_DIR
}
)
## boost
find_package
(
Boost COMPONENTS program_options filesystem system REQUIRED
)
include_directories
(
${
Boost_INCLUDE_DIRS
}
)
## nanocernlib
find_package
(
nanocernlib REQUIRED
)
################################################################################
## Compile and Link
################################################################################
add_executable
(
${
EXE
}
${
SOURCES
}
)
target_link_libraries
(
${
EXE
}
pythia6m_fmotion
pythia6m_gmc
pythia6m_pythia
pythia6m_radgen
pythia6m_util
pythia6m_fmotion
pythia6m_gmc
pythia6m_pythia
pythia6m_radgen
pythia6m_util
${
ROOT_LIBRARIES
}
${
Boost_LIBRARIES
}
${
NANOCERNLIB_LIBRARIES
}
)
set_target_properties
(
${
EXE
}
PROPERTIES VERSION
${
PYTHIA6M_VERSION
}
)
################################################################################
## Export and Install
################################################################################
install
(
TARGETS
${
EXE
}
EXPORT
${
PROJECT_NAME
}
-targets
RUNTIME DESTINATION
"
${
INSTALL_BIN_DIR
}
"
COMPONENT bin
)
This diff is collapsed.
Click to expand it.
program/example-config.json
0 → 100644
+
5
−
0
View file @
45d9ab52
"target"
:
{
"nucleon"
:
"p"
,
"polarization"
:
{
"value"
:
0
,
"direction"
k
This diff is collapsed.
Click to expand it.
program/pythia6m.cc
0 → 100644
+
16
−
0
View file @
45d9ab52
#include
<pythia6m/util/configuration.hh>
#include
<pythia6m/util/framework.hh>
using
namespace
pythia6m
;
int
run_pythia
(
const
ptree
&
settings
,
const
std
::
string
&
output
)
{}
int
main
(
int
argc
,
char
*
argv
[])
{
try
{
framework
pythia6m
{
argc
,
argv
,
run_pythia
};
pythia6m
.
run
();
return
0
;
}
catch
(...)
{
return
1
;
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment