# How to define a portion of cylinder in Garfield/neBEM?

**URL:** <https://root-forum.cern.ch/t/how-to-define-a-portion-of-cylinder-in-garfield-nebem/59162>\
**Category:** Garfield++\
**Created:** [April 29, 2024, 3:23am UTC](https://root-forum.cern.ch/t/how-to-define-a-portion-of-cylinder-in-garfield-nebem/59162 "2024-04-29T03:23:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sebastien](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/f475e1/32.png) [@Sebastien](https://root-forum.cern.ch/u/Sebastien)\
**Post date:** [April 29, 2024, 3:23am UTC](https://root-forum.cern.ch/t/how-to-define-a-portion-of-cylinder-in-garfield-nebem/59162/1 "2024-04-29T03:23:06Z")

</div>

Hi! I’m wondering if/how one can define a portion of a cylinder using Garfield geometry. Right now I’m using SolidTube to define a cylinder, but there is no parameters like phi1, phi2 to define just a portion (arc). I was thinking to modify the loop on the sectors in the SolidTube.cc (e.g. looping on a subset of the sectors), but I’m unsure of the result 🙂  
Thank you in advance!

---

<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:** [April 29, 2024, 4:46am UTC](https://root-forum.cern.ch/t/how-to-define-a-portion-of-cylinder-in-garfield-nebem/59162/2 "2024-04-29T04:46:20Z")

</div>

Hi,

Adding in the loop @hschindl.

Best,  
D

---

<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:** [April 30, 2024, 7:32am UTC](https://root-forum.cern.ch/t/how-to-define-a-portion-of-cylinder-in-garfield-nebem/59162/3 "2024-04-30T07:32:26Z")

</div>

Hi,  
if you could implement this modification, that would be great! I’m happy to take a look/give it a try if you want…

---

<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:** [May 14, 2024, 7:32am UTC](https://root-forum.cern.ch/t/how-to-define-a-portion-of-cylinder-in-garfield-nebem/59162/4 "2024-05-14T07:32:30Z")

</div>

Closed on May 14, 2024, 7:32am UTC

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