-
Notifications
You must be signed in to change notification settings - Fork 12
Strip Pairing Chi Square Algorithm Updated #61
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
Strip Pairing Chi Square Algorithm Updated #61
Conversation
…p so I can do pull request
… and hit population
|
Great work! Some comments:
//Set flags for multiple hits on a single strip Should be: There are a few more instances
m_Mode->Add("Andreas's algorithm"); // Give your's a name
S<<"Red Chi^2: "<<m_RedChiSquare<<endl; |
|
@zoglauer Hi Andreas! I think all the comments have been implemented. And yes, pull request #13 should now be obsolete. I'm a bit confused on the different versions for the StreamDAT functions. I added a version 3 that reads out the LV/HV energies for each hit, but is there a way to toggle between versions? Or does which version we're on have to be hard coded in? |
|
Adding version 3 is good. It should always write the highest version, but read all lower versions for backwards compatibility. |
|
(1) //! Set flag for multiple hits on a single strip on LV side But the same info is in the MHit's. (2) |
|
@zoglauer I implemented the new edits! I removed the "Multiple hits on a single strip" flags from MReadOutAssembly, so now they're just on the MHit level. I then loop over all the hits in order to write the "BD" flag when reading out the events to a .dat or .evta file. Also, I checked whether it's actually using Version 3 to write to the .dat files, and it doesn't seem to be working. In MModuleEventSaver it does: So I think only Version 1 of StreamDat is actually called. Should I just change this to Version 3? |
|
Yes change it to version 3 |
|
@zoglauer Okay, changed it to Version 3 and checked that it's reading out correctly. Now the .dat format should be: With that, I believe all the comments have been implemented! |
* Merging select files from StripPairingTesting into StripPairingCleanUp so I can do pull request * Clean up comments. Remove long debugging statements for readability * Calling charge trapping correction function in chi square calculation and hit population * Cleaning up comments * Reformatting strip pairing module * Update copywrite. Change name of module. * Fixing documentation in header files * Change how strip pairing chi square is read out to .dat file * Adding comments for all the nested vectors * Adding new version to StreamDat that reads out LV and HV energy of each hit * Adding Sean's new strip pairing expos to chi square version of strip pairing * Changing all instances of RedChiSquare to ReducedChiSquare for clarity * Flags for multiple hits on a single strip are now defined on the MHit level * Initializing m_StripHitMultipleTimesX and m_StripHitMultipleTimesY to false * Changing StreamDAT version from Version 1 to Version 3 * Rebased and fixed merge conflict with strip pairing --------- Co-authored-by: Julian Gerber <jmgerber@ucsd.edu>
* Merging select files from StripPairingTesting into StripPairingCleanUp so I can do pull request * Clean up comments. Remove long debugging statements for readability * Calling charge trapping correction function in chi square calculation and hit population * Cleaning up comments * Reformatting strip pairing module * Update copywrite. Change name of module. * Fixing documentation in header files * Change how strip pairing chi square is read out to .dat file * Adding comments for all the nested vectors * Adding new version to StreamDat that reads out LV and HV energy of each hit * Adding Sean's new strip pairing expos to chi square version of strip pairing * Changing all instances of RedChiSquare to ReducedChiSquare for clarity * Flags for multiple hits on a single strip are now defined on the MHit level * Initializing m_StripHitMultipleTimesX and m_StripHitMultipleTimesY to false * Changing StreamDAT version from Version 1 to Version 3 * Rebased and fixed merge conflict with strip pairing --------- Co-authored-by: Julian Gerber <jmgerber@ucsd.edu>
Summary of Changes
Strip Pairing Algorithm:
Flags:
Event Filter:
GUIs:
Class Attributes: