# Plotting alpha paths in Root C

**URL:** <https://root-forum.cern.ch/t/plotting-alpha-paths-in-root-c/60619>\
**Category:** Newbie\
**Created:** [August 27, 2024, 4:38am UTC](https://root-forum.cern.ch/t/plotting-alpha-paths-in-root-c/60619 "2024-08-27T04:38:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![TimFulcher](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/timfulcher/32/37354_2.png) [@TimFulcher](https://root-forum.cern.ch/u/TimFulcher)\
**Post date:** [August 27, 2024, 4:38am UTC](https://root-forum.cern.ch/t/plotting-alpha-paths-in-root-c/60619/1 "2024-08-27T04:38:40Z")

</div>

ROOT Version: 6.32.02  
\_Operating System:\_Sonoma 14.3  
\_Compiler/Version: X code 15.3  
\_CMake Version:\_3.29.2

Hi all,

I’ve changed the microdosimetry example in G4 to run alphas instead of protons and wish to view the alphas in the plot.C Root file.

The path of the particles is plotted using:

// Protons  
ntuple-\>SetMarkerColor(4);  
ntuple-\>SetMarkerSize(4);  
ntuple-\>Draw(“x:y:z/1000”,“flagParticle==2”,“same”);

Presumably the flagParticle==2 sets the particle type to protons. How do I change that to alphas?

Regards

Tim

---

<div class="post-metadata">

**Author:** ![Danilo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/danilo/32/34528_2.png) [@Danilo](https://root-forum.cern.ch/u/Danilo)\
**Post date:** [August 27, 2024, 5:09am UTC](https://root-forum.cern.ch/t/plotting-alpha-paths-in-root-c/60619/2 "2024-08-27T05:09:20Z")

</div>

Hi Tim,

I am not completely sure: would it make sense to ask the G4 forum instead of the ROOT one?

Cheers,  
D
