OK, You call Object ID as Gbuffer object ID, great.
Now reading Your first message again, I dont understand the problem:
You can assign object ID for each RailClone object just just like regular object:
If You want, You can speed up the manual process with maxscript line:
for i=1 to selection.count do selection.gbufferchannel = i