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

WIP: development of Drift Chamber for CEPC #13

Merged
merged 5 commits into from
Sep 9, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
37 changes: 37 additions & 0 deletions Detector/DetDriftChamber/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
###############################################################################
# Package: DetDriftChamber
# Based on package: lcgeo
################################################################################
gaudi_subdir(DetDriftChamber v0r0)

gaudi_depends_on_subdirs(GaudiKernel)


find_package(DD4hep COMPONENTS DDRec DDG4 DDParsers REQUIRED)
find_package(Geant4)
include(${Geant4_USE_FILE})

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${DD4hep_ROOT}/cmake )
include( DD4hep )

find_package(ROOT COMPONENTS MathCore GenVector Geom REQUIRED)

install(DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/compact DESTINATION Detector/DetDriftChamber)

set(DetDriftChamber_src
src/driftchamber/DriftChamber.cpp
)

gaudi_add_module(DetDriftChamber
${DetDriftChamber_src}
INCLUDE_DIRS
# DD4hep ROOT Geant4 src/include
LINK_LIBRARIES
# GaudiKernel
DD4hep ${DD4hep_COMPONENT_LIBRARIES}
# ROOT Geant4
)

set(LIBRARY_OUTPUT_PATH ${CMAKE_LIBRARY_OUTPUT_DIRECTORY})
message(STATUS "LIBRARY_OUTPUT_PATH -> ${LIBRARY_OUTPUT_PATH}")
dd4hep_generate_rootmap(DetDriftChamber)
75 changes: 75 additions & 0 deletions Detector/DetDriftChamber/compact/det.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
<?xml version="1.0" encoding="UTF-8"?>
<lccdd>

<info name="DriftChamber"
title="Test with Drift Chamber"
author="Tao Lin"
url="http://github.com/cepc/CEPCSW"
status="development"
version="v0">
<comment>Test with Drift Chamber</comment>
</info>

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

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

<!-- SDT -->
<constant name="SDT_radius_min" value="235*mm"/>
<constant name="SDT_radius_max" value="1716*mm"/>
<constant name="SDT_half_length" value="2225*mm"/>
<constant name="SDT_length" value="SDT_half_length*2"/>

<constant name="SDT_inner_chamber_radius_min" value="SDT_radius_min"/>
<constant name="SDT_inner_chamber_radius_max" value="909*mm"/>
<constant name="SDT_inner_chamber_length" value="SDT_length"/>

<constant name="SDT_outer_chamber_radius_min" value="1085*mm"/>
<constant name="SDT_outer_chamber_radius_max" value="SDT_radius_max"/>
<constant name="SDT_outer_chamber_length" value="SDT_length"/>


</define>

<display>
<vis name="Invisible" showDaughters="false" visible="false"/>
<vis name="InvisibleWithChildren" showDaughters="true" visible="false"/>
<vis name="VisibleRed" r="1.0" g="0.0" b="0.0" showDaughters="true" visible="true"/>
<vis name="VisibleBlue" r="0.0" g="0.0" b="1.0" showDaughters="false" visible="true"/>
<vis name="VisibleGreen" alpha="1.0" r="0.0" g="1.0" b="0.0" drawingStyle="solid" lineStyle="solid" showDaughters="true" visible="true"/>
</display>

<detectors>
<detector id="1" name="DriftChamber" type="DriftChamber" readout="DriftChamberHitsCollection" vis="VisibleBlue" sensitive="true">
<!-- Use cm as unit if you want to use Pandora for reconstruction -->
</detector>
</detectors>

<readouts>
<readout name="DriftChamberHitsCollection">
<!-- <segmentation type="NoSegmentation"/> -->

<segmentation type="CartesianGridXYZ"
grid_size_x="1*cm"
grid_size_y="1*cm"
grid_size_z="1*cm"/>
<id>system:8,chamber:1,x:-16,y:-16,z:-16</id>
</readout>
</readouts>

<fields>

<field name="MagnetFields_Constant" type="ConstantField" field="magnetic">
<strength x="0" y="0" z="3.0*tesla"/>
</field>

</fields>

</lccdd>
Loading