# Studying the cluster size

**URL:** <https://allpix-squared-forum.web.cern.ch/t/studying-the-cluster-size/474>\
**Category:** Uncategorized\
**Created:** [August 11, 2023, 12:13pm UTC](https://allpix-squared-forum.web.cern.ch/t/studying-the-cluster-size/474 "2023-08-11T12:13:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fajer](https://allpix-squared-forum.web.cern.ch/letter_avatar_proxy/v4/letter/f/e47774/32.png) [@Fajer](https://allpix-squared-forum.web.cern.ch/u/Fajer)\
**Post date:** [August 11, 2023, 12:13pm UTC](https://allpix-squared-forum.web.cern.ch/t/studying-the-cluster-size/474/1 "2023-08-11T12:13:20Z")

</div>

Hello experts,  
I am trying to simulate (HVTrack detector) which is a silicon detector made of 167\*167 matrix, with thickness 150um and pixel size 80um. The detector has been subjected to irradiation with 10k events of carbon ion beams to investigate charge sharing effects. When I tried to look at the resulted root file, I found couple of histograms related to the cluster size. But the results are quite different between the cluster size (clusters vs cluster size) and (events vs clusters). For instance, in the attached image, the occurrence of 2 clusters appears significantly higher in the left plot compared to the right plot for the same simulation. I haven’t understood the difference yet and I find myself somewhat bewildered at this juncture. Could someone kindly assist me in elucidating this matter? As a newcomer to allpix2, any guidance, assistance, or advice would be immensely appreciated. I uploaded the configuration files and the plots and I am using `version v3.0.0`.  
Thank you for your help and support.

Best regards,  
Fajer

 ![Screenshot 2023-08-11 at 12.57.23](https://allpix-squared-forum.web.cern.ch/uploads/default/original/1X/290304532a175ce6331bdb39703205502e3f6f34.jpeg)  
[my2sim.conf](https://allpix-squared-forum.web.cern.ch/uploads/short-url/evyHLE0TimCMlp8iatsCF6AJJqU.conf) (1.3 KB)  
[mydetector.conf](https://allpix-squared-forum.web.cern.ch/uploads/short-url/li01IJgpL5g7QXClc45nI1q0Ff9.conf) (262 Bytes)

---

<div class="post-metadata">

**Author:** ![pschutze](https://allpix-squared-forum.web.cern.ch/letter_avatar_proxy/v4/letter/p/45deac/32.png) [@pschutze](https://allpix-squared-forum.web.cern.ch/u/pschutze)\
**Post date:** [August 11, 2023, 1:48pm UTC](https://allpix-squared-forum.web.cern.ch/t/studying-the-cluster-size/474/2 "2023-08-11T13:48:07Z")

</div>

Dear @Fajer ,

welcome to the forum and to Allpix Squared!

The difference indeed is a rather simple one:

- The _cluster size_ stands for the number of pixels that form an individual cluster. E.g. in a situation where two adjacent pixels see a signal above threshold in the same, corresponding event, you would have one cluster with a cluster size of two.
- The _number of clusters per event_ shows, how many clusters appear in individual events. Hence, in most events you see only a single cluster, in some events there are two or even more clusters.

Does this answer your question?

Cheers  
Paul

---

<div class="post-metadata">

**Author:** ![Fajer](https://allpix-squared-forum.web.cern.ch/letter_avatar_proxy/v4/letter/f/e47774/32.png) [@Fajer](https://allpix-squared-forum.web.cern.ch/u/Fajer)\
**Post date:** [August 11, 2023, 10:33pm UTC](https://allpix-squared-forum.web.cern.ch/t/studying-the-cluster-size/474/3 "2023-08-11T22:33:52Z")

</div>

Dear @pschutze  
Thanks a lot for your answer.  
It was very helpful, and yup that what I was needing!  
Cheers  
Fajer
