Git Product home page Git Product logo

g4tessellatedsolid_benchmark's Introduction

GEOMETRY ARTIFACTS

Benchmarking of navigation in tessellated solids. This example creates a tessellated solid which corresponds to a parametrized sphere (number of facets can be tuned), and simulation can be run to control inpact of number of facets on time execution.

Basic commands

Build with cmake,

source /cvmfs/sft.cern.ch/lcg/views/dev4/latest/x86_64-centos7-gcc11-opt/setup.sh
cmake -B build -S . -D CMAKE_INSTALL_PREFIX=install
cmake --build build -- install
export LD_LIBRARY_PATH=$PWD/install/lib:$LD_LIBRARY_PATH

To display the geometry using ROOT display

geoDisplay compact/tessellatedSphere_o1_v01.xml

To convert the geometry into GDML (output file also part of the repository)

geoConverter -compact2gdml -input compact/tessellatedSphere_o1_v01.xml -output tessellatedSphere_o1_v01.gdml

Visualze geometry using Geant4+Qt

ddsim --compactFile compact/tessellatedSphere_o1_v01.xml --runType qt --macroFile vis.mac --part.userParticleHandler=''

To show materials in along a given line (in this case from (0,0,-10)cm to (100,0,90)cm), only air (world material) is shown. This may point to an issue just with visualization.

materialScan compact/tessellatedSphere_o1_v01.xml 0 0 -10 100 0 90

ddsim --compactFile ./compact/tessellatedSphere_o1_v01.xml -N 10 -G --gun.particle geantino --gun.distribution 'cos(theta)' --gun.thetaMin "0" --gun.thetaMax "1.57rad" --gun.phiMin "0" --gun.phiMax "1.57rad" --gun.position "0 0 0" --filter.calo "" --filter.tracker "" --random.seed 1 --outputFile ts_geantino_distcostheta.root --part.userParticleHandler=''

g4tessellatedsolid_benchmark's People

Contributors

atolosadelgado avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.