Opened 10 years ago
Closed 10 years ago
#318 closed Bug (fixed)
Snowmass card not working
Reported by: | Adarsh Pyarelal | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | Delphes code | Version: | Delphes 3 |
Keywords: | Snowmass | Cc: |
Description
Hi,
I posted this bug to the MadGraph Launchpad page (https://bugs.launchpad.net/mg5amcnlo/+bug/1363280) but they directed me to come here...here is the post I had originally made:
So I wanted to use the Snowmass detector card found here:
http://mc.hep.anl.gov/asc/snowmass2013/delphes36/packages/delphes_card_Snowmass_NoPileUp_updateMay8_fixed.tcl)
to generate some events, but it does not work with the current version of Delphes.
I get the error messages:
ERROR: can't access input list 'Calorimeter/eflowTowers' in module 'EFlowMerger'
Reading delphes.root
Error in <TChain::LoadTree>: Cannot find tree with name Delphes in file delphes.root
Input file contains 0 events
Exiting...
From looking around it seems that this is a problem with the newer version of Delphes. However, when I tried to download the older version of Delphes (3.0.9), and type 'make' in the folder, I get this error:
1 error generated.
make: * [tmp/external/fastjet/plugins/D0RunIICone/D0RunIIConePlugin.o] Error 1
So I copied the D0RunIICone folder (and the DelphesSTDHEPReader.cc and .h files) from the newest version of Delphes to the old version of Delphes (3.0.9) and recompiled, and it seemed like there wasn't a problem. But now after running MadGraph 5 and Pythia with this Snowmass detector card, Delphes does not seem to work still, I get the following weird stuff in the delphes log
INFO: initializing module TreeWriter
Reading pythia_events.hep
################################################################ (377.42%)
I figured that I should not get something more than 100%!
Anyway, could you please help me fix this problem? Thank you!
Attachments (1)
Change History (5)
by , 10 years ago
Attachment: | delphes_card_Snowmass_NoPileUp_updateMay8_fixed_V2.tcl added |
---|
comment:1 by , 10 years ago
comment:2 by , 10 years ago
Hi,
Thank you, that works and now I get a Delphes- ROOT file just fine. One thing though: when MadGraph tries to convert the Delphes-ROOT file to an LHCO file, it doesn't work - I get the following error message in the delphes_log file:
Exiting...
Reading delphes.root
Input file contains 23502 events
WARNING: cannot access branch 'Tower', return NULL pointer
* Break * segmentation violation
Generating stack trace...
0x00007fff8bd5c5fd in start (in libdyld.dylib) + 1
This used to happen when the Tower branch was commented out at the end of the detector card, but in this case none of the branches are commented out, so do you know why this might happen? I need the LHCO files since I will be generating a huge number of events and they take up significantly less space than the root file (2 MB as compared to a 60 MB ROOT file)
comment:3 by , 10 years ago
As a quick fix, I went into the root2lhco.cpp file and commented out everything that had to do with the 'Tower' branch. Things seem to be working fine now.
comment:4 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Hi,
your card does not work on 3.1.2 because the Calorimeter module now outputs two Tower collections (NeutralHadrons and Photons).
In order to fix this one needs to merge these collections before doing something else.
I have added the mentioned fix to the card you mentioned. Can you try if problem is solved?
Michele