I would like to know if there is a way to extract information like the pixel pitch, global detector position of a detector in a root file via code. Needless to say, it is exhausting to set const global variables and change them according to the root file at hand. Could someone demonstrate how that could be done? Thank you very much in advance.
Kind Regards,
Andreas
PS: I am aware of the Detector.hpp header file, which contains all of the methods that I would like to use, but I do not know how to create a detector class instance in code that points to my detector in the configuration. There is the alternative of working with
ifstream and doing everything manually but was wondering if there is any neat allpix based shortcut.
We store the full configuration of your simulation in the output root file - it’s even possible to recover the original configuration files from a single data file. I guess you can use that information with a bit of parsing to get all info you need.