We will present how to use the TProfile2Poly class to create polygonal bins that simulate particle detector panels which are being hit by charged particles. The goal is to measure differences in charge if one or more such panels are malfunctioning.
The geometry of the CMS Pixel end cap is stored as x,y coordinate triplet rows where where one triplet defines a detector panel.
The script generates numEvents (script argument) were their x,y coordinates are Gaussian distributed with 0 mean, but different sigmas. Each event also has a value (in our interpretation charge) associated with it.