-
Notifications
You must be signed in to change notification settings - Fork 32
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
Problems using gadd to sum GRUT histogram files - ROOT6 #118
Comments
So this is a problem seeing the dictionaries. Did you source the On Tue, Oct 18, 2016 at 9:51 AM, placebosarah [email protected]
|
I source thisgrut.sh beforehand, and I can use grutinizer from the command line successfully. |
ok, I am working on reproducing the error locally. I'll let you know what On Wed, Oct 19, 2016 at 10:53 AM, placebosarah [email protected]
|
Just out of curiosity, can you see/display the histograms in the each file On Wed, Oct 19, 2016 at 10:55 AM, Peter [email protected] wrote:
|
Yes, I can see and display histograms when each file is opened individually. The problems only seem to occur when using gadd. |
can you try: gadd_fast.py -f sumhist_run0033-5.root hist_run0033_test.root and let me know how it works? On Wed, Oct 19, 2016 at 11:01 AM, placebosarah [email protected]
|
Failed again, with exit status -6 ?gadd_fast.py -f sumhist_run0033-5.root hist_run0033_test.root hist_run0034_test.root hist_run0035_test.root Traceback (most recent call last): |
I have failed to reproduce this locally. How big are the hist files you On Oct 19, 2016 11:46 AM, "placebosarah" [email protected] wrote:
|
Or put them some place I can grab them? On Oct 19, 2016 11:46 AM, "placebosarah" [email protected] wrote:
|
The histogram files are about ~6MB each- I've sent you a zipped file by email with the files I've been using. |
With the latest updates to gadd, the problem still persists. The following are my environment variables, are there any quirks that might cause the issue? $ echo $ROOTSYS $ gadd -f sumhist_run0033-5.root hist_run0033_test.root hist_run0034_test.root hist_run0035_test.root |
It looks like there are multiple versions of root in play here. Could run |
I've tried the make clean/make a few times, but it doesn't seem to help here. I'll take a second look at my root version(s) though. |
EDIT: I believe that most of these errors were due to the two versions of ROOT conflicting, but while removing the local version allows the GUI to run, gadd is still failing. Okay, still having trouble with this. |
Could someone point me to the gadd source code? Thanks. |
At the moment, there is no gadd source code used directly. It is a direct copy of the hadd source code, located at The reason why it has this special behavior is so that it is compatible with both root5 and root6. Rather than needing to maintain two separate versions of gadd.cxx, one for root5 and one for root6, we just use whichever one is included with root. |
Hi Sarah,
I did not realize this was still an issue for what ever reason. What do
you mean you have weird paths?
What are the outputs of:
root-config --version
root config --libs
root-config --cflags
echo $LD_LIBRARY_PATH
echo $PATH
?
…On Thu, Dec 1, 2016 at 9:31 AM, Lunderberg ***@***.***> wrote:
At the moment, there is no gadd source code used directly. It is a direct
copy of the hadd source code, located at $ROOTSYS/main/src/hadd.cxx, but
with all references to hadd changed to gadd. The particular command that
generates the gadd.o object file can be found in the makefile by searching
for "gadd.o". This object file is then linked against all the grutinizer
libraries.
The reason why it has this special behavior is so that it is compatible
with both root5 and root6. Rather than needing to maintain two separate
versions of gadd.cxx, one for root5 and one for root6, we just use
whichever one is included with root.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#118 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAacI-Ma8nakMxpp8Zr4K9HNXY8IiwANks5rDtpRgaJpZM4KZ0I0>
.
|
Hi Peter, bash-4.2$ root-config --version |
Hi all, Thanks for the help. |
Hi all,
I'm having difficulties adding histograms using gadd to create sum histograms (*). It seems that there could be some problems with the library linkage using ROOT 6 from what I can tell from ROOT's online forum (https://root.cern.ch/phpBB3/viewtopic.php?t=20923).
I'm using ROOT 6.06/08 and the latest GRUTinizer version, with GCC 4.8.5.
Any suggestions on how to fix this?
Thanks,
Sarah
(*)
gadd sumhist_run0033-5.root hist_run0033_test.root hist_run0034_test.root hist_run0035_test.root
gadd Target file: sumhist_run0033-5.root
gadd Source file 1: hist_run0033_test.root
Warning in TClass::Init: no dictionary for class GH1D is available
Warning in TClass::Init: no dictionary for class GH2D is available
Warning in TClass::Init: no dictionary for class GH2Base is available
gadd Source file 2: hist_run0034_test.root
gadd Source file 3: hist_run0035_test.root
gadd Target path: sumhist_run0033-5.root:/
Error in TBufferFile::ReadClassBuffer: Could not find the StreamerInfo for version 7 of the class TNamed, object skipped at offset 81
Error in TBufferFile::CheckByteCount: object of class TNamed read too few bytes: 2 instead of 524
Error in TBufferFile::ReadClassBuffer: class: TAttFill, attempting to access a wrong version: 2002, object skipped at offset 607
Error in TBufferFile::CheckByteCount: object of class TH1 read too few bytes: 767 instead of 16550
Error in TBufferFile::CheckByteCount: object of class TH1D read too few bytes: 16560 instead of 16572
Error in TFileMerger::MergeRecursive: TKey and object retrieve disagree on type (GH1D vs TH1D). Continuing with TH1D.
(similar errors continue for some time...)
The text was updated successfully, but these errors were encountered: