# Visualize in Geant4GarfieldInterface

**URL:** <https://root-forum.cern.ch/t/visualize-in-geant4garfieldinterface/53857>\
**Category:** Garfield++\
**Created:** [March 3, 2023, 8:06am UTC](https://root-forum.cern.ch/t/visualize-in-geant4garfieldinterface/53857 "2023-03-03T08:06:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zql21](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/zql21/32/33487_2.png) [@zql21](https://root-forum.cern.ch/u/zql21)\
**Post date:** [March 3, 2023, 8:06am UTC](https://root-forum.cern.ch/t/visualize-in-geant4garfieldinterface/53857/1 "2023-03-03T08:06:13Z")

</div>

Hi,experts!I have some questions about visualization.

1. In Examples/Geant4GarfieldInterface, if I want to use the method(including driftView, fieldView, signalView, meshView, cellView) in Garfield to visualize the results. Where should I add my visualization code ? I want to add it in GarfieldPhysics : : Doit(), but I 'm not sure where to visualize is appropriate.

2. If I want to visualize the secondary particles obtained by GarfieldPhysics : : GetSecondaryParticles ( ), where should I add the visual code ?

3. Besides, I 'm curious what must or can be done in GarfieldPhysics : : InitializePhysics ( ) ? Can I put the visual code here ?

4. When the particle is in RegionGas and the energy makes the GarfieldG4FastSimulationModel : : ModelTrigger ( ) return value True, the program uses 'FastSimulationModel ’ ( if I 'm wrong, please point out ). I want to know, where 'fast simulation ’ is reflected ? Can it speed up the simulation of particle drift or avalanche ?  
I would appreciate it if you could give me some advice .

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [March 3, 2023, 8:14am UTC](https://root-forum.cern.ch/t/visualize-in-geant4garfieldinterface/53857/2 "2023-03-03T08:14:20Z")

</div>

I think @hschindl can give you some advice

---

<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:** [March 17, 2023, 8:14am UTC](https://root-forum.cern.ch/t/visualize-in-geant4garfieldinterface/53857/3 "2023-03-17T08:14:22Z")

</div>

Closed on March 17, 2023, 8:14am UTC

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