Area formed by the MLC in a TrueBeam accelerator

Hello, I am working with a Varian TrueBeam accelerator and I want to analyze the coincidence of the opening of the mlc between what is indicated by the planning system and those made by the accelerator through the log files that are generated. Therefore, I would like to know if there is any way to know the area that the mlc forms in its opening, either with information from the logfiles or dicom, but I don’t know if there is a function in the Pylinac library; also I would also like to know if it is possible to generate an image of the mlc when opening it through the logfiles.

I appreciate any help you could give me

Until you get a better answer from someone with more background knowledge.
Pylinac comes with a Log Analyzer Module which might be able to do what you are interested in (I never used it, so I am not sure):

It seems that the log files contain both, the planned and the actual MLC positon (actual and expected fluence ).

To get the planned position, another option would be to read the RTPlan file with pydicom.
and extract the leaf positions there.

with kind regards


Thank you very much for the help, I will review the links that you have provided me. It seems that if it is possible to extract both the exact positions and those executed by the accelerator; I just hope that these positions can be graphed in order to obtain the area of the MLC opening.