Can I trigger an event in one agent and after triggered, do something inside another agent?

In reply to cashah85:

Hello Chetan
Thanks for your reply. I get error messages saying that “trigger is not a class item”, “wait_trigger() is not a class item”.

I have two more questions.
1.Can I do the same thing between two drivers(in different agents).

Driver 1
uvm_event_pool p1 = p1.get_global_pool();
uvm_event e1 = p1.get("ABC");
p1.trigger();

Driver 2:

uvm_event_pool p1 = p1.get_global_pool();
uvm_event e1 = p1.get("ABC");
p1.wait_trigger();
p1.reset();
  1. Where should I place these event declarations. I have seen in an example where event is declared in run_phase.

Thanks and Regards