Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hcana
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
jlab
hallc
analyzer_software
hcana
Commits
6ba9c9a3
Commit
6ba9c9a3
authored
6 years ago
by
Whitney Armstrong
Browse files
Options
Downloads
Patches
Plain Diff
Updated documentation and cmake build
parent
bd95138e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+21
-1
21 additions, 1 deletion
README.md
docs/libHallC_in_root.png
+0
-0
0 additions, 0 deletions
docs/libHallC_in_root.png
src/CMakeLists.txt
+5
-9
5 additions, 9 deletions
src/CMakeLists.txt
with
26 additions
and
10 deletions
README.md
+
21
−
1
View file @
6ba9c9a3
...
...
@@ -73,7 +73,27 @@ cmake ../. -DCMAKE_INSTALL_PREFIX=$HOME/my_exp_soft
make -j4 install
```
All done. Now you can run
`hc_analyzer`
and you're off to analyze.
All done. Now you can run
`hcana`
and you're off to analyze.
#### Loading the libraries into ROOT
```
// .rootlogon.C
{
gSystem->AddIncludePath(" -Iinclude/podd" );
gSystem->AddIncludePath(" -Iinclude/hcana");
gSystem->AddIncludePath(" -Iinclude/evio" );
gInterpreter->AddIncludePath("include/podd" );
gInterpreter->AddIncludePath("include/hcana");
gInterpreter->AddIncludePath("include/evio" );
gSystem->Load("libevioxx.so");
gSystem->Load("libHallA.so");
gSystem->Load("libdc.so");
gSystem->Load("libHallC.so");
}
```

### Other builds
...
...
This diff is collapsed.
Click to expand it.
docs/libHallC_in_root.png
0 → 100644
+
0
−
0
View file @
6ba9c9a3
135 KiB
This diff is collapsed.
Click to expand it.
src/CMakeLists.txt
+
5
−
9
View file @
6ba9c9a3
...
...
@@ -61,8 +61,6 @@ target_include_directories(HallC
target_compile_options
(
HallC PRIVATE $<$<CXX_COMPILER_ID:GNU>:-DHAS_SSTREAM=1>
)
target_link_libraries
(
HallC
#PUBLIC ${EXPAT_LIBRARIES}
#PUBLIC ${CMAKE_THREAD_LIBS_INIT}
PUBLIC
${
ROOT_LIBRARIES
}
PUBLIC PODD::HallA
PUBLIC PODD::Decode
...
...
@@ -70,8 +68,8 @@ target_link_libraries(HallC
#This is required so that the exported target has the name JSONUtils and not jsonutils
#set_target_properties(HallC PROPERTIES EXPORT_NAME hallC)
add_executable
(
hc
_
ana
lyzer
main.C
)
target_include_directories
(
hc
_
ana
lyzer
add_executable
(
hcana main.C
)
target_include_directories
(
hcana
PUBLIC
$<INSTALL_INTERFACE:include>
$<BUILD_INTERFACE:
${
CMAKE_CURRENT_SOURCE_DIR
}
>
...
...
@@ -82,15 +80,13 @@ target_include_directories(hc_analyzer
)
#target_compile_features(HallC PRIVATE cxx_auto_type)
target_compile_options
(
hc
_
ana
lyzer
PRIVATE $<$<CXX_COMPILER_ID:GNU>:-DHAS_SSTREAM=1>
)
target_link_libraries
(
hc
_
ana
lyzer
target_compile_options
(
hcana PRIVATE $<$<CXX_COMPILER_ID:GNU>:-DHAS_SSTREAM=1>
)
target_link_libraries
(
hcana
PUBLIC HallC
PUBLIC PODD::HallA
PUBLIC PODD::Decode
PUBLIC
${
ROOT_LIBRARIES
}
)
install
(
TARGETS HallC hc
_
ana
lyzer
install
(
TARGETS HallC hcana
EXPORT HCANA-targets
LIBRARY DESTINATION
${
CMAKE_INSTALL_LIBDIR
}
ARCHIVE DESTINATION
${
CMAKE_INSTALL_LIBDIR
}
...
...
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