How can I calculate the optical absorption of each layer in a multilayer structure?

How can I calculate the optical absorption of each layer in a multilayer structure?

What does r-imaginary, r-real, t-imaginary, and t-real mean in the output file after simulating a multilayer structure?

(Does that mean the r and t coefficient of the top layer? Or the equivalent r and t coefficient of the whole structure? )

Thanks!