forked from GeneROOT/ramtools
-
Notifications
You must be signed in to change notification settings - Fork 1
Restructuring #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
vgvassilev
merged 17 commits into
compiler-research:develop
from
AdityaPandeyCN:restructuring
Aug 14, 2025
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
a56df2b
restructured the project directory
AdityaPandeyCN 2ff8918
resolve merge conflicts
AdityaPandeyCN f0e0ef4
removed redundant files
AdityaPandeyCN e172568
removed redundant files
AdityaPandeyCN 650e549
conflict changes
AdityaPandeyCN cbad6b8
addressed wrong imports
AdityaPandeyCN 2813225
making imports more clear and updating CMakeLists
AdityaPandeyCN 34e54c8
making imports better
AdityaPandeyCN dc6da60
fixing imports
AdityaPandeyCN 4755ba1
Fixed imports and addressed CMakeLists suggestions
AdityaPandeyCN 5c35c39
merged ttree and rntuple libraries
AdityaPandeyCN f455f2b
Extract tool logic into a core library with tests
AdityaPandeyCN b1c3f48
changes to cmake
AdityaPandeyCN baf0205
renamed ramcore library
AdityaPandeyCN 9b281a0
Update ROOT version in CMakeLists.txt
AdityaPandeyCN 60fdd9e
added docs for main classes
AdityaPandeyCN f828e59
using ROOT_EXCEUTABLE
AdityaPandeyCN File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
Checks: > | ||
-*, | ||
bugprone-*, | ||
clang-diagnostic-*, | ||
clang-analyzer-*, | ||
cppcoreguidelines-*, | ||
llvm-*, | ||
misc-*, | ||
modernize-*, | ||
performance-*, | ||
portability-*, | ||
readability-*, | ||
-bugprone-narrowing-conversions, | ||
-bugprone-easily-swappable-parameters, | ||
-bugprone-implicit-widening-of-multiplication-result, | ||
-bugprone-unchecked-optional-access, | ||
-misc-const-correctness, | ||
-misc-unused-parameters, | ||
-misc-non-private-member-variables-in-classes, | ||
-misc-no-recursion, | ||
-misc-use-anonymous-namespace, | ||
-modernize-return-braced-init-list, | ||
-modernize-use-trailing-return-type, | ||
-readability-braces-around-statements, | ||
-readability-identifier-length, | ||
-readability-magic-numbers, | ||
-readability-named-parameter, | ||
-readability-function-cognitive-complexity, | ||
-readability-implicit-bool-conversion, | ||
-cppcoreguidelines-avoid-magic-numbers, | ||
-clang-analyzer-cplusplus.NewDeleteLeaks, | ||
|
||
CheckOptions: | ||
- key: readability-identifier-naming.ClassCase | ||
value: aNy_CasE | ||
- key: readability-identifier-naming.FunctionCase | ||
value: aNy_CasE | ||
- key: readability-identifier-naming.MemberCase | ||
value: aNy_CasE | ||
- key: readability-identifier-naming.PrivateMemberPrefix | ||
value: 'm_' | ||
- key: readability-identifier-naming.ProtectedMemberPrefix | ||
value: 'm_' | ||
- key: readability-identifier-naming.PublicMemberPrefix | ||
value: '' | ||
- key: readability-identifier-naming.ParameterCase | ||
value: aNy_CasE | ||
- key: readability-identifier-naming.UnionCase | ||
value: CamelCase | ||
- key: readability-identifier-naming.VariableCase | ||
value: aNy_CasE | ||
- key: readability-identifier-naming.IgnoreMainLikeFunctions | ||
value: 1 | ||
- key: readability-implicit-bool-conversion.AllowPointerConditions | ||
value: 1 | ||
- key: readability-magic-numbers.IgnorePowersOf2IntegerValues | ||
value: 1 | ||
- key: readability-magic-numbers.IgnoredIntegerValues | ||
value: 4;8;16; | ||
- key: bugprone-argument-comment.CommentNullPtrs | ||
value: 1 | ||
- key: bugprone-argument-comment.CommentBoolLiterals | ||
value: 1 | ||
- key: bugprone-argument-comment.StrictMode | ||
value: 1 | ||
- key: bugprone-argument-comment.CommentIntegerLiterals | ||
value: 1 | ||
- key: bugprone-argument-comment.CommentUserDefinedLiterals | ||
value: 1 | ||
- key: bugprone-argument-comment.CommentStringLiterals | ||
value: 1 | ||
- key: bugprone-argument-comment.CommentFloatLiterals | ||
value: 1 | ||
- key: bugprone-argument-comment.CommentCharacterLiterals | ||
value: 1 | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,3 +17,12 @@ tmp/ | |
*.bk | ||
*.rootix | ||
*.sam | ||
build/ | ||
cmake-build-*/ | ||
Build/ | ||
BUILD/ | ||
Testing/ | ||
.vscode/ | ||
docs/html/ | ||
docs/latex/ | ||
html/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,65 @@ | ||
cmake_minimum_required(VERSION 3.16) | ||
project(ramtools VERSION 1.0.0 LANGUAGES CXX) | ||
|
||
project(ramtools LANGUAGES CXX) | ||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON) | ||
|
||
set(CMAKE_CXX_STANDARD 17) | ||
set(CMAKE_CXX_STANDARD_REQUIRED ON) | ||
set(CMAKE_POSITION_INDEPENDENT_CODE ON) | ||
|
||
find_package(ROOT 6.26 REQUIRED | ||
COMPONENTS Core RIO Tree ROOTNTuple) | ||
option(RAMTOOLS_BUILD_TESTS "Build unit tests" ON) | ||
option(RAMTOOLS_BUILD_BENCHMARKS "Build benchmarks" ON) | ||
option(RAMTOOLS_BUILD_TOOLS "Build tools" ON) | ||
|
||
set(RNTUPLE_LIBS ROOT::ROOTNTuple ROOT::ROOTNTupleUtil) | ||
set(ROOT_MIN_VERSION 6.26) | ||
find_package(ROOT ${ROOT_MIN_VERSION} REQUIRED COMPONENTS Core RIO Tree ROOTNTuple ROOTNTupleUtil) | ||
|
||
include(${ROOT_USE_FILE}) | ||
|
||
include_directories(${CMAKE_SOURCE_DIR} ${CMAKE_SOURCE_DIR}/rntuple) | ||
include(GNUInstallDirs) | ||
set(CMAKE_INSTALL_LIBDIR lib) | ||
set(CMAKE_INSTALL_INCLUDEDIR include) | ||
|
||
ROOT_STANDARD_LIBRARY_PACKAGE(ramrecord | ||
SOURCES ramrecord.C | ||
HEADERS ramrecord.h | ||
LIBRARIES ROOT::Core ROOT::RIO ROOT::Tree | ||
ROOT_STANDARD_LIBRARY_PACKAGE(ramcore | ||
HEADERS | ||
inc/ttree/RAMRecord.h | ||
inc/ttree/Utils.h | ||
inc/ttree/CigarOps.h | ||
inc/rntuple/RAMNTupleRecord.h | ||
inc/ramcore/SamParser.h | ||
inc/ramcore/SamToTTree.h | ||
inc/ramcore/SamToNTuple.h | ||
SOURCES | ||
src/ttree/RAMRecord.cxx | ||
src/rntuple/RAMNTupleRecord.cxx | ||
src/ramcore/SamParser.cxx | ||
src/ramcore/SamToTTree.cxx | ||
src/ramcore/SamToNTuple.cxx | ||
LINKDEF | ||
inc/ttree/LinkDef.h | ||
DEPENDENCIES | ||
ROOT::Core | ||
ROOT::RIO | ||
ROOT::Tree | ||
ROOT::ROOTNTuple | ||
ROOT::ROOTNTupleUtil | ||
INSTALL_OPTIONS | ||
DESTINATION ${CMAKE_INSTALL_LIBDIR} | ||
) | ||
|
||
set(RAMTOOLS_ROOT_LIBS ROOT::Core ROOT::RIO ROOT::Tree) | ||
|
||
ROOT_STANDARD_LIBRARY_PACKAGE(ramntuplerecord | ||
SOURCES rntuple/RAMntuplerecord.C | ||
HEADERS rntuple/RAMNTupleRecord.h | ||
LIBRARIES ROOT::Core ROOT::RIO ROOT::Tree ${RNTUPLE_LIBS} | ||
target_include_directories(ramcore | ||
PUBLIC | ||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/inc> | ||
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}> | ||
) | ||
|
||
ROOT_EXECUTABLE(samtoramntuple | ||
vgvassilev marked this conversation as resolved.
Show resolved
Hide resolved
|
||
rntuple/samtoramntuple.C | ||
LIBRARIES ramntuplerecord ${RAMTOOLS_ROOT_LIBS} ${RNTUPLE_LIBS}) | ||
install(DIRECTORY inc/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) | ||
|
||
include(CTest) | ||
file(GLOB RAMTESTS tests/test_*.C) | ||
foreach(testfile ${RAMTESTS}) | ||
get_filename_component(testname ${testfile} NAME_WE) | ||
add_test(NAME ${testname} | ||
COMMAND root -l -b -q ${testfile}+) | ||
set_tests_properties(${testname} PROPERTIES WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}) | ||
endforeach() | ||
if(RAMTOOLS_BUILD_TOOLS) | ||
add_subdirectory(tools) | ||
endif() | ||
|
||
if(RAMTOOLS_BUILD_TESTS) | ||
enable_testing() | ||
add_subdirectory(test) | ||
endif() |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.