Skip to content
Snippets Groups Projects
Select Git revision
  • b9740d3fe1e0ee23d427c4c842cbb92c848f86d1
  • master default protected
  • drich-two-mirrors
  • 148-hcal-geometry-development
  • 144-irt-geometry
  • deathvalley-acts-dd4hep-plugin
  • canyonlands-acts-dd4hep-plugin
  • adjust-barrel-emcalo-geometry
  • 148-hcal-geometry-development-wdconinc-suggestion
  • WorkingGemTrd_MLmodel_andAnalysis
  • 144-test-small-sensor-overlap
  • 59-detailed-forward-gem-trd
  • vdesai-master-patch-09582
  • mriganka-branch02
  • zdemirog-master-patch-64142
  • weibin-master-patch-37475
  • vanekjan-master-patch-74522
  • lkosarzew-master-patch-25029
  • swapneshkhade-master-patch-16755
  • mlavinsky-master-patch-10431
  • niveditharam-master-patch-05822
  • deathvalley-v1.1
  • deathvalley-v1.0-1.5T
  • deathvalley-v1.0
  • canyonlands-v2.2
  • canyonlands-v2.1
  • canyonlands-v2.0
  • canyonlands-v1.2
  • canyonlands-v1.1
  • acadia-v2.1
  • canyonlands-v1.0
  • acadia-v2.0
  • acadia-v1.1
  • acadia-v1.0
  • acadia-v1.0-alpha
  • v0.2.0
  • v0.1.0
37 results

generate_eps

Blame
  • generate_eps 1.21 KiB
    #!/bin/bash
    
    # this is a detector slice
    
    # units are mm
    dawncut 0 0 -1 -1500 $1 out1.prim 
    dawncut 0 0 1 1600 out1.prim view4.prim
    dawn -d view4.prim 
    ps2pdf view4.eps view4.pdf
    pdftoppm view4.pdf view4 -png -singlefile
    
    #https://geant4.kek.jp/~tanaka/DAWN/About_DAWNCUT.html
    # % dawncut a b c d input-file [output-file]
    #
    #       input-file : Source DAWN-format file describing a 3D scene.
    #
    #       output-file: Output DAWN-format file describing a plane-clipped 
    #                    3D scene.  The default output stream is stdout.
    #
    #       a, b, c, d : Parameters  a, b, c, and d  are double values to
    #                    define a clipping plane described with the following 
    #                    equation: 
    #
    #                       ax + by + cz + d = 0. 
    #
    #                    Vector (a,b,c) defines the normal vector of 
    #                    the clipping plane.  
    #                    3D scene data in the half space at the front side 
    #                    of the clipping plane are clipped out and erased. 
    #                    The normal vector (a,b,c) needs not be a unit vector. 
    #                    If it is a unit vector, parameter "d" gives distance 
    #                    between the clipping plane and origin (0,0,0).