# Can I ask how to plot cross-section of silicon medium

**URL:** <https://root-forum.cern.ch/t/can-i-ask-how-to-plot-cross-section-of-silicon-medium/50977>\
**Category:** Garfield++\
**Created:** [July 27, 2022, 4:38am UTC](https://root-forum.cern.ch/t/can-i-ask-how-to-plot-cross-section-of-silicon-medium/50977 "2022-07-27T04:38:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SCplayer1](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/scplayer1/32/30421_2.png) [@SCplayer1](https://root-forum.cern.ch/u/SCplayer1)\
**Post date:** [July 27, 2022, 4:38am UTC](https://root-forum.cern.ch/t/can-i-ask-how-to-plot-cross-section-of-silicon-medium/50977/1 "2022-07-27T04:38:56Z")

</div>

Hi I am studying about PAI model. I am trying to check cross section and cluster density used in garfield++.  
Can i ask a help for plotting diffrential cross section dsigma/dE using garfield ++ ?

thanks for your help

---

<div class="post-metadata">

**Author:** ![hschindl](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/977dab/32.png) [@hschindl](https://root-forum.cern.ch/u/hschindl)\
**Post date:** [July 27, 2022, 5:10am UTC](https://root-forum.cern.ch/t/can-i-ask-how-to-plot-cross-section-of-silicon-medium/50977/2 "2022-07-27T05:10:19Z")

</div>

Unfortunately there is no function implemented for that at the moment (I’ll put it on my to-do list to add one).

For the time being, you can comment out [line 464 in Heed/heed++/code/EnTransfCS.cpp](https://gitlab.cern.ch/garfield/garfieldpp/-/blob/master/Heed/heed%2B%2B/code/EnTransfCS.cpp#L464), and recompile the project. When computing the differential cross-section table, Heed will then dump it to a text file (first column: energy loss, second column: dσ/dE).

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [August 10, 2022, 5:10am UTC](https://root-forum.cern.ch/t/can-i-ask-how-to-plot-cross-section-of-silicon-medium/50977/3 "2022-08-10T05:10:52Z")

</div>

Closed on August 10, 2022, 5:10am UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
