modules #-------- credits: detector toy model inspired to example from Yandex Sch. Data Ana., readapted and expanded for AI4NP