Skip to content
Snippets Groups Projects
Commit 47872434 authored by fjlinz's avatar fjlinz Committed by Florian Uhlig
Browse files

Removing needels includes and checks

parent 2f0317cb
No related branches found
No related tags found
1 merge request!1471Configurable executable for AT converter
Pipeline #25348 passed
......@@ -9,11 +9,6 @@ set(SRCS
set(INCLUDE_DIRECTORIES ${CMAKE_CURRENT_SOURCE_DIR})
if(OpenMP_CXX_FOUND)
list(APPEND DEPENDENCIES OpenMP::OpenMP_CXX)
endif()
set(LIBRARY_NAME CbmAtConverterSteer)
set(LINKDEF RootLinkDef.h)
set(PUBLIC_DEPENDENCIES
......@@ -38,24 +33,4 @@ set(PRIVATE_DEPENDENCIES
Algo
)
# Check if the compiler supports std::execution in the respective STL
# library
CHECK_CXX_SOURCE_COMPILES("
#include <numeric>
#include <vector>
#include <execution>
int main(int argc, char *argv[])
{
std::vector<double> v(10, 1);
auto result = std::reduce(std::execution::par, v.begin(), v.end());
return 0;
}" HAS_STD_EXECUTION)
if (HAS_STD_EXECUTION)
message("Execution is available in STL")
add_definitions(-DWITH_EXECUTION)
endif()
generate_cbm_library()
......@@ -15,13 +15,12 @@
#include <FairRunAna.h>
#include <TNamed.h>
#include <TTree.h>
#include <TString.h>
#include <string>
#include "Config.h"
class TGeoManager;
class CbmSetup;
class FairTask;
......
......@@ -88,15 +88,15 @@ void run_analysis_tree_maker_json_config(TString traPath = "test", TString rawPa
// ----- Reconstruction run -------------------------------------------
auto* run = new FairRunAna();
auto* inputSource = new FairFileSource(recFile);
inputSource->AddFriend(traFile); // Only needed for matching? -> remove
inputSource->AddFriend(rawFile); // why we need this here?
inputSource->AddFriend(traFile);
inputSource->AddFriend(rawFile);
run->SetSource(inputSource);
run->SetSink(std::make_unique<FairRootFileSink>(outFile));
run->SetGenerateRunInfo(kTRUE);
// ------------------------------------------------------------------------
// ----- Mc Data Manager ------------------------------------------------
auto* mcManager = new CbmMCDataManager(); // Only needed for matching? -> remove
auto* mcManager = new CbmMCDataManager();
mcManager->AddFile(traFile);
run->AddTask(mcManager);
// ------------------------------------------------------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment