Wrong:Trick or treating have nothing to do with Samhaim. It's an American tradition that developed in the 20th century.
"During some Celtic celebrations of Samhain, villagers disguised themselves in costumes made of animal skins to drive away phantom visitors; banquet tables were prepared and food was left out to placate unwelcome spirits.
In later centuries, people began dressing as ghosts, demons and other malevolent creatures, performing antics in exchange for food and drink. This custom, known as mumming, dates back to the Middle Ages and is thought to be an antecedent of trick-or-treating."
https://www.history.com/news/halloween-trick-or-treating-origins
It has its roots in Samhain and evolved throughout the centuries.