Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -369,13 +369,10 @@ events->Draw("DCHCollection.eDep/DCHCollection.pathLength", "DCHCollection.eDep/

Displaying detector geometries is very useful to understand what is actually being simulated without having to enter the code. One example of tool (out of many) is described here, chosen for its simplicity together with the particular feature of hosting the needed data locally, leading to smooth performance of the visualization.

Let's first generate the files containing the geometry that will be used by the display tool.
With the key4hep software stack sourced, let's first generate the files containing the geometry that will be used by the display tool.

```bash
cd ../../..
wget https://raw.githubusercontent.com/key4hep/k4geo/main/utils/dd4hep2root.py
chmod +x dd4hep2root.py
./dd4hep2root.py -c $K4GEO/FCCee/CLD/compact/CLD_o2_v07/CLD_o2_v07.xml -o CLD_o2_v07_geom.root
dd4hep2root -c $K4GEO/FCCee/CLD/compact/CLD_o2_v07/CLD_o2_v07.xml -o CLD_o2_v07_geom.root
echo $PWD/CLD_o2_v07_geom.root
```

Expand Down
13 changes: 2 additions & 11 deletions 4-full-detector-sim/Visualization/Visualization.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,18 +236,9 @@ ROOT.gGeoManager.SetVisOption(0)
ROOT.gGeoManager.Export(out_path)
```

We will try to convert FCCee Noble Liquid Calorimeter. On the remote machine
with FCCSW stack already sourced download the `dd4hep2root.py` script
We will try to convert FCCee Noble Liquid Calorimeter. On the remote machine, with key4hep stack already sourced run the conversion with
```sh
wget https://raw.githubusercontent.com/key4hep/k4geo/main/utils/dd4hep2root.py
```
make it executable
```sh
chmod u+x dd4hep2root.py
```
and run the conversion with
```sh
./dd4hep2root.py -c ${FCCDETECTORS}/Detector/DetFCCeeIDEA-LAr/compact/FCCee_DectEmptyMaster.xml \
dd4hep2root -c ${FCCDETECTORS}/Detector/DetFCCeeIDEA-LAr/compact/FCCee_DectEmptyMaster.xml \
${FCCDETECTORS}/Detector/DetFCCeeECalInclined/compact/FCCee_ECalBarrel.xml
-o fccee_lar.root
```
Expand Down
Loading