Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
  • 18-make-ecal-blue
  • 24-optimize-barrel-em-calo-geometry
  • acts_v4
  • beampipe_overlap
  • bigger_solenoid
  • dawnfix
  • ecal_radius
  • geo_test
  • master
  • move_rich
  • new_runner
  • no_rich_hcal
  • rich_optimize
  • rich_test
  • rp_overlap
  • tracker2
  • vertex_tracker_radius
  • view_test
  • v0.0.1
  • v0.0.2
20 results

Target

Select target project
  • cpeng/topside
1 result
Select Git revision
  • dawnfix
  • ecal_radius
  • master
  • no_rich_hcal
4 results
Show changes
Commits on Source (51)
Showing
with 1861 additions and 500 deletions
image: eicweb.phy.anl.gov:4567/eic/juggler/juggler:latest image: eicweb.phy.anl.gov:4567/eic/juggler/juggler:latest
workflow:
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
- if: '$CI_PIPELINE_SOURCE == "web"'
- if: '$CI_PIPELINE_SOURCE == "webide"'
- if: '$CI_COMMIT_BRANCH == "master"'
- if: '$CI_COMMIT_TAG'
default: default:
before_script: before_script:
- mkdir -p images && mkdir -p doc/ - source .local/bin/env.sh
- git clone https://eicweb.phy.anl.gov/EIC/detectors/accelerator.git && ln -s accelerator/eic
- mkdir build && cd build && cmake ../. -DCMAKE_INSTALL_PREFIX=/usr/local && make -j20 && make install && cd ..
artifacts: artifacts:
expire_in: 72 hours
paths: paths:
- images/ - .local/detector
- doc/ - .local/lib
- .local/bin
- .local/include
- .local/share
- results
- config
- images
- doc
- juggler.env
reports:
dotenv: juggler.env
stages: stages:
- config
- initialize
- build - build
- docs - docs
- test - test
- collect
- finalize - finalize
- deploy - deploy
compile: common:setup:
stage: build stage: config
tags: rules:
- silicon - if: '$CI_SERVER_HOST == "eicweb.phy.anl.gov"'
script: before_script:
- echo "Build successful." - git clone https://eicweb.phy.anl.gov/EIC/benchmarks/common_bench.git setup
script:
- export JUGGLER_DETECTOR="topside"
- |
if [[ "x${CI_PIPELINE_SOURCE}" == "xmerge_request_event" || "$CI_COMMIT_BRANCH" == "master" ]]; then
export JUGGLER_DETECTOR_VERSION="${CI_COMMIT_REF_NAME}"
echo "JUGGLER_DETECTOR = ${JUGGLER_DETECTOR}"
echo "JUGGLER_DETECTOR_VERSION = ${CI_COMMIT_REF_NAME}"
echo "JUGGLER_DETECTOR_VERSION=$CI_COMMIT_REF_NAME" >> juggler.env
echo "JUGGLER_DETECTOR=$JUGGLER_DETECTOR" >> juggler.env
fi
- source setup/bin/env.sh && ./setup/bin/install_common.sh
common:detector:
stage: initialize
needs: ["common:setup"]
script:
- source .local/bin/env.sh && build_detector.sh
- mkdir_local_data_link sim_output
- mkdir -p results
- mkdir -p config
- print_env.sh
.views: .views:
stage: docs stage: docs
rules:
- if: '$CI_SERVER_HOST == "eicweb.phy.anl.gov"'
needs: needs:
- ["compile"] - ["common:detector"]
tags:
- silicon
artifacts:
paths:
- images/
- doc/
dawn_view1:detector: include:
extends: .views - local: 'views/view1.yml'
script: - local: 'views/view2.yml'
- ./bin/make_dawn_views -t view1 -d scripts/view1 -D - local: 'views/view3.yml'
dawn_view1:ev1: - local: 'views/view6.yml'
extends: .views - local: 'views/view7.yml'
script: - local: 'views/view11.yml'
- ./bin/make_dawn_views -t view1_ev1 -d scripts/view1 -s 2 - local: 'views/view12.yml'
dawn_view2:detector: - local: 'views/view13.yml'
extends: .views - local: 'views/view14.yml'
script: - local: 'views/view15.yml'
- ./bin/make_dawn_views -t view2 -d scripts/view2 -D # - local: 'views/config.yml'
dawn_view2:ev1: #
extends: .views
script: dump_constants:
- ./bin/make_dawn_views -t view2_ev1 -d scripts/view2 -s 2 stage: test
dawn_view3:detector: needs:
extends: .views - ["common:detector"]
script:
- ./bin/make_dawn_views -t view3 -d scripts/view3 -D
dawn_view3:ev1:
extends: .views
script:
- ./bin/make_dawn_views -t view3_ev1 -d scripts/view3 -s 2
dawn_view3:ev3:
extends: .views
script:
- ./bin/make_dawn_views -t view3_ev1 -d scripts/view3 -s 3
dawn_view3:ev4:
extends: .views
script:
- ./bin/make_dawn_views -t view3_ev1 -d scripts/view3 -s 4
dawn_view11:detector:
extends: .views
script:
- ./bin/make_dawn_views -t view11 -d scripts/view11 -D
dawn_view12:detector:
extends: .views
script:
- ./bin/make_dawn_views -t view12 -d scripts/view12 -D
dawn_view13:detector:
extends: .views
script: script:
- ./bin/make_dawn_views -t view13 -d scripts/view13 -D - npdet_info dump ${DETECTOR_PATH}/topside.xml | tee doc/constants.out
dawn_view14:detector:
extends: .views dump_geometry:
stage: test
needs:
- ["common:detector"]
script: script:
- ./bin/make_dawn_views -t view14 -d scripts/view14 -D - echo "dumping geometry to images"
- mkdir -p images
- dd_web_display --output images/detector_geo.root ${DETECTOR_PATH}/topside.xml
report: report:
stage: test stage: finalize
rules:
- if: '$CI_SERVER_HOST == "eicweb.phy.anl.gov"'
needs: needs:
- "dawn_view1:detector" - view_01
- "dawn_view2:detector" - view_02
- "dawn_view3:detector" - view_03
- "dawn_view1:ev1" - view_06
- "dawn_view2:ev1" - view_07
- "dawn_view3:ev1" - view_11
- "dawn_view11:detector" - view_12
- "dawn_view12:detector" - view_13
- "dawn_view13:detector" - view_14
- "dawn_view14:detector" - view_15
tags: - dump_constants
- silicon - dump_geometry
artifacts: artifacts:
paths: paths:
- images/ - images/
- doc/ - doc/
script: script:
- pip3 install jinja2 && ls -lrth - pip3 install jinja2 && ls -lrth
- ./bin/make_images > doc/dawn_views.md - ./bin/make_images
overlap_check: overlap_check:
stage: test stage: test
tags: rules:
- silicon - if: '$CI_SERVER_HOST == "eicweb.phy.anl.gov"'
needs: needs:
- ["compile"] - ["common:detector"]
script: script:
#- $(exit $(checkOverlaps -c topside.xml | tee doc/overlap_check.out | wc -l )) - checkOverlaps -c ${DETECTOR_PATH}/topside.xml | tee doc/overlap_check.out
- checkOverlaps -c topside.xml | tee doc/overlap_check.out | wc -l - echo "$(cat doc/overlap_check.out | grep ovlp | wc -l) overlaps..."
- cat doc/overlap_check.out - if [[ "$(cat doc/overlap_check.out | grep ovlp | wc -l)" -gt "0" ]] ; then echo "Overlaps exist!" && false ; fi
allow_failure: true
topside:config_testing: topside:config_testing:
stage: test stage: test
tags: rules:
- silicon - if: '$CI_SERVER_HOST == "eicweb.phy.anl.gov"'
needs: needs:
- ["compile"] - ["common:detector"]
script: script:
#- $(exit $(checkOverlaps -c topside.xml | tee doc/overlap_check.out | wc -l )) - checkOverlaps -c ${DETECTOR_PATH}/topside.xml | tee doc/overlap_check.out | wc -l
- checkOverlaps -c topside.xml | tee doc/overlap_check.out | wc -l
- cat doc/overlap_check.out - cat doc/overlap_check.out
allow_failure: true allow_failure: true
benchmarks:reconstruction:
stage: deploy
trigger:
project: EIC/benchmarks/reconstruction_benchmarks
needs: ["overlap_check","report"]
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
when: never
- if: '$CI_COMMIT_BRANCH != "master"'
when: never
- when: on_success
benchmarks:physics: benchmarks:detector:
stage: deploy stage: deploy
trigger:
project: EIC/benchmarks/physics_benchmarks
needs: ["overlap_check","report"]
rules: rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"' - if: '$CI_SERVER_HOST == "eicweb.phy.anl.gov"'
when: never variables:
- if: '$CI_COMMIT_BRANCH != "master"' JUGGLER_DETECTOR: "$JUGGLER_DETECTOR"
when: never JUGGLER_DETECTOR_VERSION: "$JUGGLER_DETECTOR_VERSION"
- when: on_success trigger:
project: EIC/benchmarks/detector_benchmarks
strategy: depend
needs: ["common:detector","overlap_check","report"]
# http://docs.gitlab.com/ce/ci/yaml/README.html#cache
pages:
image: eicweb.phy.anl.gov:4567/containers/eic_container/node:15.12
rules:
- if: '$CI_SERVER_HOST != "eicweb.phy.anl.gov"'
cache:
paths:
- node_modules/
before_script:
- ls -lrth
script:
- mkdir public && cp doc/main.html public/index.html && cp doc/*.html public/.
artifacts:
paths:
- public
...@@ -16,15 +16,20 @@ Quick start ...@@ -16,15 +16,20 @@ Quick start
[Browse latest](https://eicweb.phy.anl.gov/EIC/detectors/topside/-/jobs/artifacts/master/browse/images?job=report) [Browse latest](https://eicweb.phy.anl.gov/EIC/detectors/topside/-/jobs/artifacts/master/browse/images?job=report)
<a href="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view1.pdf?job=report"> [Detector views](views/detector_views.md)
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view1.png?job=report" width="600px" />
<a href="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view01.pdf?job=report">
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view01.png?job=report" width="600px" />
</a> </a>
<br \>
<br /> <br />
<a href="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view2a.pdf?job=report"> <a href="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view02a.pdf?job=report">
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view2a.png?job=report" width="400px" /> <img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view02a.png?job=report" width="400px" />
</a> </a>
<a href="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view2e.pdf?job=report"> <a href="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view02e.pdf?job=report">
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view2e.png?job=report" width="400px" /> <img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view02e.png?job=report" width="400px" />
</a> </a>
<br /> <br />
<a href="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view11.pdf?job=report"> <a href="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view11.pdf?job=report">
...@@ -108,303 +113,8 @@ Done. ...@@ -108,303 +113,8 @@ Done.
Looking at the detector Looking at the detector
https://ma.ttias.be/socks-proxy-linux-ssh-bypass-content-filters/
### TOPSiDE views
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view11.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view11a.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a0050.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a0100.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a0150.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a0200.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a0250.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a0300.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a0350.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a0400.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a0450.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a0500.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a0550.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a0600.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a0650.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a0700.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a0750.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a0800.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a0850.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a0900.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a0950.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a1000.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a1050.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a1100.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a1150.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a1200.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a1250.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a1300.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a1350.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a1400.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a1450.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a1500.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a1550.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a1600.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a1650.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a1700.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a1750.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a1800.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a1850.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a1900.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a1950.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a2000.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12b.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view13b.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view14a0150.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view14a0200.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view14a0250.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view14a0300.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view14a0350.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view14a0400.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view14a0450.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view14a0500.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view14a0550.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view14a0600.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view14a0650.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view14a0700.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view14a0750.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view14a0800.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view14a0850.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view14a0900.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view14a0950.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view14a1000.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view14a1050.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view14a1100.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view14a1150.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view14a1200.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view14a1250.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view14a1300.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view14a1350.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view14a1400.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view14a1450.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view14a1500.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view14a1550.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view14a1600.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view14a1650.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view14a1700.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view14a1750.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view14a1800.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view14a1850.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view14a1900.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view14a1950.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view14a2000.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view14b.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view1.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view1_ev1.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view2a.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view2b.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view2c.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view2d.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view2e.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view2_ev1a.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view2_ev1b.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view2_ev1c.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view2_ev1d.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view2_ev1e.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view3.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view3_ev1.png?job=report" width="400px" />
<br \>
...@@ -6,14 +6,15 @@ export DAWN_PS_PREVIEWER="ls" ...@@ -6,14 +6,15 @@ export DAWN_PS_PREVIEWER="ls"
OUT_FILE=".DAWN_1.history" OUT_FILE=".DAWN_1.history"
function print_the_help { function print_the_help {
echo "USAGE: ${0} [-s <skip_events>] -d <dawn_run_dir> " echo "USAGE: ${0} -d <dawn_run_dir> "
echo " OPTIONS: " echo " OPTIONS: "
echo " -x targeted x coordinate position" echo " -x targeted x coordinate position"
echo " -y targeted x coordinate position" echo " -y targeted x coordinate position"
echo " -z targeted x coordinate position" echo " -z targeted x coordinate position"
echo " --theta viewing angle" echo " --theta viewing angle"
echo " --phi viewing angle" echo " --phi viewing angle"
echo " -m,--mag magnification" echo " -m,--mag magnification"
echo " --draw draw style "
echo " -d,--dawn-dir <dawn_run_dir> Directory with the .DAWN files and a generate script " echo " -d,--dawn-dir <dawn_run_dir> Directory with the .DAWN files and a generate script "
exit exit
} }
...@@ -91,6 +92,13 @@ do ...@@ -91,6 +92,13 @@ do
shift # past argument shift # past argument
shift # past value shift # past value
;; ;;
--draw)
echo "updating drawing to ${2}"
sed -i '9d' ${DAWN_RUN_DIR}/${OUT_FILE}
sed -i '9i'${2} ${DAWN_RUN_DIR}/${OUT_FILE}
shift # past argument
shift # past value
;;
-i|--input) -i|--input)
OUT_FILE="$2" OUT_FILE="$2"
shift # past argument shift # past argument
......
...@@ -92,23 +92,27 @@ rm -f *.prim ...@@ -92,23 +92,27 @@ rm -f *.prim
if [ "${DETECTOR_ONLY}" -eq "1" ] ; then if [ "${DETECTOR_ONLY}" -eq "1" ] ; then
./scripts/run_topside.py -i scripts/input_data/few_events.hepmc \ ./scripts/run_topside.py \
-o derp.root -n 1 \ --compact ${DETECTOR_PATH}/topside.xml \
--ui csh --vis -b -m macro/dawn_picture.mac & -i scripts/input_data/few_events.hepmc \
-o derp.root -n 1 \
--ui csh --vis -b -m macro/dawn_picture.mac &
sleep 10 sleep 10
echo "sleeping 20 secs .. " echo "sleeping 20 secs .. "
sleep 10 sleep 10
echo "sleeping 10 secs " echo "sleeping 10 secs "
sleep 5 sleep 5
echo "sleeping 5 secs " echo "sleeping 5 secs "
sleep 5 sleep 5
kill %1 kill %1
else else
echo " Running simulation for tracks" echo " Running simulation for tracks"
./scripts/run_topside.py -i scripts/input_data/few_events.hepmc \ ./scripts/run_topside.py \
--compact ${DETECTOR_PATH}/topside.xml \
-i scripts/input_data/few_events.hepmc \
-o derp.root -s ${SKIP_EVENTS} -n 1 \ -o derp.root -s ${SKIP_EVENTS} -n 1 \
--ui csh --vis -b -m macro/dawn_picture2.mac & --ui csh --vis -b -m macro/dawn_picture2.mac &
......
...@@ -15,5 +15,14 @@ base_url = "https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master ...@@ -15,5 +15,14 @@ base_url = "https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master
images = glob.glob("images/*.png") images = glob.glob("images/*.png")
template = env.get_template('detector_views.md') template = env.get_template('detector_views.md')
print(template.render(base_url=base_url, images=images)) res = template.render(base_url=base_url, images=images)
#print(template.render(base_url=base_url, images=images))
with open('doc/dawn_views.md','w') as out:
out.write(res + '\n')
views_template = env.get_template('views.html')
#print(template.render(base_url=base_url, images=images))
res2 = views_template.render(base_url=base_url, images=images)
with open('doc/views.html','w') as out:
out.write(res2 + '\n')
<!DOCTYPE html>
<html>
<head>
<title>TOPSiDE</title>
</head>
<body>
<h1>TOPSiDE</h1>
<a href="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view1.pdf?job=report">
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view1.png?job=report" width="600px" />
</a>
<br />
<a href="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view2a.pdf?job=report">
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view2a.png?job=report" width="400px" />
</a>
<a href="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view2e.pdf?job=report">
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view2e.png?job=report" width="400px" />
</a>
<br />
<a href="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view11.pdf?job=report">
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view11.png?job=report" width="600px" />
</a>
<br />
<a href="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a.pdf?job=report">
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a.png?job=report" width="600px" />
</a>
<h2>TOPSiDE Reference</h2>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view11.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view11a.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a0050.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a0100.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a0150.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a0200.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a0250.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a0300.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a0350.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a0400.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a0450.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a0500.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a0550.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a0600.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a0650.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a0700.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a0750.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a0800.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a0850.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a0900.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a0950.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a1000.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a1050.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a1100.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a1150.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a1200.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a1250.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a1300.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a1350.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a1400.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a1450.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a1500.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a1550.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a1600.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a1650.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a1700.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a1750.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a1800.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a1850.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a1900.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a1950.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12a2000.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view12b.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view13b.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view1.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view1_ev1.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view2a.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view2b.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view2c.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view2d.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view2e.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view2_ev1a.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view2_ev1b.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view2_ev1c.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view2_ev1d.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view2_ev1e.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view3.png?job=report" width="400px" />
<br \>
<img src="https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master/raw/images/view3_ev1.png?job=report" width="400px" />
<br \>
</body>
</html>
This diff is collapsed.
#/vis/open DAWNFILE 1000x1000+600+400
#/vis/scene/create
#/vis/scene/add/volume
#/vis/sceneHandler/attach
#/vis/viewer/flush
#/vis/scene/add/trajectories
#/vis/scene/add/hits
#/tracking/storeTrajectory 1
#/vis/drawVolume
#/vis/geometry/set/forceSolid all -1 true
#/vis/geometry/set/visibility world_volume 0 0
#/run/beamOn 1
#/vis/viewer/flush
/vis/open DAWNFILE /vis/open DAWNFILE
/vis/viewer/set/lineSegmentsPerCircle 24 /vis/viewer/set/lineSegmentsPerCircle 24
/vis/scene/create /vis/scene/create
/vis/scene/add/volume /vis/scene/add/volume
/vis/sceneHandler/attach /vis/sceneHandler/attach
#/vis/scene/add/scale 1 m x 1 0 0 manual -0.5 -2 0 m #/vis/scene/add/scale 1 m x 1 0 0 manual -0.5 -2 0 m
/vis/scene/add/scale 1 m y 1 0 0 manual 2 -0.75 -3 m #/vis/scene/add/scale 1 m y 1 0 0 manual 2 -0.75 -3 m
#/vis/scene/add/scale 2 m z 1 0 0 manual 0 -2 0 m #/vis/scene/add/scale 2 m z 1 0 0 manual 0 -2 0 m
#/vis/scene/add/magneticField 6 lightArrow #/vis/scene/add/magneticField 6 lightArrow
/vis/viewer/flush /vis/viewer/flush
/vis/scene/add/trajectories /vis/scene/add/trajectories rich smooth
/vis/scene/add/hits /vis/scene/add/hits
/tracking/storeTrajectory 1 /tracking/storeTrajectory 1
#/vis/geometry/set/forceSolid all -1 true
#/vis/geometry/set/visibility world_volume 0 0
# Create an attribute filter named attributeFilter-0
/vis/filtering/trajectories/create/attributeFilter
# Select attribute "IMag"
/vis/filtering/trajectories/attributeFilter-0/setAttribute IMag
# Select trajectories with 100 MeV <= IMag< 500 GeV
/vis/filtering/trajectories/attributeFilter-0/addInterval 500 MeV 500 GeV
# List available attributes
/vis/list
# List filters
/vis/filtering/trajectories/list
/run/beamOn 5 /run/beamOn 5
exit exit
#/vis/open DAWNFILE 1000x1000+600+400
#/vis/scene/create
#/vis/scene/add/volume
#/vis/sceneHandler/attach
#/vis/viewer/flush
#/vis/scene/add/trajectories
#/vis/scene/add/hits
#/tracking/storeTrajectory 1
#/vis/drawVolume
#/vis/geometry/set/forceSolid all -1 true
#/vis/geometry/set/visibility world_volume 0 0
#/run/beamOn 1
#/vis/viewer/flush
/vis/open DAWNFILE /vis/open DAWNFILE
/vis/scene/create /vis/scene/create
/vis/scene/add/volume /vis/scene/add/volume
/vis/sceneHandler/attach /vis/sceneHandler/attach
#/vis/viewer/flush /vis/scene/add/trajectories rich smooth
/vis/scene/add/trajectories #/vis/scene/add/hits
/vis/scene/add/hits
#/vis/scene/add/scale 1 m x 1 0 0 manual -0.5 -2 0 m #/vis/scene/add/scale 1 m x 1 0 0 manual -0.5 -2 0 m
/vis/scene/add/scale 1 m y 1 0 0 manual 2 -0.75 -3 m #/vis/scene/add/scale 1 m y 1 0 0 manual 2 -0.75 -3 m
#/vis/scene/add/scale 2 m z 1 0 0 manual 0 -2 0 m #/vis/scene/add/scale 2 m z 1 0 0 manual 0 -2 0 m
/tracking/storeTrajectory 1 /tracking/storeTrajectory 1
#/vis/geometry/set/forceSolid all -1 true
#/vis/geometry/set/visibility world_volume 0 0
# Create an attribute filter named attributeFilter-0
/vis/filtering/trajectories/create/attributeFilter
# Select attribute "IMag"
/vis/filtering/trajectories/attributeFilter-0/setAttribute IMag
# Select trajectories with 100 MeV <= IMag< 500 GeV
/vis/filtering/trajectories/attributeFilter-0/addInterval 500 MeV 500 GeV
# List available attributes
/vis/list
# List filters
/vis/filtering/trajectories/list
/run/beamOn 1 /run/beamOn 1
exit exit
...@@ -112,7 +112,7 @@ ...@@ -112,7 +112,7 @@
<include ref="topside/hcal.xml"/> <include ref="topside/hcal.xml"/>
<include ref="topside/solenoid.xml"/> <include ref="topside/solenoid.xml"/>
--> -->
<include ref="topside/topside_rich.xml"/> <include ref="topside/forward_rich.xml"/>
<!-- <!--
<include ref="topside/roman_pots.xml"/> <include ref="topside/roman_pots.xml"/>
<include ref="../accelerator/eic/forward_ion_beamline.xml"/> <include ref="../accelerator/eic/forward_ion_beamline.xml"/>
......
...@@ -58,7 +58,7 @@ def run_sim(args): ...@@ -58,7 +58,7 @@ def run_sim(args):
outputfile = args.output outputfile = args.output
if outputfile is None: if outputfile is None:
outputfile = 'data/topside_rich_' + time.strftime('%Y-%m-%d_%H-%M') outputfile = 'data/forward_rich_' + time.strftime('%Y-%m-%d_%H-%M')
podio = DDG4.EventAction(kernel, 'Geant4Output2Podio/RootOutput', True) podio = DDG4.EventAction(kernel, 'Geant4Output2Podio/RootOutput', True)
podio.HandleMCTruth = False podio.HandleMCTruth = False
......
This diff is collapsed.
<!DOCTYPE html>
<html>
<head>
<title>Topside Detector</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" media="screen">
<style type="text/css">
.container {
max-width: 500px;
padding-top: 100px;
}
h2 {color: red;}
</style>
</head>
<body>
<h1>TOPSiDE</h1>
<div class="container">
{% block content %}{% endblock %}
<br>
<h2>Details</h2>
</div>
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
<script src="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
</body>
</html>
{% extends "layout.html" %}
{% block content %}
<h2>Detector Views</h2>
<br>
<table>
{%- for row in images|batch(3, '&nbsp;') %}
<tr>
{%- for column in row %}
<td>
<img src="{{base_url}}/{{column}}?job=report" width="300px" />
<br \>
</td>
{%- endfor %}
</tr>
{%- endfor %}
</table>
{% endblock %}
...@@ -214,9 +214,21 @@ def run(): ...@@ -214,9 +214,21 @@ def run():
#seq, act = geant4.setupDetector('HeavyGasCherenkov','PhotoMultiplierSDAction') #seq, act = geant4.setupDetector('HeavyGasCherenkov','PhotoMultiplierSDAction')
#act.adopt(f3) #act.adopt(f3)
seq, act = geant4.setupTracker('SiTrackerBarrel') seq, act = geant4.setupTracker('SiTrackerBarrel_Layer1')
seq, act = geant4.setupTracker('SiTrackerEndcapP') seq, act = geant4.setupTracker('SiTrackerEndcapP_Layer1')
seq, act = geant4.setupTracker('SiTrackerEndcapN') seq, act = geant4.setupTracker('SiTrackerEndcapN_Layer1')
seq, act = geant4.setupTracker('SiTrackerBarrel_Layer2')
seq, act = geant4.setupTracker('SiTrackerEndcapP_Layer2')
seq, act = geant4.setupTracker('SiTrackerEndcapN_Layer2')
seq, act = geant4.setupTracker('SiTrackerBarrel_Layer3')
seq, act = geant4.setupTracker('SiTrackerEndcapP_Layer3')
seq, act = geant4.setupTracker('SiTrackerEndcapN_Layer3')
seq, act = geant4.setupTracker('SiTrackerBarrel_Layer4')
seq, act = geant4.setupTracker('SiTrackerEndcapP_Layer4')
seq, act = geant4.setupTracker('SiTrackerEndcapN_Layer4')
seq, act = geant4.setupTracker('SiTrackerBarrel_Layer5')
seq, act = geant4.setupTracker('SiTrackerEndcapP_Layer5')
seq, act = geant4.setupTracker('SiTrackerEndcapN_Layer5')
#seq, act = geant4.setupTracker('SiVertexBarrel') #seq, act = geant4.setupTracker('SiVertexBarrel')
#seq, act = geant4.setupTracker('SiTrackerForward') #seq, act = geant4.setupTracker('SiTrackerForward')
#seq, act = geant4.setupCalorimeter('EcalBarrel') #seq, act = geant4.setupCalorimeter('EcalBarrel')
......
...@@ -9,8 +9,8 @@ function print_the_help { ...@@ -9,8 +9,8 @@ function print_the_help {
exit exit
} }
FILE_TAG="view1" FILE_TAG="view01"
INPUT_FILE="g4_0000.prim" INPUT_FILE="../../g4_0000.prim"
POSITIONAL=() POSITIONAL=()
...@@ -44,6 +44,7 @@ done ...@@ -44,6 +44,7 @@ done
set -- "${POSITIONAL[@]}" # restore positional parameters set -- "${POSITIONAL[@]}" # restore positional parameters
# Side view
dawncut 1 0 0 1 ${INPUT_FILE} ${FILE_TAG}_temp0.prim dawncut 1 0 0 1 ${INPUT_FILE} ${FILE_TAG}_temp0.prim
dawncut -1 0 0 1 ${FILE_TAG}_temp0.prim ${FILE_TAG}.prim dawncut -1 0 0 1 ${FILE_TAG}_temp0.prim ${FILE_TAG}.prim
dawn -d ${FILE_TAG}.prim dawn -d ${FILE_TAG}.prim
...@@ -55,3 +56,15 @@ gs -o ${FILE_TAG}.pdf -sDEVICE=pdfwrite \ ...@@ -55,3 +56,15 @@ gs -o ${FILE_TAG}.pdf -sDEVICE=pdfwrite \
pdftoppm ${FILE_TAG}.pdf ${FILE_TAG} -png -singlefile -cropbox pdftoppm ${FILE_TAG}.pdf ${FILE_TAG} -png -singlefile -cropbox
# Top view
dawncut 0 1 0 1 ${INPUT_FILE} ${FILE_TAG}_temp0.prim
dawncut 0 -1 0 1 ${FILE_TAG}_temp0.prim ${FILE_TAG}.prim
../../bin/dawn_tweak --theta 270
dawn -d ${FILE_TAG}.prim
ps2pdf ${FILE_TAG}.eps ${FILE_TAG}_top_full.pdf
gs -o ${FILE_TAG}_top.pdf -sDEVICE=pdfwrite \
-c "[/CropBox [51 250 550 590] /PAGES pdfmark" \
-f ${FILE_TAG}_top_full.pdf
pdftoppm ${FILE_TAG}_top.pdf ${FILE_TAG}_top -png -singlefile -cropbox
...@@ -75,8 +75,9 @@ gs -o ${FILE_TAG}.pdf -sDEVICE=pdfwrite \ ...@@ -75,8 +75,9 @@ gs -o ${FILE_TAG}.pdf -sDEVICE=pdfwrite \
pdftoppm ${FILE_TAG}.pdf ${FILE_TAG} -png -singlefile -cropbox pdftoppm ${FILE_TAG}.pdf ${FILE_TAG} -png -singlefile -cropbox
dawncut 1 0 -0.01666 200 ${INPUT_FILE} ${FILE_TAG}a_temp0.prim #dawncut 1 0 -0.01666 200 ${INPUT_FILE} ${FILE_TAG}a_temp0.prim
dawncut -1 0 0.01666 200 ${FILE_TAG}a_temp0.prim ${FILE_TAG}a.prim dawncut -1 0 0.01666 200 ${INPUT_FILE} ${FILE_TAG}a.prim
../../bin/dawn_tweak --draw 5
dawn -d ${FILE_TAG}a.prim dawn -d ${FILE_TAG}a.prim
ps2pdf ${FILE_TAG}a.eps ${FILE_TAG}a_full.pdf ps2pdf ${FILE_TAG}a.eps ${FILE_TAG}a_full.pdf
gs -o ${FILE_TAG}a.pdf -sDEVICE=pdfwrite \ gs -o ${FILE_TAG}a.pdf -sDEVICE=pdfwrite \
......
1.34392e+07 0.0
180 180
90 90
0 0
0 0
0 0
0 0
29 40
1 1
0.001 0.001
0 0
......
#!/bin/bash #!/bin/bash
#trignometry #trignometry
sin () #sin ()
{ #{
echo "scale=5;s($1)" | bc -l # echo "scale=5;s($1)" | bc -l
} #}
#
cos () #cos ()
{ #{
echo "scale=5;c($1)" | bc -l # echo "scale=5;c($1)" | bc -l
} #}
#
tan () #tan ()
{ #{
echo "scale=5;s($1)/c($1)" | bc -l # echo "scale=5;s($1)/c($1)" | bc -l
} #}
function print_the_help { function print_the_help {
...@@ -62,16 +62,18 @@ set -- "${POSITIONAL[@]}" # restore positional parameters ...@@ -62,16 +62,18 @@ set -- "${POSITIONAL[@]}" # restore positional parameters
echo "view12 produces a series of slightly rotated XY slices a different z locations. Along beamline" echo "view12 produces a series of slightly rotated XY slices a different z locations. Along beamline"
../../bin/dawn_tweak --mag 40
# slice at z = 2m # slice at z = 2m
# note the offset has to change with sign of the direction to cut in the opposite direction. # note the offset has to change with sign of the direction to cut in the opposite direction.
dawncut 0 0 1 2005 ${INPUT_FILE} ${FILE_TAG}b_temp0.prim #dawncut 0 0 1 2005 ${INPUT_FILE} ${FILE_TAG}b_temp0.prim
dawncut 0 0 -1 -2000 ${FILE_TAG}b_temp0.prim ${FILE_TAG}b.prim #dawncut 0 0 -1 -2000 ${FILE_TAG}b_temp0.prim ${FILE_TAG}b.prim
dawn -d ${FILE_TAG}b.prim #dawn -d ${FILE_TAG}b.prim
ps2pdf ${FILE_TAG}b.eps ${FILE_TAG}b_full.pdf #ps2pdf ${FILE_TAG}b.eps ${FILE_TAG}b_full.pdf
gs -o ${FILE_TAG}b.pdf -sDEVICE=pdfwrite \ #gs -o ${FILE_TAG}b.pdf -sDEVICE=pdfwrite \
-c "[/CropBox [50 175 550 675] /PAGES pdfmark" \ # -c "[/CropBox [50 175 550 675] /PAGES pdfmark" \
-f ${FILE_TAG}b_full.pdf # -f ${FILE_TAG}b_full.pdf
pdftoppm ${FILE_TAG}b.pdf ${FILE_TAG}b -png -singlefile -cropbox #pdftoppm ${FILE_TAG}b.pdf ${FILE_TAG}b -png -singlefile -cropbox
original_file_tag="${FILE_TAG}" original_file_tag="${FILE_TAG}"
...@@ -90,7 +92,7 @@ make_slice(){ ...@@ -90,7 +92,7 @@ make_slice(){
rm "${FILE_TAG}_temp0.prim" rm "${FILE_TAG}_temp0.prim"
rm "${FILE_TAG}.prim" rm "${FILE_TAG}.prim"
} }
for zzz in $(seq 50 50 2000) ; for zzz in $(seq 0 2 130) ;
do do
make_slice ${zzz} & make_slice ${zzz} &
done done
......
1.34392e+07 0.0
-1 -1
180 180
0 0
......