Skip to content

Commit

Permalink
copying ops analisis from the fallen server
Browse files Browse the repository at this point in the history
  • Loading branch information
kkacprzak committed Feb 20, 2024
1 parent 54f1ed8 commit 449f364
Show file tree
Hide file tree
Showing 9 changed files with 2,199 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ add_subdirectory(ModularDetectorAnalysis)
add_subdirectory(ListmodeExport)
add_subdirectory(MCGeantAnalysis)
add_subdirectory(RedModuleAnalysis)

add_subdirectory(opsAnalysis)
#add_subdirectory(Imaging)
#add_subdirectory(InterfileReconstruction)
#add_subdirectory(LargeBarrelAnalysis)
Expand Down
87 changes: 87 additions & 0 deletions opsAnalysis/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
################################################################################
## Data analysis project based on J-PET Framework
## Created by J-PET Framework developers 2016-2018
##
## Description:
## Builds template for new analysis project
################################################################################

cmake_minimum_required(VERSION 3.1...3.14)

if(${CMAKE_VERSION} VERSION_LESS 3.14)
cmake_policy(VERSION ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION})
else()
cmake_policy(VERSION 3.14)
endif()

######################################################################
## Project name - set this section appropriately for your project
## (please remove this comment in your template-derived analysis)
######################################################################
set(projectName opsAnalysis)

## Auxiliary files are copied to build directory after CMake
## You can add any files to this list
set(AUXILLIARY_FILES
README.md
)

################################################################################
## Binary, header and source files definitions
set(projectBinary ${projectName}.x)
project(${projectName} CXX) # using only C++

## Using source files of modules from LargeBarrelAnalysis
set(use_modules_from ../ModularDetectorAnalysis)
######################################################################
## If you are using your own version of some module which is also present
## in LargeBarrelAnalysis, comment out the respective lines below
## so as not to use this module's source from LargeBarrelAnalysis.
## (please remove this comment in your template-derived analysis)
## Add your own HEADERS/SOURCES
set(HEADERS ${use_modules_from}/TimeWindowCreator.h
${use_modules_from}/TimeWindowCreatorTools.h
#${use_modules_from}/UniversalFileLoader.h
${use_modules_from}/SignalFinder.h
${use_modules_from}/SignalFinderTools.h
${use_modules_from}/SignalTransformer.h
${use_modules_from}/SignalTransformerTools.h
#${use_modules_from}/ToTEnergyConverter.h
#${use_modules_from}/ToTEnergyConverterFactory.h
${use_modules_from}/HitFinder.h
${use_modules_from}/HitFinderTools.h
${use_modules_from}/EventFinder.h
${use_modules_from}/EventCategorizerTools.h
EventCategorizer.h
reconstructor.h
NTupler.h)

set(SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/main.cpp
${use_modules_from}/TimeWindowCreator.cpp
${use_modules_from}/TimeWindowCreatorTools.cpp
#${use_modules_from}/UniversalFileLoader.cpp
${use_modules_from}/SignalFinder.cpp
${use_modules_from}/SignalFinderTools.cpp
${use_modules_from}/SignalTransformer.cpp
${use_modules_from}/SignalTransformerTools.cpp
#${use_modules_from}/ToTEnergyConverter.cpp
#${use_modules_from}/ToTEnergyConverterFactory.cpp
${use_modules_from}/HitFinder.cpp
${use_modules_from}/HitFinderTools.cpp
${use_modules_from}/EventFinder.cpp
${use_modules_from}/EventCategorizerTools.cpp
EventCategorizer.cpp
reconstructor.cpp
NTupler.cpp
main.cpp)

add_executable(${projectBinary} ${SOURCES} ${HEADERS})
target_link_libraries(${projectBinary} JPetFramework::JPetFramework)

add_custom_target(clean_data_${projectName}
COMMAND rm -f *.tslot.*.root *.phys.*.root *.sig.root
)

################################################################################
## Copy the example auxiliary files
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/${AUXILIARY_FILES} DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/)
Loading

0 comments on commit 449f364

Please sign in to comment.