Skip to content
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

Update DRC geometry migration #1

Merged
merged 92 commits into from
Dec 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
92 commits
Select commit Hold shift + click to select a range
4ea83fd
CLD_o2_v05: fix material of Conical Beampipe again
andresailer Sep 22, 2023
1dfca23
Adding IDEA_o1_v02 and its vertex detector (#273)
armin-ilg Oct 3, 2023
469412f
SServices00: allow individual parts to be switched on/off
danieljeans Aug 29, 2023
f27b736
add model ILD_l5_v10
danieljeans Aug 29, 2023
0b5b0b7
add model ILD_l5_v11
danieljeans Aug 29, 2023
e0622e7
add model descriptions for ILD_l5_v10/v11
danieljeans Aug 29, 2023
ff90241
Revert "SServices00: allow individual parts to be switched on/off"
danieljeans Aug 30, 2023
5e82823
SServices00: allow individual parts to be switched on/off
danieljeans Aug 30, 2023
e6d2917
SServices00: formatting/indenting only
danieljeans Aug 30, 2023
bc992ce
renaming; bug fixes
danieljeans Sep 19, 2023
93fb119
better consistency ILD_l5_v10, v11
danieljeans Sep 19, 2023
af13f60
add tests for new models
danieljeans Sep 19, 2023
5f22427
attempt to fix trackerreadoutID issue...
danieljeans Sep 19, 2023
7faa9c2
rearrange some files to avoid duplication; fix typos
danieljeans Sep 20, 2023
6fc7930
bug fix (copied from https://github.com/key4hep/k4geo/pull/291/)
danieljeans Sep 25, 2023
6cd41ed
FCCee IDEA compact files migrated from FCCDetectors
atolosadelgado Jul 10, 2023
33b86de
FCCee IDEA-LAr compact files migrated from FCCDetectors
atolosadelgado Jul 10, 2023
c6b3697
FCCee IDEA-LAr compact files migrated from FCCDetectors
atolosadelgado Jul 10, 2023
fd87806
Update in xml files of IDEA
atolosadelgado Jul 12, 2023
40754ff
DetSegmentation classes migrated from FCC Detectors
atolosadelgado Jul 12, 2023
d3cb4cd
DetCommon, DetSensitive and DetSegmentation added from FCCDetectors
atolosadelgado Jul 12, 2023
305355c
IDEA components added
atolosadelgado Jul 12, 2023
e0e3a6b
NLB detector constructors copied from FCCDetectors
atolosadelgado Jul 12, 2023
a045910
Suffix _o1_v01 added to name of detector builders
atolosadelgado Jul 13, 2023
585eeed
master xml file has the same name as the directory
atolosadelgado Jul 13, 2023
bc6ff81
rename IDEA master xml file to IDEA_o1_v01
atolosadelgado Jul 17, 2023
519382c
ÂIDEA main directory README file added
atolosadelgado Jul 17, 2023
4d8c068
ÂNLB main directory README file added
atolosadelgado Jul 17, 2023
d6e63eb
Detector constructor removed and xml where used changed
atolosadelgado Aug 31, 2023
6ee1671
Purging detector/DetCommon folder from unused files within the k4geo …
atolosadelgado Aug 31, 2023
b70ea64
NLB detector concept renamed to ALLEGRO
atolosadelgado Aug 31, 2023
37ea2f8
Renamed folders as stated in https://github.com/key4hep/k4geo/issues/…
atolosadelgado Aug 31, 2023
1a2106e
Master XML file of ALLEGRO_o1_v01 renamed as directory
atolosadelgado Aug 31, 2023
19098bb
Renaming of the segmentation and sensitive detectors directories
atolosadelgado Sep 1, 2023
89bba2f
replace SYSTEM keyword of segmentation subdirectory by property global
atolosadelgado Sep 1, 2023
e84b858
GridEta renamed to GridEta_k4geo
atolosadelgado Sep 1, 2023
f36eb4a
DetCommon and sensitive detector folders removed
atolosadelgado Sep 5, 2023
18f3070
GridTheta refactor
atolosadelgado Sep 5, 2023
06e5753
GridThetaHandle refactor
atolosadelgado Sep 5, 2023
692d032
GridEtaHandle refactor
atolosadelgado Sep 5, 2023
00ec332
FCCSWGridPhiEta refactor
atolosadelgado Sep 5, 2023
3b1cf4e
FCCSWGridPhiTheta refactor
atolosadelgado Sep 5, 2023
250b9bc
FCCSWGridPhiThetaHandle refactor
atolosadelgado Sep 5, 2023
4768e78
FCCSWGridPhiEtaHandle refactor
atolosadelgado Sep 5, 2023
3afce23
GridSimplifiedDriftChamberHandle refactor
atolosadelgado Sep 5, 2023
9a8edbe
GridRPhiEta refactor
atolosadelgado Sep 5, 2023
b570282
GridRPhiEtaHandle refactor
atolosadelgado Sep 5, 2023
9560263
GridSimplifiedDriftChamber refactor
atolosadelgado Sep 5, 2023
d529402
DetCommon and sensitiveDetector subdirectories removed from CMakeLists
atolosadelgado Sep 6, 2023
86347c4
space removed as stated in https://github.com/key4hep/k4geo/pull/282#…
atolosadelgado Sep 21, 2023
c0c8e43
removed GLOBAL property of target because it has no sense
atolosadelgado Sep 21, 2023
79dd468
SimpleCylinder from FCCDetectors/common migrated to detector/other di…
atolosadelgado Sep 21, 2023
9c63acd
CaloDisks added to README as stated in https://github.com/key4hep/k4g…
atolosadelgado Sep 21, 2023
bf8363c
HCalTileBarrel added to README
atolosadelgado Sep 21, 2023
ab956db
HCalThreePartsEndcap added to README
atolosadelgado Sep 21, 2023
ff45b66
remove dummy file
atolosadelgado Sep 21, 2023
76de05a
parametrised_SimplifiedDriftChamber included in readme
atolosadelgado Sep 21, 2023
6fb452a
calorimeter README simplified
atolosadelgado Sep 21, 2023
f7dbc22
tracker README simplified
atolosadelgado Sep 21, 2023
8272880
CLD main README updated
atolosadelgado Sep 21, 2023
67e1d22
renaming of HCalBarrel_geo as stated in https://github.com/key4hep/k4…
atolosadelgado Sep 22, 2023
c32ddb2
Adding '_o1_v01' suffix to detector constructor file name:
atolosadelgado Sep 28, 2023
4c80cec
Warning fixed: variable shadowing
atolosadelgado Sep 28, 2023
5b395e4
Uncomment loading of Drift chamber and calorimeter of IDEA
atolosadelgado Sep 28, 2023
1997bfd
Migration of Theta module from FCCDetector repository (#293)
atolosadelgado Nov 3, 2023
8fcde64
Fix FCCee_o1_v06.xml (#297)
Zehvogel Nov 8, 2023
6c592cc
Update ECalBarrel_NobleLiquid_InclinedTrapezoids_o1_v01_geo.cpp
SwathiSasikumar Aug 24, 2023
05da8a8
CLD_o4_v05: start from CLD_o2_v05
Aug 25, 2023
365dbc6
CLD_o4_v05: Add LAr ECal Barrel and adapt main file of the detector d…
SwathiSasikumar Aug 25, 2023
c04e627
Update detector/calorimeter/ECalBarrel_NobleLiquid_InclinedTrapezoids…
SwathiSasikumar Sep 12, 2023
b50cf60
Update detector/calorimeter/ECalBarrel_NobleLiquid_InclinedTrapezoids…
SwathiSasikumar Sep 12, 2023
1b5468a
Update detector/calorimeter/ECalBarrel_NobleLiquid_InclinedTrapezoids…
SwathiSasikumar Sep 12, 2023
0824c42
Update detector/calorimeter/ECalBarrel_NobleLiquid_InclinedTrapezoids…
SwathiSasikumar Sep 12, 2023
7d9e3e0
Update detector/calorimeter/ECalBarrel_NobleLiquid_InclinedTrapezoids…
SwathiSasikumar Sep 12, 2023
d4805da
Suggested changes updated. The value for caloLayer.distance is changed.
SwathiSasikumar Sep 20, 2023
29d01a1
Add sensitive thickness and absorber thickness. Scale the layerheight…
SwathiSasikumar Nov 6, 2023
08be849
Update FCCee/CLD/compact/CLD_o4_v05/LumiCal_o3_v02_03.xml
SwathiSasikumar Nov 8, 2023
26b52ad
Update FCCee/CLD/compact/CLD_o4_v05/LAr_ECalBarrel.xml
SwathiSasikumar Nov 8, 2023
c88467c
Update LAr_ECalBarrel.xml
SwathiSasikumar Nov 10, 2023
cebcef5
fix ILD models xml problems in #299
danieljeans Nov 16, 2023
1c08a6f
Add pre-commit check-xml test (#300)
Zehvogel Nov 16, 2023
98c7578
CMake: rename project to k4geo
andresailer Nov 9, 2023
53b96a6
CMake: create k4geoConfig files
andresailer Nov 9, 2023
38b50ac
CMake: install all library targets, use relative paths from GNUInstal…
andresailer Nov 9, 2023
1c87347
CMake: link against ROOT::Core target
andresailer Nov 9, 2023
c240627
CMake: use LCIO::LCIO targets, needs LCIO master at the moment
andresailer Nov 15, 2023
85082ec
CLD with ARC (#289)
atolosadelgado Nov 22, 2023
ef31085
Bump version
jmcarcell Nov 22, 2023
cf3bdc6
Release Notes for v00-19-00
jmcarcell Nov 22, 2023
164d1b0
CI: move to LCG_104 based CI build
andresailer Nov 22, 2023
5c9075a
DRC migration code update with latest dual-readout and k4geo package …
swkim95 Dec 7, 2023
4c8a5be
Merge branch 'DRC_geo_migrate_230918' into DRC_geo_migrate_231113
swkim95 Dec 7, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ jobs:
strategy:
fail-fast: false
matrix:
COMPILER: [gcc10, clang11]
LCG: [100]
COMPILER: [gcc11]
LCG: [104]

steps:
- uses: actions/checkout@v3
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: pre-commit

on: [push, pull_request]

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cvmfs-contrib/[email protected]
- uses: aidasoft/run-lcg-view@v4
with:
release-platform: LCG_101/x86_64-centos7-clang12-opt
run: |
export PYTHONPATH=$(python -m site --user-site):$PYTHONPATH
export PATH=/root/.local/bin:$PATH
pip install --upgrade --user pip
pip install pre-commit --user
# Use virtualenv from the LCG release
pip uninstall --yes virtualenv
pre-commit run --show-diff-on-failure \
--color=always \
--all-files
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-xml
60 changes: 47 additions & 13 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
cmake_minimum_required(VERSION 3.12 FATAL_ERROR)

#---------------------------
set( PackageName lcgeo )
set( PackageName k4geo )
#---------------------------

project(${PackageName})

# project version
SET( ${PackageName}_VERSION_MAJOR 0 )
SET( ${PackageName}_VERSION_MINOR 18 )
SET( ${PackageName}_VERSION_PATCH 1 )
SET( ${PackageName}_VERSION_MINOR 19 )
SET( ${PackageName}_VERSION_PATCH 0 )

SET( ${PackageName}_VERSION "${${PackageName}_VERSION_MAJOR}.${${PackageName}_VERSION_MINOR}" )
SET( ${PackageName}_SOVERSION "${${PackageName}_VERSION_MAJOR}.${${PackageName}_VERSION_MINOR}" )
Expand All @@ -18,6 +18,10 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR}/cmake )
set(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/lib)
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)

include(GNUInstallDirs)
set(CMAKE_INSTALL_LIBDIR lib)
set(CMAKE_INSTALL_CMAKEDIR ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME})

#------------- set the default installation directory to be the source directory

IF(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
Expand Down Expand Up @@ -49,13 +53,15 @@ message ( STATUS "ROOT_VERSION: ${ROOT_VERSION}" )
find_package( Geant4 REQUIRED )
find_package( LCIO REQUIRED)

add_subdirectory(detectorSegmentations)

file(GLOB sources
./detector/tracker/*.cpp
./detector/calorimeter/*.cpp
./detector/fcal/*.cpp
./detector/other/*.cpp
./detector/CaloTB/*.cpp
./detector/tracker/*.cpp
./detector/calorimeter/*.cpp
./detector/calorimeter/dual-readout/src/*.cpp
./detector/fcal/*.cpp
./detector/other/*.cpp
./detector/CaloTB/*.cpp
./FCalTB/setup/*.cpp
./plugins/LinearSortingPolicy.cpp
./detector/PID/ARC_geo_o1_v01.cpp
Expand All @@ -74,18 +80,26 @@ endif()
add_dd4hep_plugin(${PackageName} SHARED ${sources})
add_dd4hep_plugin(${PackageName}G4 SHARED ${G4sources})

add_library(lcgeo ALIAS k4geo)

target_include_directories(${PackageName} PRIVATE ${PROJECT_SOURCE_DIR}/detector/include )
target_include_directories(${PackageName}G4 PRIVATE ${PROJECT_SOURCE_DIR}/detector/include )

target_include_directories(${PackageName} SYSTEM PUBLIC ${LCIO_INCLUDE_DIRS})
target_include_directories(${PackageName}G4 SYSTEM PUBLIC ${LCIO_INCLUDE_DIRS})
target_include_directories(${PackageName} PRIVATE ${PROJECT_SOURCE_DIR}/detector/calorimeter/dual-readout/include )
target_include_directories(${PackageName}G4 PRIVATE ${PROJECT_SOURCE_DIR}/detector/calorimeter/dual-readout/include )

target_link_libraries(${PackageName} DD4hep::DDCore DD4hep::DDRec DD4hep::DDParsers ${ROOT_LIBRARIES} ${LCIO_LIBRARIES})
target_link_libraries(${PackageName}G4 DD4hep::DDCore DD4hep::DDRec DD4hep::DDParsers DD4hep::DDG4 ${ROOT_LIBRARIES} ${Geant4_LIBRARIES} ${LCIO_LIBRARIES})
target_link_libraries(${PackageName} DD4hep::DDCore DD4hep::DDRec DD4hep::DDParsers ROOT::Core LCIO::LCIO detectorSegmentations)
target_link_libraries(${PackageName}G4 DD4hep::DDCore DD4hep::DDRec DD4hep::DDParsers DD4hep::DDG4 ROOT::Core ${Geant4_LIBRARIES} LCIO::LCIO)

#Create this_package.sh file, and install
dd4hep_instantiate_package(${PackageName})

# Destination directories are hardcoded because GNUdirectories are not included
install(TARGETS ${PackageName} ${PackageName}G4
EXPORT ${PROJECT_NAME}Targets
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT shlib
)

#---Testing-------------------------------------------------------------------------
if(BUILD_TESTING)
include(CTest)
Expand All @@ -104,4 +118,24 @@ if(INSTALL_COMPACT_FILES)
INSTALL(DIRECTORY CaloTB CLIC FCalTB FCCee ILD fieldmaps SiD IDEA DESTINATION share/k4geo )
endif()

add_subdirectory(detector/IDEA)
# create k4geoConfig and friends

INSTALL(EXPORT ${PROJECT_NAME}Targets
NAMESPACE ${PROJECT_NAME}::
DESTINATION ${CMAKE_INSTALL_CMAKEDIR}
FILE k4geoConfig-targets.cmake)

include(CMakePackageConfigHelpers)

configure_package_config_file(cmake/k4geoConfig.cmake.in ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_CMAKEDIR}/k4geoConfig.cmake
PATH_VARS CMAKE_INSTALL_CMAKEDIR
INSTALL_DESTINATION ${CMAKE_INSTALL_CMAKEDIR} )

write_basic_package_version_file(
${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_CMAKEDIR}/k4geoConfigVersion.cmake
VERSION ${${PackageName}_VERSION}
COMPATIBILITY SameMajorVersion )

install(FILES ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_CMAKEDIR}/k4geoConfig.cmake
${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_CMAKEDIR}/k4geoConfigVersion.cmake
DESTINATION ${CMAKE_INSTALL_CMAKEDIR} )
46 changes: 46 additions & 0 deletions FCCee/ALLEGRO/compact/ALLEGRO_o1_v01/ALLEGRO_o1_v01.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<?xml version="1.0" encoding="UTF-8"?>
<lccdd xmlns:compact="http://www.lcsim.org/schemas/compact/1.0"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xs:noNamespaceSchemaLocation="http://www.lcsim.org/schemas/compact/1.0/compact.xsd">

<info name="FCCee-IDEA-LAr Master"
title="FCCee-IDEA-LAr Master"
author="Valentin Volkl"
url="no"
status="development"
version="1.0">
<comment>
Master compact file describing the latest developments of the FCCee IDEA detector concept with a LAr calorimeter.
</comment>
</info>

<include ref="${DD4hepINSTALL}/DDDetectors/compact/detector_types.xml" />

<includes>
<gdmlFile ref="elements.xml"/>
<gdmlFile ref="materials.xml"/>
</includes>

<define>
<constant name="world_size" value="25*m"/>
<constant name="world_x" value="world_size"/>
<constant name="world_y" value="world_size"/>
<constant name="world_z" value="world_size"/>
</define>

<include ref="./FCCee_DectDimensions.xml" />

<include ref="Beampipe.xml"/>
<include ref="BeamInstrumentation.xml"/>
<include ref="LumiCal.xml"/>
<include ref="HOMAbsorber.xml"/>
<!--taken from DetFCCeeCLD/compact/FCCee_o2_v02 -->
<include ref="Vertex.xml"/>
<include ref="SimplifiedDriftChamber.xml"/>
<include ref="FCCee_ECalBarrel.xml"/>
<include ref="FCCee_HCalBarrel_TileCal.xml"/>
<include ref="FCCee_EcalEndcaps_coneCryo.xml"/>
<include ref="FCCee_HCalEndcaps_ThreeParts_TileCal.xml"/>
<include ref="MuonTagger.xml"/>

</lccdd>
36 changes: 36 additions & 0 deletions FCCee/ALLEGRO/compact/ALLEGRO_o1_v01/BeamInstrumentation.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<lccdd>

<info name="FCCee"
title="FCCee Beam instrumentation: taken correspoding to CLD: BeamInstrumentation_o3_v02_fitShield.xml"
author="from ILCSOFT/lcgeo/FCCee/compact/FCCee_o1_v04"
url="no"
status="development"
version="1.0">
<comment>COmpensating and screening solenoids for FCCee</comment>
</info>


<detectors>
<comment>Beampipe Instrumentation</comment>

<detector name="CompSol" type="DD4hep_Mask_o1_v01" insideTrackingVolume="true" vis="CompSolVis">
<parameter crossingangle="CrossingAngle" />
<envelope vis="CoilVis">
<shape type="Assembly"/>
</envelope>
<section type="Center" start="CompSol_min_z" end="QD0_min_z" rMin1="103*mm" rMin2="180*mm" rMax1="123*mm" rMax2="200*mm" material="SolenoidMixture" name="CompSol" />
</detector>

<detector name="ScreenSol" type="DD4hep_Mask_o1_v01" insideTrackingVolume="true" vis="ScreenSolVis">
<parameter crossingangle="CrossingAngle" />
<envelope vis="CoilVis">
<shape type="Assembly"/>
</envelope>

<section type="Center" start="QD0_min_z" end="QD0_min_z+5*cm" rMin1="SeparatedBeamPipe_rmax+1*mm+5*cm" rMin2="SeparatedBeamPipe_rmax+1*mm+5*cm" rMax1="200*mm" rMax2="200*mm" material="SolenoidMixture" name="CompSol" />

<section type="Center" start="QD0_min_z+5*cm" end="QD0_max_z" rMin1="180*mm" rMin2="180*mm" rMax1="200*mm" rMax2="200*mm" material="SolenoidMixture" name="CompSol" />
</detector>

</detectors>
</lccdd>
150 changes: 150 additions & 0 deletions FCCee/ALLEGRO/compact/ALLEGRO_o1_v01/Beampipe.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,150 @@
<lccdd>

<info name="FCCee"
title="FCCee Beam pipe: taken corresponding to CLD: Beampipe_o4_v04_noNotch_W_n02.xml"
author="from ILCSOFT/lcgeo/FCCee/compact/FCCee_o1_v04"
url="no"
status="development"
version="1.0">
<comment>A beampipe for FCCee, R(central) = 1.5 cm</comment>
</info>

<!-- Definition of global dictionary constants -->
<define>
<!-- Definition of global dictionary constants -->
<constant name="beampipegoldwidth" value="BeamPipeGoldWidth"/>
<constant name="beampipegoldtolerance" value="BeamPipeGoldTolerance"/>
</define>

<!-- Definition of the used visualization attributes -->
<display>
<vis name="BeamPipeVis" alpha="0.0" r="0.0" g="1.0" b="0.0" showDaughters="true" visible="false"/>
<vis name="GoldCoatingVis" alpha="0.0" r="0.0" g="1.0" b="1.0" showDaughters="true" visible="true"/>
<vis name="TubeVis" alpha="1.0" r="1.0" g="0.7" b="0.5" showDaughters="true" visible="true"/>
<vis name="VacVis" alpha="1.0" r="1.0" g="1.0" b="1.0" showDaughters="true" visible="false"/>
</display>

<detectors>

<comment>Part of beampipe made of Beryllium</comment>

<detector name="BeBeampipe" type="DD4hep_Beampipe_o1_v01" insideTrackingVolume="true" nocore="true" vis="BeamPipeVis">
<parameter crossingangle="CrossingAngle" />
<envelope vis="BlueVis">
<shape type="Assembly"/>
</envelope>

<section type="Center" start="0*mm" end="CentralBeamPipe_zmax" rMin1="CentralBeamPipe_rmax" rMin2="CentralBeamPipe_rmax" rMax1="CentralBeamPipe_rmax+BeamPipeWidth" rMax2="CentralBeamPipe_rmax+BeamPipeWidth" material="Beryllium" name="VertexInnerBe" />

<section type="Center" start="CentralBeamPipe_zmax" end="BePartEnd_z" rMin1="CentralBeamPipe_rmax" rMin2="CentralBeamPipe_rmax+(BePartEnd_z-CentralBeamPipe_zmax)*0.017" rMax1="CentralBeamPipe_rmax+BeamPipeWidthFirstCone" rMax2="CentralBeamPipe_rmax+BeamPipeWidthFirstCone+(BePartEnd_z-CentralBeamPipe_zmax)*0.017" material="Beryllium" name="FirstConeBe" />

</detector>

<detector name="BeamPipe" type="DD4hep_Beampipe_o1_v01" insideTrackingVolume="true" vis="BeamPipeVis" >
<envelope vis="BlueVis">
<shape type="Assembly"/>
</envelope>
<parameter crossingangle="CrossingAngle" />

<!-- &A Z1 Z2 RIn1 RIn2 ROut1 ROut2 Material -->


<comment>Golden foil in the inner part of the Be beampipe</comment>

<section type="Center" start="0*mm" end="CentralBeamPipe_zmax" rMin1="CentralBeamPipe_rmax-(beampipegoldwidth+beampipegoldtolerance)" rMin2="CentralBeamPipe_rmax-(beampipegoldwidth+beampipegoldtolerance)" rMax1="CentralBeamPipe_rmax-beampipegoldtolerance" rMax2="CentralBeamPipe_rmax-beampipegoldtolerance" material="Gold" name="VertexInnerGold" />

<section type="Center" start="CentralBeamPipe_zmax" end="BePartEnd_z" rMin1="CentralBeamPipe_rmax-(beampipegoldwidth+beampipegoldtolerance)" rMin2="CentralBeamPipe_rmax-(beampipegoldwidth+beampipegoldtolerance)+(BePartEnd_z-CentralBeamPipe_zmax)*0.017" rMax1="CentralBeamPipe_rmax-beampipegoldtolerance" rMax2="CentralBeamPipe_rmax-beampipegoldtolerance+(BePartEnd_z-CentralBeamPipe_zmax)*0.017" material="Gold" name="FirstConeGold" />

<comment>Part of beampipe made of Copper</comment>

<section type="Center" start="BePartEnd_z" end="SeparatedBeamPipe_z" rMin1="CentralBeamPipe_rmax+(BePartEnd_z-CentralBeamPipe_zmax)*0.017" rMin2="CentralBeamPipe_rmax+(BePartEnd_z-CentralBeamPipe_zmax)*0.017+(SeparatedBeamPipe_z-BePartEnd_z)*0.017" rMax1="CentralBeamPipe_rmax+BeamPipeWidthFirstCone+(BePartEnd_z-CentralBeamPipe_zmax)*0.017" rMax2="CentralBeamPipe_rmax+BeamPipeWidthFirstCone+(BePartEnd_z-CentralBeamPipe_zmax)*0.017+(SeparatedBeamPipe_z-BePartEnd_z)*0.017" material="Copper" name="CopperCone" />


<!-- PunchedCenter = un volume qui s'etend jusqu'a rMax1 (a z=start) et rMax2 (a end) et avec deux cylindres extrudes le long
des directions up / down (depend du xing angle), de rayon rMin1 et rMin2 -->


<section type="PunchedCenter" start="SeparatedBeamPipe_z" end="SeparatedBeamPipe_z+3*mm" rMin1="SeparatedBeamPipe_rmax" rMin2="SeparatedBeamPipe_rmax" rMax1="CentralBeamPipe_rmax+BeamPipeWidthFirstCone+(BePartEnd_z-CentralBeamPipe_zmax)*0.015+(SeparatedBeamPipe_z-BePartEnd_z)*0.015" rMax2="CentralBeamPipe_rmax+BeamPipeWidthFirstCone+(BePartEnd_z-CentralBeamPipe_zmax)*0.017+(SeparatedBeamPipe_z-BePartEnd_z)*0.017 + 3*mm*0.017" material="Copper" name="SplitVacChambers"/>

<!-- Downstream pipe : first part : radius = 1.5 cm -->

<section type="DnstreamClippedFront" start="SeparatedBeamPipe_z+3.01*mm" end="6000*mm" rMin1="SeparatedBeamPipe_rmax" rMin2="SeparatedBeamPipe_rmax" rMax1="SeparatedBeamPipe_rmax+1*mm" rMax2="SeparatedBeamPipe_rmax+1*mm" material="Copper" name="DownStreamBeamPipe_1"/>


<section type="UpstreamClippedFront" start="SeparatedBeamPipe_z+3.01*mm" end="6000*mm" rMin1="SeparatedBeamPipe_rmax" rMin2="SeparatedBeamPipe_rmax" rMax1="SeparatedBeamPipe_rmax+1*mm" rMax2="SeparatedBeamPipe_rmax+1*mm" material="Copper" name="UpStreamBeamPipe_1"/>

</detector>
<comment>Full Cone Tungsten Shield</comment>
<detector name="BeamPipeShield" type="DD4hep_Mask_o1_v01" insideTrackingVolume="true" vis="TantalumVis" >
<parameter crossingangle="CrossingAngle" />

<comment>Before HOM space</comment>
<section type="PunchedCenter"
start="LumiCal_max_z + 5*mm" end="1197.5*mm"
rMin1="SeparatedBeamPipe_rmax + BeamPipeWidth + 0.1*mm"
rMin2="SeparatedBeamPipe_rmax + BeamPipeWidth + 0.1*mm "
rMax1="SeparatedBeamPipe_rmax + (LumiCal_max_z + 5*mm )*0.015 + BeamPipeWidth + 0.1*mm + BeamPipeTantalShieldWidth"
rMax2="SeparatedBeamPipe_rmax + (1197.5*mm) * 0.015 + BeamPipeWidth + 0.1*mm + BeamPipeTantalShieldWidth"
material="Tungsten" name="TaShield_BH2" />

<comment>After HOM space (1197.5*m - 1298.7*mm) +18 cm as solenoid is now closer to IP </comment>
<section type="PunchedCenter"
start="1298.7*mm" end="QD0_min_z + 18*cm"
rMin1="SeparatedBeamPipe_rmax + BeamPipeWidth + 0.1*mm"
rMin2="SeparatedBeamPipe_rmax + BeamPipeWidth + 0.1*mm "
rMax1="SeparatedBeamPipe_rmax + (1298.7*mm )*0.015 + BeamPipeWidth + 0.1*mm + BeamPipeTantalShieldWidth"
rMax2="SeparatedBeamPipe_rmax + (QD0_min_z + 18*cm) * 0.015 + BeamPipeWidth + 0.1*mm + BeamPipeTantalShieldWidth"
material="Tungsten" name="TaShield_AH" />

</detector>
<comment>Asymmetric Tungsten Shield no Rotation</comment>

<detector name="BeamPipeShield_noRot" type="DD4hep_Mask_o1_v01" insideTrackingVolume="true" vis="TantalumVis" >
<parameter crossingangle="CrossingAngle" rotationX="true"/>

<section type="Center"
start="500*mm" end="LumiCal_max_z + 4.9*mm"
rMin1="CentralBeamPipe_rmax + (500.0*mm-CentralBeamPipe_zmax)*0.017 + BeamPipeWidthFirstCone + 0.1*mm"
rMin2="CentralBeamPipe_rmax + (LumiCal_max_z + 4.9*mm-CentralBeamPipe_zmax)*0.017 + BeamPipeWidthFirstCone + 0.1*mm"
rMax1="CentralBeamPipe_rmax + (500.0*mm-CentralBeamPipe_zmax)*0.017 + BeamPipeWidthFirstCone + 0.1*mm + TopFillerShieldWidth"
rMax2="CentralBeamPipe_rmax + (LumiCal_max_z + 4.9*mm-CentralBeamPipe_zmax)*0.017 + BeamPipeWidthFirstCone + 0.1*mm + BeamPipeTantalShieldWidth"
phi1="326*degree"
phi2="34*degree"
material="Tungsten" name="TaShieldTopPart" />

<comment>was 370</comment>
<section type="Center"
start="330*mm" end="500*mm"
rMin1="CentralBeamPipe_rmax + (330*mm - CentralBeamPipe_zmax)*0.017 + BeamPipeWidthFirstCone + 0.1*mm"
rMin2="CentralBeamPipe_rmax + (500*mm - CentralBeamPipe_zmax)*0.017 + BeamPipeWidthFirstCone + 0.1*mm"
rMax1="CentralBeamPipe_rmax + (330*mm - CentralBeamPipe_zmax)*0.017 + BeamPipeWidthFirstCone + 0.1*mm"
rMax2="CentralBeamPipe_rmax + (500*mm - CentralBeamPipe_zmax)*0.017 + BeamPipeWidthFirstCone + 0.1*mm + TopFillerShieldWidth"
phi1="326*degree"
phi2="34*degree"
material="Tungsten" name="TaShieldTopPart2" />

<comment>one degree less, to fit lumical window</comment>
<section type="Center"
start="600*mm" end="LumiCal_max_z + 4.9*mm"
rMin1="CentralBeamPipe_rmax + (600*mm - CentralBeamPipe_zmax)*0.017 + BeamPipeWidthFirstCone + 0.1*mm"
rMin2="CentralBeamPipe_rmax + (LumiCal_max_z + 4.9*mm - CentralBeamPipe_zmax)*0.017 + BeamPipeWidthFirstCone + 0.1*mm"
rMax1="CentralBeamPipe_rmax + (600*mm - CentralBeamPipe_zmax)*0.017 + BeamPipeWidthFirstCone + 0.1*mm + SideFillerShieldWidth"
rMax2="CentralBeamPipe_rmax + (LumiCal_max_z + 4.9*mm - CentralBeamPipe_zmax)*0.017 + BeamPipeWidthFirstCone + 0.1*mm + BeamPipeTantalShieldWidth"
phi1="34*degree"
phi2="70*degree"
material="Tungsten" name="TaShieldFiller1" />

<section type="Center"
start="600*mm" end="LumiCal_max_z + 4.9*mm"
rMin1="CentralBeamPipe_rmax + (600*mm - CentralBeamPipe_zmax)*0.017 + BeamPipeWidthFirstCone + 0.1*mm"
rMin2="CentralBeamPipe_rmax + (LumiCal_max_z + 4.9*mm - CentralBeamPipe_zmax)*0.017 + BeamPipeWidthFirstCone + 0.1*mm"
rMax1="CentralBeamPipe_rmax + (600*mm - CentralBeamPipe_zmax)*0.017 + BeamPipeWidthFirstCone + 0.1*mm + SideFillerShieldWidth"
rMax2="CentralBeamPipe_rmax + (LumiCal_max_z + 4.9*mm - CentralBeamPipe_zmax)*0.017 + BeamPipeWidthFirstCone + 0.1*mm + BeamPipeTantalShieldWidth"
phi1="291*degree"
phi2="326*degree"
material="Tungsten" name="TaShieldFiller2" />


</detector>
</detectors>
</lccdd>
Loading