Fork me on GitHub

Opened 9 years ago

Last modified 9 years ago

#434 new Bug

LHCO conversion fault

Reported by: fan Owned by:
Priority: minor Milestone:
Component: Delphes code Version: Delphes 3
Keywords: Cc:

Description (last modified by Pavel Demin)

Hi,

I am attempting to analyze the 100 TeV pp samples for the FHC studies that are listed here:

http://www.snowmass2013.org/tiki-index.php?page=Energy_Frontier_FastSimulation

I have downloaded v3.0.9 of Delphes from

https://github.com/zhenbinwu/CMSUpgrade/tree/master/Delphes-3.0.9

and I'm using ROOT 5.34,but conversion this file to LHCO file using root2lhco encountered following error:

** Reading /home/dingran/example_root2lhco/B-4p-0-1-v1510_14TEV_NoPileUp_9762392.root
   #  typ      eta      phi      pt    jmas   ntrk   btag  had/em   dum1   dum2
** Input file contains 46888 events
** WARNING: cannot access branch 'Track', return NULL pointer
** WARNING: cannot access branch 'Tower', return NULL pointer

 *** Break *** segmentation violation



===========================================================
There was a crash.
This is the entire stack trace of all threads:
===========================================================
#0  0x00007f8b53986dde in waitpid () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007f8b5390c36e in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#2  0x00007f8b5745d947 in TUnixSystem::StackTrace() () from /home/dingran/root/lib/libCore.so
#3  0x00007f8b57460233 in TUnixSystem::DispatchSignals(ESignals) () from /home/dingran/root/lib/libCore.so
#4  <signal handler called>
#5  0x00000000005db098 in LHCOWriter::LHCOWriter(ExRootTreeReader*, _IO_FILE*) ()
#6  0x0000000000472a35 in main ()
===========================================================


The lines below might hint at the cause of the crash.
If they do not help you then please submit a bug report at
http://root.cern.ch/bugs. Please post the ENTIRE stack trace
from above as an attachment in addition to anything else
that might help us fixing this issue.
===========================================================
#5  0x00000000005db098 in LHCOWriter::LHCOWriter(ExRootTreeReader*, _IO_FILE*) ()
#6  0x0000000000472a35 in main ()
===========================================================

It seems the root file do not contain the 'Track' and 'Tower' branches,I appreciate that if you have any suggestion.
PS:my root file is:B-4p-0-1-v1510_14TEV_NoPileUp_9762392.root

thanks

Change History (4)

comment:1 by Pavel Demin, 9 years ago

Description: modified (diff)

A similar problem was reported in ticket #340:

https://cp3.irmp.ucl.ac.be/projects/delphes/ticket/340

The root2lhco converter needs the Track and Tower branches.

If the root file that you need to convert to LHCO does not contain these branches, the easiest solution would be to regenerate this file with all the required branches enabled.

In more recent Delphes releases, lhco2root converter checks if the input ROOT file contains all required branches. Otherwise, it cleanly exits with the following error message:

** WARNING: cannot access branch 'Track', return NULL pointer
** ERROR: ROOT file doesn't contain all required branches

comment:2 by fan, 9 years ago

Thanks for answering,but since we do not have the .hep file at the moment,is there some way to add these missing branches to the existing root file directly?Or,can I just change root2lhco file to dismisses these branches?

fan

comment:3 by Pavel Demin, 9 years ago

You can try to modify root2lhco.cpp and remove all the code blocks where tracks and towers are used. They are used to calculate muon isolation and number of tracks in jets.

comment:4 by fan, 9 years ago

OK,I just deleted the track and towers,the result is acceptable,thanks

Note: See TracTickets for help on using tickets.