HGCal validation code