Fork me on GitHub

Opened 7 years ago

Last modified 7 years ago

#1295 new Bug

from tcl (working in Delphes Standalone) to a card.dat for MadGraph

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

Description

Hello

I have a detector setup that works for Delphes standalone, can I use it from MadGraph as well? May I ask how or for the exact place where this is documented?

Thanks a lot for your help,
Roberto

Attachments (1)

DelphesCard.zip (14.2 KB ) - added by Roberto Franceschini 7 years ago.

Download all attachments as: .zip

Change History (10)

comment:1 by Michele Selvaggi, 7 years ago

I guess you mean you want to run MG5+Pythia8 in one shot.
Although this is more a MG5 related question, maybe have you tried putting your card your MG5 process dir in Cards

You have to first install delphes within madgraph

install Delphes

Then you should replace the delphes_card.dat in Cards in your MG5 process by your card.

Version 0, edited 7 years ago by Michele Selvaggi (next)

comment:2 by Roberto Franceschini, 7 years ago

Thanks for picking this ticket!

Yes, that is what I meant and I have installed Delphes via mg5 prompt already. What I am missing is what to do to have Delphes to use a custom made .tcl detector emulator for which I have file like these in ./cards folder in Delphes main directory

delphes_card_CLICdet.tcl

./CLICdet
|-- CLICdet_BTag_50.tcl
|-- CLICdet_BTag_70.tcl
|-- CLICdet_BTag_90.tcl
|-- CLICdet_BTagging.tcl
|-- CLICdet_JetFlavorAssociation.tcl
|-- CLICdet_JetReco.tcl
`-- CLICdet_TauTagging.tcl

Thanks for helping
Roberto

comment:3 by Michele Selvaggi, 7 years ago

You probably have to:

cp delphes_card_CLICdet.tcl mg5dir/PROCESSNAME/Cards/delphes_card.dat
cp -r CLICdet mg5dir/PROCESSNAME/Cards
Last edited 7 years ago by Michele Selvaggi (previous) (diff)

in reply to:  3 comment:4 by Roberto Franceschini, 7 years ago

Replying to mselvaggi:

You probably have to:

cp delphes_card_CLICdet.tcl mg5dir/PROCESSNAME/Cards/delphes_card.dat
cp -r CLICdet mg5dir/PROCESSNAME/Cards

This has some effect. Indeed now Delphes runs differently from before and laments:

** INFO: initializing module  MuonMomentumSmearing     
Error in <TFormula::Compile>:  Invalid Syntax "*"
** ERROR: Invalid formula.

I am checking with the author of the detector card if this is expected and how to fix it. Thanks for now.

comment:5 by Michele Selvaggi, 7 years ago

If you attach these cards in a tarball I can have a quick look.

by Roberto Franceschini, 7 years ago

Attachment: DelphesCard.zip added

comment:6 by Roberto Franceschini, 7 years ago

comment:7 by Michele Selvaggi, 7 years ago

I can run Delphes with these cards without problem maybe you are using a very old ROOT version/gcc.
The following combination works for me gcc4.9/ ROOT6.08.06.
Can you run Delphes in standalone with those cards? This should be independent of MG5.

Another possiblity is that you inadvertedly modified your cards. Actually the zip file you sent seems corrupt, instead I downloaded the cards from the github repository directly.

comment:8 by Roberto Franceschini, 7 years ago

I have updates to Root6 and replaced MadGraph Delphes with the whole git repo and now it works.
We cannot convert to LHCO because

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

I presume we need to name one branch with the name 'Jet', correct? I will ask the author of the git repo if it is possible to do that.

comment:9 by Roberto Franceschini, 7 years ago

Hello, after some thinking we realized that, at least for CLIC, it is not advisable to enforce a specific jet maker valid for all processes and analyses. So we were wondering if it is possible to add a command line parameter to the root2lhco converter to specify the name of the branch to be used for jets. This parameters should be optional and default to the current 'Jets'. This need to specify which jets to use in the LHCO may be not for just a single use-case (CLIC in this case), so we would like to request if that could be added to the main branch of Delphes rather than in our own forked version. What do you think?

Note: See TracTickets for help on using tickets.