EventDetector selection on right ascension and declination

Hi everyone,
I’m a newer to use orekit to observe objects. Recently, I am in trouble on selecting EventDetector to observe someplace with right ascension and declination.
I have almost seen all EventDetector API and their introduction, but I hava no idea about which eventdetector I should choose.
Giving right ascension and declination, how to conver them to parameters that EventDetector needs.
I would appreciate it if someone can provide java code example to achieve object observation based on given right ascension and declination


I believe you want to do something similar to this post.
Is that correct?


Thanks @Serrof. Maybe EclipseDetector is the EventDetector that I need, and I’ll try it.