The tool making such a correction is called barycent. Note that it re-writes the input file, so it may be worth to copy the original file first. Below we show an example for 4U 1700-377, Science Window number 011800900010 and observation group identification ("ogid" parameter of og_create) equal to "OGID":
cd $REP_BASE_PROD/obs/OGID cp scw/011800900010.001/jmx2_src_lc.fits jmx2_src_lc_011800900010_bar.fits barycent inCOL=TIME outCOL=TIME \ outDOL="jmx2_src_lc_011800900010_bar.fits[2]" \ inDOL='' auxDOL="../../aux/adp/0118.001/orbit_historic.fits" \ raOBJ=255.9865 decOBJ=-37.84414In the example we have applied barycentrisation to the first energy range of 4U 1700-377 that happens to be in the extension number 2 (``[2]''). Thus the extension you give as ``outDOL'' depends on the source and energy range you need to correct. The overview of the content of each extension is in the input file jmx2_src_lc.fits, i.e. the first extension (GROUPING).
Note that barycent tool does not use group concept, and is used directly with the lightcurve, but for it successful work the REP_BASE_PROD variable should be set and point to the place in which there is an IC directory, e.g. directory_of_ic_files_installation__/ic, or a symbolic link to it (section 6.1).
See more details on barycent tool in the Data Analysis section of [1].