Skip to content
Snippets Groups Projects
Commit dff2a521 authored by Tom Polakovic's avatar Tom Polakovic
Browse files

Merge.

parents 2eb641ec 639836c7
Branches
Tags
No related merge requests found
image: eicweb.phy.anl.gov:4567/containers/eic_container/eic_container:latest image: eicweb.phy.anl.gov:4567/eic/npdet/npdet:latest
default: default:
artifacts: artifacts:
...@@ -11,9 +11,9 @@ default: ...@@ -11,9 +11,9 @@ default:
# - .git/ # - .git/
# - datasets/.git/ # - datasets/.git/
before_script: before_script:
- git clone https://eicweb.phy.anl.gov/EIC/NPDet.git && mkdir NPDet/build - git clone https://eicweb.phy.anl.gov/EIC/NPDet.git
- cd NPDet/build && cmake ../. -DCMAKE_INSTALL_PREFIX=/usr/local && make -j10 && make install # - cd NPDet/build && cmake ../. -DCMAKE_INSTALL_PREFIX=/usr/local && make -j10 && make install
- cd ../.. # - cd ../..
stages: stages:
- data_init - data_init
...@@ -49,6 +49,15 @@ cal_sim_1_dummy_test2: ...@@ -49,6 +49,15 @@ cal_sim_1_dummy_test2:
script: script:
- echo "here we run simulation" - echo "here we run simulation"
roman_pot_simu:
stage: simulate
tags:
- sodium
script:
- cp NPDet/src/GenericDetectors/trackers/compact/elements.xml ./.
- cp NPDet/src/GenericDetectors/trackers/compact/materials.xml ./.
- bash trackers/roman_pot_simu.sh
cal_test_1_dummy_test2: cal_test_1_dummy_test2:
stage: benchmarks stage: benchmarks
tags: tags:
...@@ -89,21 +98,11 @@ track_test_1_dummy_test: ...@@ -89,21 +98,11 @@ track_test_1_dummy_test:
- bash trackers/dummy_test.sh - bash trackers/dummy_test.sh
allow_failure: true allow_failure: true
roman_pot_simu:
stage: simulate
tags:
- sodium
script:
- bash trackers/roman_pot_simu.sh
allow_failure: true
roman_pot_nhits: roman_pot_nhits:
stage: benchmarks stage: benchmarks
tags: tags:
- sodium - sodium
script: script:
- cp NPDet/src/GenericDetectors/trackers/compact/elements.xml trackers/.
- cp NPDet/src/GenericDetectors/trackers/compact/materials.xml trackers/.
- root -b -q trackers/simple_tracking.cxx+ - root -b -q trackers/simple_tracking.cxx+
allow_failure: true allow_failure: true
......
...@@ -68,9 +68,8 @@ ...@@ -68,9 +68,8 @@
<frame x = "20.0*cm" y = "10.0*cm" z = "2*cm" /> <frame x = "20.0*cm" y = "10.0*cm" z = "2*cm" />
<position z_offset = "20.0*m" rotation = "false" vmax = "10*cm" v = "0.5*cm" /> <position z_offset = "20.0*m" rotation = "false" vmax = "10*cm" v = "0.5*cm" />
<layer repeat = "5"> <layer repeat = "5">
<slice material="Carbon" thickness="0.5*mm" vis = "BlueVis" /> <slice material="SiliconNitride" thickness="0.001*mm" vis="BlueVis" />
<slice material="Silicon" thickness="0.3*mm" vis = "GreenVis" sensitive = "true" /> <slice material="Silicon" thickness="0.03*cm" vis="GreenVis" sensitive="true" />
<slice material="Carbon" thickness="0.5*mm" vis = "BlueVis" />
<slice material="Vacuum" thickness="1.0*mm" vis="InvisibleWithDaughters" /> <slice material="Vacuum" thickness="1.0*mm" vis="InvisibleWithDaughters" />
</layer> </layer>
</detector> </detector>
......
...@@ -3,6 +3,6 @@ ...@@ -3,6 +3,6 @@
source /usr/local/bin/thisdd4hep.sh source /usr/local/bin/thisdd4hep.sh
ddsim --runType batch -N 300 \ ddsim --runType batch -N 300 \
--inputFiles ../data/forward_ions.hepmc \ --inputFiles ./data/forward_ions.hepmc \
--compactFile ./roman_pot.xml \ --compactFile ./trackers/roman_pot.xml \
--outputFile ../sim_output/roman_pot_out.root --outputFile ./sim_output/roman_pot_out.root
...@@ -29,7 +29,7 @@ R__LOAD_LIBRARY(libDDG4IO.so) ...@@ -29,7 +29,7 @@ R__LOAD_LIBRARY(libDDG4IO.so)
//#include "lcio2/TrackerRawDataData.h" //#include "lcio2/TrackerRawDataData.h"
//#include "lcio2/TrackerRawData.h" //#include "lcio2/TrackerRawData.h"
void simple_tracking(const char* fname = "../sim_output/roman_pot_out.root"){ void simple_tracking(const char* fname = "./sim_output/roman_pot_out.root"){
ROOT::EnableImplicitMT(); // Tell ROOT you want to go parallel ROOT::EnableImplicitMT(); // Tell ROOT you want to go parallel
//using namespace lcio2; //using namespace lcio2;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment