-
Notifications
You must be signed in to change notification settings - Fork 20
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
hpstr cannot process more than one input file. #107
Comments
|
This isn't an issue with EventFile. It's an issue with how EventFile is used within process. Before making major changes here, please propose a solution at the software meeting. This could potentially end up breaking how the framework completely works so I want to be careful. FYI, we have multiple file IO working on LDMX using the same framework i.e. EventFile. I can just port this code over. |
It IS an issue with EventFile, at least how it is currently implemented in hpstr. Yes, of course we can modify EventFile to do whatever we want, that is not the point. This is not the LDMX framework. I am sure you had a good reason for the more complicated EventFile that you have there, but I fail to see how this would help the hpstr code, if all we really need to do is open an LCIO file and read events from it. Can you please explain the purpose of using EventFile in this way and how that would benefit hpstr, since I really see no reason why this needs to become some complicated class? |
The intent is to run hpstr once per file and hadd after if you want to concatenate multiple files. I would categorize this as a fancy feature that would be nice, but is not necessary. If we have something we absolutely need to do this for, I will make it work, but I don't really think this is really a necessary feature. |
It is nearly trivial to fix. |
hadd does work on TTree objects, I have been hadding them for probably nearly 10 years, as long as they have the same structure. hadding histograms takes seconds, not such a huge inefficiency that anyone notices. The only hurdle is typing one more command... |
In the end, running on multiple files in parallel and then hadding the histograms output is FASTER than filling the histos serially. Parallel processing is tough to beat. |
The only "inefficiency" is in the number of command line commands that need to be issued. |
There is an issue with the TH1D histogram that counts events, which is destroyed when the first file is processed.
The text was updated successfully, but these errors were encountered: