File tree 20 files changed +78
-27
lines changed 20 files changed +78
-27
lines changed Original file line number Diff line number Diff line change 8
8
strategy :
9
9
fail-fast : false
10
10
matrix :
11
- SETUP : ["init_key4hep.sh", 'init_lcg .sh']
11
+ SETUP : ["init_key4hep.sh", 'init_lcg_97a_FCC_2.sh', 'init_lcg_98 .sh']
12
12
steps :
13
13
- uses : actions/checkout@v2
14
14
- name : Install CVMFS
Original file line number Diff line number Diff line change 10
10
11
11
* .log
12
12
build *
13
+ fcc-edm
13
14
install *
14
15
build. * .log
15
16
Makefile
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ find_package(DD4hep COMPONENTS DDG4 DDRec REQUIRED)
29
29
find_package (Geant4)
30
30
31
31
32
+
32
33
# Load macros and functions for Gaudi-based projects
33
34
find_package (GaudiProject)
34
35
#---------------------------------------------------------------
@@ -75,6 +76,7 @@ install(FILES ${CMAKE_BINARY_DIR}/setup.sh
75
76
WORLD_READ)
76
77
77
78
79
+ find_package (FCCEDM)
78
80
79
81
gaudi_project(FCCSW v0r13
80
82
USE Gaudi v33r1 )
Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ find_package(Eigen)
15
15
16
16
gaudi_add_module(DetComponents
17
17
src/*.cpp
18
- INCLUDE_DIRS GaudiKernel ROOT DD4hep Geant4 FWCore DetInterface DetSegmentation DetCommon Eigen
19
- LINK_LIBRARIES GaudiKernel ROOT DD4hep ${DD4hep_COMPONENT_LIBRARIES} DetSegmentation DetCommon FWCore)
18
+ INCLUDE_DIRS GaudiKernel ROOT DD4hep Geant4 FWCore DetInterface DetSegmentation DetCommon Eigen FCCEDM
19
+ LINK_LIBRARIES GaudiKernel ROOT DD4hep ${DD4hep_COMPONENT_LIBRARIES} DetSegmentation DetCommon FWCore FCCEDM )
20
20
target_link_libraries (DetComponents ${Geant4_LIBRARIES} )
21
21
include (CTest)
22
22
gaudi_add_test(RedoSegmentationXYZ
Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ find_package(CLHEP)
15
15
16
16
gaudi_add_module(DetStudies
17
17
src/components/*.cpp
18
- INCLUDE_DIRS GaudiKernel ROOT DD4hep FWCore CLHEP
19
- LINK_LIBRARIES GaudiKernel ROOT DD4hep ${DD4hep_COMPONENT_LIBRARIES} FWCore CLHEP)
18
+ INCLUDE_DIRS GaudiKernel ROOT DD4hep FWCore CLHEP FCCEDM
19
+ LINK_LIBRARIES GaudiKernel ROOT DD4hep ${DD4hep_COMPONENT_LIBRARIES} FWCore CLHEP FCCEDM )
20
20
21
21
install (DIRECTORY ${CMAKE_CURRENT_LIST_DIR} /tests DESTINATION ${CMAKE_INSTALL_DATADIR} /${CMAKE_PROJECT_NAME} /DetStudies)
22
22
Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ install(DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/options DESTINATION ${CMAKE_INSTALL_
14
14
15
15
gaudi_add_module(Examples
16
16
src/*.cpp
17
- INCLUDE_DIRS ROOT GaudiKernel Geant4 DD4hep SimG4Interface DetInterface DetCommon
18
- LINK_LIBRARIES GaudiAlgLib FWCore DetCommon ROOT GaudiKernel DD4hep
17
+ INCLUDE_DIRS ROOT GaudiKernel Geant4 DD4hep SimG4Interface DetInterface DetCommon FCCEDM
18
+ LINK_LIBRARIES GaudiAlgLib FWCore DetCommon ROOT GaudiKernel DD4hep FCCEDM
19
19
)
20
20
target_link_libraries (Examples ${Geant4_LIBRARIES} )
21
21
Original file line number Diff line number Diff line change @@ -31,7 +31,6 @@ gaudi_add_test(ReadTest
31
31
FRAMEWORK tests/options /simple_reader.py
32
32
DEPENDS ProduceForReadTest)
33
33
gaudi_add_test(CheckReadCollectionSize
34
- ENVIRONMENT PYTHONPATH+=${PODIO_PYTHON_DIR}
35
34
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
36
35
COMMAND python FWCore/tests/scripts/check_coll_after_read.py
37
36
DEPENDS ReadTest)
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ def _sanitize(s):
32
32
s: str
33
33
The sanitized string that should be compatible with gaudirun.py
34
34
"""
35
+ s = str (s )
35
36
s = s .replace ('"False"' , 'False' )
36
37
s = s .replace ('"True"' , 'True' )
37
38
s = s .replace ('"[' , '[' )
Original file line number Diff line number Diff line change 27
27
total_px_pileup = 0
28
28
total_px_merged = 0
29
29
30
- for s , p in zip ( particles_signal , particles_pileup ):
31
-
30
+ for i in range ( len ( particles_signal ) ):
31
+ s = particles_signal [ i ]
32
32
total_px_signal += s .core ().p4 .px
33
+ for i in range (len (particles_pileup )):
34
+ p = particles_pileup [i ]
33
35
total_px_pileup += p .core ().p4 .px
34
- for m in particles_merged :
36
+ for i in range (len (particles_merged )):
37
+ m = particles_merged [i ]
35
38
total_px_merged += m .core ().p4 .px
36
39
37
40
# check that we merged the right particles
Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ gaudi_install_python_modules()
14
14
15
15
gaudi_add_module(SimG4Components
16
16
src/*.cpp
17
- INCLUDE_DIRS Geant4 FWCore SimG4Common SimG4Interface DetCommon DD4hep ROOT
18
- LINK_LIBRARIES GaudiAlgLib FWCore SimG4Common DetCommon DD4hep ROOT)
17
+ INCLUDE_DIRS Geant4 FWCore SimG4Common SimG4Interface DetCommon DD4hep ROOT FCCEDM
18
+ LINK_LIBRARIES GaudiAlgLib FWCore SimG4Common DetCommon DD4hep ROOT FCCEDM )
19
19
target_link_libraries (SimG4Components ${Geant4_LIBRARIES} )
20
20
21
21
Original file line number Diff line number Diff line change @@ -12,13 +12,13 @@ find_package(ROOT COMPONENTS Tree)
12
12
13
13
gaudi_add_library(SimG4Fast
14
14
src/lib/*.cpp
15
- INCLUDE_DIRS SimG4Common FWCore SimG4Components SimG4Interface Geant4 ROOT
16
- LINK_LIBRARIES GaudiAlgLib SimG4Common ROOT
15
+ INCLUDE_DIRS SimG4Common FWCore SimG4Components SimG4Interface Geant4 ROOT FCCEDM
16
+ LINK_LIBRARIES GaudiAlgLib SimG4Common ROOT FCCEDM
17
17
PUBLIC_HEADERS SimG4Fast)
18
18
target_link_libraries (SimG4Fast ${Geant4_LIBRARIES} )
19
19
20
20
gaudi_add_module(SimG4FastPlugins
21
21
src/components/*.cpp
22
- INCLUDE_DIRS Geant4 SimG4Common SimG4Fast SimG4Interface
23
- LINK_LIBRARIES GaudiAlgLib SimG4Fast SimG4Common)
22
+ INCLUDE_DIRS Geant4 SimG4Common SimG4Fast SimG4Interface FCCEDM
23
+ LINK_LIBRARIES GaudiAlgLib SimG4Fast SimG4Common FCCEDM )
24
24
target_link_libraries (SimG4FastPlugins ${Geant4_LIBRARIES} )
Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ gaudi_depends_on_subdirs(GaudiAlg GaudiKernel FWCore Generation)
10
10
11
11
gaudi_add_module(TestFWCorePlugins
12
12
src/components/*.cpp
13
- INCLUDE_DIRS FWCore
14
- LINK_LIBRARIES GaudiKernel FWCore)
13
+ INCLUDE_DIRS FWCore FCCEDM
14
+ LINK_LIBRARIES GaudiKernel FWCore FCCEDM )
15
15
16
16
17
17
include (CTest)
Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ gaudi_depends_on_subdirs(GaudiAlg GaudiKernel FWCore Generation)
13
13
14
14
gaudi_add_module(TestGenerationPlugins
15
15
src/components/*.cpp
16
- INCLUDE_DIRS FWCore HepMC
17
- LINK_LIBRARIES GaudiKernel FWCore HepMC)
16
+ INCLUDE_DIRS FWCore HepMC FCCEDM
17
+ LINK_LIBRARIES GaudiKernel FWCore HepMC FCCEDM )
18
18
19
19
include (CTest)
20
20
gaudi_add_test(EDM2HepMCConverstion
Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ find_package(ROOT COMPONENTS MathCore GenVector Geom REQUIRED)
11
11
12
12
gaudi_add_module(TestGeometry
13
13
src/components/*.cpp
14
- INCLUDE_DIRS Geant4 FWCore SimG4Interface SimG4Common DetInterface DetCommon TestGeometryLib
15
- LINK_LIBRARIES GaudiKernel FWCore DetCommon TestGeometryLib)
14
+ INCLUDE_DIRS Geant4 FWCore SimG4Interface SimG4Common DetInterface DetCommon TestGeometryLib FCCEDM
15
+ LINK_LIBRARIES GaudiKernel FWCore DetCommon TestGeometryLib FCCEDM)
16
16
target_link_libraries (TestGeometry ${Geant4_LIBRARIES} )
17
17
18
18
Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ find_package(ROOT COMPONENTS Geom)
15
15
16
16
gaudi_add_module(TestReconstructionPlugins
17
17
src/*.cpp
18
- INCLUDE_DIRS FWCore DetInterface TrackingUtils Geant4 DetCommon DetSegmentation GaudiKernel
19
- LINK_LIBRARIES FWCore GaudiAlgLib FWCore TrackingUtils DetCommon DetSegmentation)
18
+ INCLUDE_DIRS FWCore DetInterface TrackingUtils Geant4 DetCommon DetSegmentation GaudiKernel FCCEDM
19
+ LINK_LIBRARIES FWCore GaudiAlgLib FWCore TrackingUtils DetCommon DetSegmentation FCCEDM )
20
20
target_link_libraries (TestReconstructionPlugins ${Geant4_LIBRARIES} )
21
21
22
22
include (CTest)
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ FIND_PATH(EVTGEN_INCLUDE_DIR NAMES EvtGen/EvtGen.hh
19
19
20
20
FIND_PATH (EVTGEN_LIBRARY_DIR NAMES libEvtGen.so
21
21
HINTS ${searchpath}
22
- PATH_SUFFIXES lib)
22
+ PATH_SUFFIXES lib lib64 )
23
23
24
24
set (EVTGEN_LIBRARIES ${EVTGEN_LIBRARY_DIR} /libEvtGen.so ${EVTGEN_LIBRARY_DIR} /libEvtGenExternal.so)
25
25
Original file line number Diff line number Diff line change 1
- init_lcg .sh
1
+ init_lcg_97a_FCC_2 .sh
Original file line number Diff line number Diff line change
1
+ LCGPREFIX=/cvmfs/sft.cern.ch/lcg
2
+ export BINARY_TAG=x86_64-centos7-gcc8-opt
3
+ LCGPATH=$LCGPREFIX /views/LCG_97a_FCC_2/$BINARY_TAG
4
+ source $LCGPATH /bin/thisdd4hep_only.sh
5
+ source $LCGPATH /setup.sh
6
+
7
+
8
+ export Gaudi_DIR=$( dirname $( readlink -f " $( which gaudirun.py) " ) ) /../
9
+ export CMAKE_PREFIX_PATH=$Gaudi_DIR :$CMAKE_PREFIX_PATH
Original file line number Diff line number Diff line change
1
+ LCGPREFIX=/cvmfs/sft.cern.ch/lcg
2
+ export BINARY_TAG=x86_64-centos7-gcc8-opt
3
+ LCGPATH=$LCGPREFIX /views/LCG_98/$BINARY_TAG
4
+ source $LCGPATH /bin/thisdd4hep_only.sh
5
+ source $LCGPATH /setup.sh
6
+
7
+
8
+ # make sure Gaudi.xenv can be found
9
+
10
+ export Gaudi_DIR=$( dirname $( readlink -f " $( which gaudirun.py) " ) ) /../
11
+ export CMAKE_PREFIX_PATH=$Gaudi_DIR :$CMAKE_PREFIX_PATH
12
+
13
+ # build FCC-dependencies on top of LCG
14
+
15
+ if [ ! -d " ./fcc-edm" ]
16
+ then
17
+ git clone --depth=1 https://github.com/hep-fcc/fcc-edm
18
+ cd fcc-edm; mkdir build install; cd build;
19
+ cmake .. -DCMAKE_INSTALL_PREFIX=../install
20
+ make -j ` getconf _NPROCESSORS_ONLN` install
21
+ cd ../
22
+ export CMAKE_PREFIX_PATH=$PWD /install:$CMAKE_PREFIX_PATH
23
+ export ROOT_INCLUDE_PATH=$PWD /install/include/datamodel:$PWD /install/:$ROOT_INCLUDE_PATH
24
+ export LD_LIBRARY_PATH=$PWD /install/lib/:$PWD /install/lib64/$LD_LIBRARY_PATH
25
+ touch .gaudi_project_ignore
26
+ cd ../
27
+ fi
28
+
29
+
Original file line number Diff line number Diff line change @@ -6,3 +6,10 @@ source $LCGPATH/bin/thisdd4hep_only.sh
6
6
export Gaudi_DIR=/cvmfs/sft.cern.ch/lcg/releases/Gaudi/v33r1-2775b/x86_64-centos7-gcc8-opt
7
7
export CMAKE_PREFIX_PATH=$Gaudi_DIR :$CMAKE_PREFIX_PATH
8
8
source /cvmfs/sft.cern.ch/lcg/views/LCG_97a_FCC_2/x86_64-centos7-gcc8-opt/setup.sh
9
+
10
+ export FCCSWBASEDIR=/cvmfs/sft.cern.ch/lcg/releases/fccsw/0.13-5b877/x86_64-centos7-gcc8-opt/
11
+ export FCCSWSHAREDIR=$FCCSWBASEDIR /share/FCCSW
12
+ export FCC_DETECTORS=$FCCSWSHAREDIR
13
+ export FCC_PYTHIACARDS=$FCCSWSHAREDIR
14
+ export FCCSW=/cvmfs/sft.cern.ch/lcg/releases/fccsw/0.13-5b877/x86_64-centos7-gcc8-opt/share/FCCSW
15
+
You can’t perform that action at this time.
0 commit comments