Can we covergroup inside a monitor

In reply to Vickyvinayk:

The argument name of the write function has to be t because it is specified in the write function of the uvm_subscriber.