How to get the values of coverbins hit by the test using post_randomize function

1.How to obtain the values generated for a cover bin using post randomize method?1. Is it mandatory to define that cover bin(CG) inside a class to do it ?

2.If a cover group is defined outside the class how do i trace the values for a variable in Cover group.($display doesn’t work here)