Shape of pixel about hexagon

Hi~I meet a small question:

I found that the file at

…/src/core/geometry/HexagonalPixelDetectorModel.cpp

but i don’t know how to set the shape of pixel.

By the way, I think that i always use the default shape: Rectangular, is right?

Hi @Newyean

the code you are referring to is not yet in a published release, so some of the documentation is still missing - we’re working on that. But a short summary:

Have a look here: Geometry and Detectors | Allpix Squared

For a hexagonal pixel detector, you would use:

[mydetector]
type = monolithic
geometry = hexagonal

Cheers,
Simon

Very thanks for your help~! I will try it.