# What do the colors represent?

**URL:** <https://root-forum.cern.ch/t/what-do-the-colors-represent/58021>\
**Category:** Garfield++\
**Created:** [February 1, 2024, 8:21am UTC](https://root-forum.cern.ch/t/what-do-the-colors-represent/58021 "2024-02-01T08:21:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![newconcept1979](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/newconcept1979/32/26349_2.png) [@newconcept1979](https://root-forum.cern.ch/u/newconcept1979)\
**Post date:** [February 1, 2024, 8:21am UTC](https://root-forum.cern.ch/t/what-do-the-colors-represent/58021/1 "2024-02-01T08:21:08Z")

</div>

In DriftTube example, when changing class DriftLineRKF to AvalancheMicroscopic for transporting electron, the result from class ViewDrift is:

 ![1706775475981](https://root-forum.cern.ch/uploads/default/original/3X/7/d/7d97c547631ec7be484ad9623a3f849d91f00e15.png)

the color of electron is identified by code: driftView.SetColourElectrons(2);  
the color of track is identified by code:driftView.SetColourTracks(3);  
What do the colors orange and cyan represent?

---

<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:** [February 1, 2024, 8:40am UTC](https://root-forum.cern.ch/t/what-do-the-colors-represent/58021/2 "2024-02-01T08:40:05Z")

</div>

Ionising collisions and excitations inside the avalanche.

---

<div class="post-metadata">

**Author:** ![newconcept1979](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/newconcept1979/32/26349_2.png) [@newconcept1979](https://root-forum.cern.ch/u/newconcept1979)\
**Post date:** [February 1, 2024, 8:44am UTC](https://root-forum.cern.ch/t/what-do-the-colors-represent/58021/3 "2024-02-01T08:44:16Z")

</div>

@hschindl , orange represents excitations inside the avalanche?  
and cyan represents Ionising collisions?

---

<div class="post-metadata">

**Author:** ![Piet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/piet/32/12536_2.png) [@Piet](https://root-forum.cern.ch/u/Piet)\
**Post date:** [February 1, 2024, 5:16pm UTC](https://root-forum.cern.ch/t/what-do-the-colors-represent/58021/4 "2024-02-01T17:16:52Z")

</div>

Dear @newconcept1979

You can see the default colours for the driftview defined here:

> **[Include/Garfield/ViewDrift.hh · master · garfield / garfieldpp · GitLab](https://gitlab.cern.ch/garfield/garfieldpp/-/blob/master/Include/Garfield/ViewDrift.hh#L108-L115)**
>
> http://garfieldpp.web.cern.ch/garfieldpp/

In particular:  
Excitation = kGreen + 3;  
Ionisation = kOrange - 3;

greets  
Piet

---

<div class="post-metadata">

**Author:** ![newconcept1979](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/newconcept1979/32/26349_2.png) [@newconcept1979](https://root-forum.cern.ch/u/newconcept1979)\
**Post date:** [February 2, 2024, 1:08am UTC](https://root-forum.cern.ch/t/what-do-the-colors-represent/58021/5 "2024-02-02T01:08:27Z")

</div>

@Piet @hschindl , thank you very much!

---

<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:** [February 16, 2024, 1:08am UTC](https://root-forum.cern.ch/t/what-do-the-colors-represent/58021/6 "2024-02-16T01:08:47Z")

</div>

Closed on February 16, 2024, 1:08am UTC

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