Skip to content

DD4hep description of a dual-readout endcap calorimeter using the capillary tube technology.

License

Notifications You must be signed in to change notification settings

lopezzot/DREndcapTube

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DREndcapTube

DD4hep description of a dual-readout endcap calorimeter using the capillary tube technology

DREndcapTube

Presentations

How to

Build and compile using the key4hep stack

git clone https://github.com/lopezzot/DREndcapTube.git
source /cvmfs/sw.hsf.org/key4hep/setup.sh
cd DREndcapTube
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=../install/ ..
make install
cd ../install
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD/lib64
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD/lib

Visualize the geometry

geoDisplay DRdetector/DRcalo/compact/DREndcapTubes.xml

or

geoWebDisplay DRdetector/DRcalo/compact/DREndcapTubes.xml

Convert geometry to root and browse it

Convert the geometry to root

./scripts/dd4hep2root -c DRdetector/DRcalo/compact/DREndcapTubes.xml -o DREndcapTubes.root

browse the root file

rootbrowse DREndcapTubes.root

Check geometry overlaps

The following command converts the geometry to geant4 and checks for overlaps

ddsim --compactFile DRdetector/DRcalo/compact/DREndcapTubes.xml --runType run --macroFile scripts/overlap.mac --part.userParticleHandler=''

Scan material along a line

The following command performs a material scan along a line from (0,0,0) to (10,200,500), unit must be cm.

materialScan ./DRdetector/DRcalo/compact/DREndcapTubes.xml 0 0 0 10 200 500

Run simulations

The following command does a simple simulation with the particle gun.

ddsim --compactFile DRdetector/DRcalo/compact/DREndcapTubes.xml --enableGun --gun.particle geantino --gun.energy 1000*MeV --gun.direction "0 0 -1" --gun.position "0 200*cm 0" --outputFile out_edm4hep.root -N 100 --part.userParticleHandler=""

The following command does a simulation according to a steering file.

ddsim --steeringFile scripts/steer_mu_0_5GeV.py

a steering file template can be obtained with ddsim --dumpSteeringFile. A geometry description gdml file can be created using the dedicated entry in the steering file.
The following command does a simulation with optical photons and a DD4hep regex-sensitive-detector.

ddsim --steeringFile scripts/steer_e-_10GeV_regexSDAction.py

Alternative approach to build, compile and visualize geometry using a local DD4hep installation

I experienced crashes while visualizing the geometry over ssh connection to lxplus-alma9 machines. The following are instructions on how to visualize the geometry using a local DD4hep installation.

git clone https://github.com/lopezzot/DREndcapTube.git
cd DREndcapTube/DRdetector/DRcalo/
mkdir build && cd build
cmake ../onlygeocmake/
make
source bin/thisDREndcapTubes.sh
geoDisplay ../compact/DREndcapTubes.xml

About

DD4hep description of a dual-readout endcap calorimeter using the capillary tube technology.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published