Xrd error on Grid

Hello!

I am new to ROOT and Grid and I have ran into this problem when submitting a ROOT macro onto PanDA. The macro is as attached. The macro is intended to analyze D3PDs and has been tested locally. While PanDA calls the job “finished”, it does not produce the output root file which contains all the histograms made. Instead, when looking into the log file, the ROOT outputs the following when executing the macro. I am not sure what this error means and how to fix it. So far googling yields no results either. Help? Please?

100615 13:07:55 4794 Xrd: XrdClientMessage::ReadRaw: Failed to read header (8 bytes).
100615 13:07:55 4794 Xrd: XrdClientMessage::ReadRaw: Failed to read header (8 bytes).
100615 13:07:55 4794 Xrd: XrdClientMessage::ReadRaw: Failed to read header (8 bytes).
100615 13:07:55 4794 Xrd: XrdClientMessage::ReadRaw: Failed to read header (8 bytes).
100615 13:07:55 4794 Xrd: XrdClientMessage::ReadRaw: Failed to read header (8 bytes).
100615 13:07:56 4794 Xrd: XrdClientMessage::ReadRaw: Failed to read header (8 bytes).
100615 13:08:22 001 Xrd: CheckErrorStatus: Server [atl-prod04.slac.stanford.edu:1094] declared: session not found(error code: 3011)
100615 13:08:48 001 Xrd: CheckErrorStatus: Server [atl-prod04.slac.stanford.edu:1094] declared: session not found(error code: 3011)
100615 13:09:38 4794 Xrd: XrdClientMessage::ReadRaw: Failed to read header (8 bytes).
100615 13:10:07 4794 Xrd: XrdClientMessage::ReadRaw: Failed to read header (8 bytes).
100615 13:10:08 001 Xrd: CheckErrorStatus: Server [atl-prod04.slac.stanford.edu:1094] declared: session not found(error code: 3011)
100615 13:10:33 001 Xrd: CheckErrorStatus: Server [atl-prod04.slac.stanford.edu:1094] declared: session not found(error code: 3011)
100615 13:10:33 4794 Xrd: XrdClientMessage::ReadRaw: Failed to read header (8 bytes).
100615 13:10:59 001 Xrd: CheckErrorStatus: Server [atl-prod04.slac.stanford.edu:1094] declared: session not found(error code: 3011)
100615 13:11:47 001 Xrd: CheckErrorStatus: Server [atl-prod04.slac.stanford.edu:1094] declared: session not found(error code: 3011)
100615 13:12:07 4794 Xrd: XrdClientMessage::ReadRaw: Failed to read header (8 bytes).
100615 13:12:15 001 Xrd: CheckErrorStatus: Server [atl-prod04.slac.stanford.edu:1094] declared: session not found(error code: 3011)
Griddijetd3pd_AllCuts.C (5.95 KB)