New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
InputStreamFromROOTFile changes for virtual crystals #617
InputStreamFromROOTFile changes for virtual crystals #617
Conversation
work in progress |
4417164
to
962ac45
Compare
This might be working now for the mCT with some limitations/caveats:
Things to do therefore:
|
@@ -56,6 +66,11 @@ InputStreamFromROOTFile::set_defaults() | |||
low_energy_window = 0.f; | |||
up_energy_window = 1000.f; | |||
read_optional_root_fields=false; | |||
crystal_repeater_x = -1; | |||
crystal_repeater_y = -1; | |||
crystal_repeater_z = -1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this really need to be -1? STIR can only handle cases right now where crystal_repeater_z = 1.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've only moved this code from the original location in the derived classes, so no change there. I didn't check if there's actually any error checking or handling of defaults on those values. I agree it seems more logical to let them default to 1 but it doesn't seem high priority
could test ROOT interpretation in more detail by using for instance
A simple thing to do would be to pipe the output of this to a file with a version that is known to work, add the file to the |
I unlisted the same root file from a D690 scanner with |
…OTFile Also disabled some unused (and incorrect!) InputStreamFromROOTFile* constructors
but it is not yet used
WARNING: backwards incompatible change for scanners with virtual crystals - add set_num_virtual_*axial_crystals_per_block to Scanner (although it currently only performs a check if it's consistent with the hardwired definitions) - add new keywords in hroot to call set_num_virtual_*axial_crystals_per_block - modify InputStreamFromROOT::get_num_*axial_crystals_per_block to take virtual crystals into account.
aba5c59
to
b340311
Compare
I've updated the doc and rebased on |
2 Travis jobs failed, nothing to do with us (networking error and unknown error). Merging. |
Closing #357