matching plots

Asked by Mukesh Kumar

Dear All,

I am facing following problems in MadGraph5_v1_5_14:

1) I am trying to look for the plots after matching but following error comes :

Create matching plots for Pythia
mv: cannot stat ‘DJR*.eps’: No such file or directory
EPSTOSMTH 2.8, 2006/05/09 - Copyright 1998-2001 by Sebastian Rahtz et al.
!!! Error: 'DJR?.ps' does not exist!

Apart from the matching plots, I got the other plots on my laptop OS linux-mint16.

But on CERN-ATLAS computer (which I am accessing remotely) with same cards
it is opposite, I got the matching plots but not the others not even the parton level plots.

2) Somehow through sub-command install MadAnalysis/pythia-pgs/ExRootAnalysis ...etc,
I am getting the error:

Error detected in sub-command install ExRootAnalysis
write debug file MG5_debug
If you need help with this issue please contact us on https://answers.launchpad.net/madgraph5
MadGraph5Error : Impossible to connect any of us servers.
             Please check your internet connection or retry later

However my internet in working fine.

3) So I get ExRootAnalysis from the web and get the following installation error:

>> Generating tmp/src/ExRootAnalysisDict.cc
ERROR in cling::CIFactory::createCI():
  resource directory /etc/root/cling/lib/clang/3.4 not found!
input_line_1:1:10: fatal error: 'cling/Interpreter/RuntimeUniverse.h' file not found
#include "cling/Interpreter/RuntimeUniverse.h"
         ^
Error: Error loading the default header files.
make: *** [tmp/src/ExRootAnalysisDict.cc] Error 1

Could anyone please help me to get rid of these problems.

Thank you.

cheers,

Mukesh

Question information

Language:
English Edit question
Status:
Answered
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#1

Dear Mukesh,

Please be carefull to submit your bug report to the correct project on launchpad.
Looks like the "Launchpad Team" was kind enough to re-assign the bug report to us.

For your problem 1 and 3, I guess that this is linked to a root instalation.
Is root install? is ROOTSYS , LD_LIBRARY_PATH defined correctly?

For the internet access, that's weird our clusters are up, so this should be something local (a firewault?) preventing to code to access internet.

Cheers,

Olivier

Revision history for this message
Rafael Marcelino (rafaelmarcelinocs-o) said :
#2

I got exactly this problem:

>1) I am trying to look for the plots after matching but following error comes :
>
>Create matching plots for Pythia
>mv: cannot stat ‘DJR*.eps’: No such file or directory
>EPSTOSMTH 2.8, 2006/05/09 - Copyright 1998-2001 by Sebastian Rahtz et al.
!>!! Error: 'DJR?.ps' does not exist!

But in my case i got all paths and root set correctly. Got ExrootAnalyses intalled, as well MadAnalysis and td for 64 bits with ia32 libs. I got all the plots after pythia run but dont get the djr plots. Got all the plots for parton run too.

I have madanalysis5 here and I was using him for djr plots, but unfortunately i did discovery tha some routines of him are broken for djr plots. So that's why I need to get him from mad5.

Thanks

Revision history for this message
Mihailo Backovic (mbackovic) said :
#3

Same here. I get all the plots except the matching plot. Using v.2.2.2. The banner is attached. The error I get is:

INFO: Create matching plots for Pythia
mv: rename DJR*.eps to ../HTML/run_01/plots_pythia_tag_1/DJR*.ps: No such file or directory
EPSTOSMTH 2.8, 2006/05/09 - Copyright 1998-2001 by Sebastian Rahtz et al.
!!! Error: 'DJR?.ps' does not exist!

No obvious errors in the Pythia Log file.

<LesHouchesEvents version="3.0">
<header>
<!--
#*********************************************************************
# *
# MadGraph5_aMC@NLO *
# *
# Going Beyond *
# *
# http://madgraph.hep.uiuc.edu *
# http://madgraph.phys.ucl.ac.be *
# http://amcatnlo.cern.ch *
# *
# The MadGraph5_aMC@NLO team *
# *
#....................................................................*
# *
# This file contains all the information necessary to reproduce *
# the events generated: *
# *
# 1. software version *
# 2. proc_card : code generation info including model *
# 3. param_card : model primary parameters in the LH format *
# 4. run_card : running parameters (collider and cuts) *
# 5. pythia_card : present only if pythia has been run *
# 6. pgs_card : present only if pgs has been run *
# 7. delphes_cards : present only if delphes has been run *
# *
# *
#*********************************************************************
-->
<MGVersion>
2.2.2
</MGVersion>
<MG5ProcCard>
#************************************************************
#* MadGraph5_aMC@NLO *
#* *
#* * * *
#* * * * * *
#* * * * * 5 * * * * *
#* * * * * *
#* * * *
#* *
#* *
#* VERSION 2.2.2 2014-11-06 *
#* *
#* The MadGraph5_aMC@NLO Development Team - Find us at *
#* https://server06.fynu.ucl.ac.be/projects/madgraph *
#* *
#************************************************************
#* *
#* Command File for MadGraph5_aMC@NLO *
#* *
#* run as ./bin/mg5_aMC filename *
#* *
#************************************************************
set group_subprocesses Auto
set ignore_six_quark_processes False
set loop_optimized_output True
set complex_mass_scheme False
import model sm
define p = g u c d s u~ c~ d~ s~
define j = g u c d s u~ c~ d~ s~
define l+ = e+ mu+
define l- = e- mu-
define vl = ve vm vt
define vl~ = ve~ vm~ vt~
generate p p > t t~ @1
add process p p > t t~ j @2
output tt_test
</MG5ProcCard>
<MGProcCard>
#*********************************************************************
# MadGraph/MadEvent *
# http://madgraph.hep.uiuc.edu *
# *
# proc_card.dat *
#*********************************************************************
# *
# This Files is generated by MADGRAPH 5 *
# *
# WARNING: This Files is generated for MADEVENT (compatibility issue)*
# This files is NOT a valid MG4 proc_card.dat *
# Running this in MG4 will NEVER reproduce the result of MG5*
# *
#*********************************************************************
#*********************************************************************
# Process(es) requested : mg2 input *
#*********************************************************************
# Begin PROCESS # This is TAG. Do not modify this line
p p > t t~ @1 #Process
# Be carefull the coupling are here in MG5 convention

end_coup # End the couplings input

done # this tells MG there are no more procs
# End PROCESS # This is TAG. Do not modify this line
#*********************************************************************
# Model information *
#*********************************************************************
# Begin MODEL # This is TAG. Do not modify this line
sm
# End MODEL # This is TAG. Do not modify this line
#*********************************************************************
# Start multiparticle definitions *
#*********************************************************************
# Begin MULTIPARTICLES # This is TAG. Do not modify this line

# End MULTIPARTICLES # This is TAG. Do not modify this line
</MGProcCard>
<MGRunCard>
#*********************************************************************
# MadGraph5_aMC@NLO *
# *
# run_card.dat MadEvent *
# *
# This file is used to set the parameters of the run. *
# *
# Some notation/conventions: *
# *
# Lines starting with a '# ' are info or comments *
# *
# mind the format: value = variable ! comment *
#*********************************************************************
#
#*******************
# Running parameters
#*******************
#
#*********************************************************************
# Tag name for the run (one word) *
#*********************************************************************
  tag_1 = run_tag ! name of the run
#*********************************************************************
# Run to generate the grid pack *
#*********************************************************************
  .false. = gridpack !True = setting up the grid pack
#*********************************************************************
# Number of events and rnd seed *
# Warning: Do not generate more than 1M events in a single run *
# If you want to run Pythia, avoid more than 50k events in a run. *
#*********************************************************************
  10000 = nevents ! Number of unweighted events requested
 21 = iseed ! rnd seed (0=assigned automatically=default))
#*********************************************************************
# Collider type and energy *
# lpp: 0=No PDF, 1=proton, -1=antiproton, 2=photon from proton, *
# 3=photon from electron *
#*********************************************************************
        1 = lpp1 ! beam 1 type
        1 = lpp2 ! beam 2 type
     6500 = ebeam1 ! beam 1 total energy in GeV
     6500 = ebeam2 ! beam 2 total energy in GeV
#*********************************************************************
# Beam polarization from -100 (left-handed) to 100 (right-handed) *
#*********************************************************************
        0 = polbeam1 ! beam polarization for beam 1
        0 = polbeam2 ! beam polarization for beam 2
#*********************************************************************
# PDF CHOICE: this automatically fixes also alpha_s and its evol. *
#*********************************************************************
 'nn23lo1' = pdlabel ! PDF set
 230000 = lhaid ! if pdlabel=lhapdf, this is the lhapdf number
#*********************************************************************
# Renormalization and factorization scales *
#*********************************************************************
 F = fixed_ren_scale ! if .true. use fixed ren scale
 F = fixed_fac_scale ! if .true. use fixed fac scale
 91.1880 = scale ! fixed ren scale
 91.1880 = dsqrt_q2fact1 ! fixed fact scale for pdf1
 91.1880 = dsqrt_q2fact2 ! fixed fact scale for pdf2
 1 = scalefact ! scale factor for event-by-event scales
#*********************************************************************
# Matching - Warning! ickkw > 1 is still beta
#*********************************************************************
 1 = ickkw ! 0 no matching, 1 MLM, 2 CKKW matching
 1 = highestmult ! for ickkw=2, highest mult group
 1 = ktscheme ! for ickkw=1, 1 Durham kT, 2 Pythia pTE
 1 = alpsfact ! scale factor for QCD emission vx
 F = chcluster ! cluster only according to channel diag
 T = pdfwgt ! for ickkw=1, perform pdf reweighting
 5 = asrwgtflavor ! highest quark flavor for a_s reweight
 T = clusinfo ! include clustering tag in output
 3.0 = lhe_version ! Change the way clustering information pass to shower.
#*********************************************************************
#**********************************************************
#
#**********************************************************
# Automatic ptj and mjj cuts if xqcut > 0
# (turn off for VBF and single top processes)
#**********************************************************
   T = auto_ptj_mjj ! Automatic setting of ptj and mjj
#**********************************************************
#
#**********************************
# BW cutoff (M+/-bwcutoff*Gamma)
#**********************************
  15 = bwcutoff ! (M+/-bwcutoff*Gamma)
#**********************************************************
# Apply pt/E/eta/dr/mij cuts on decay products or not
# (note that etmiss/ptll/ptheavy/ht/sorted cuts always apply)
#**********************************************************
   T = cut_decays ! Cut decay products
#*************************************************************
# Number of helicities to sum per event (0 = all helicities)
# 0 gives more stable result, but longer run time (needed for
# long decay chains e.g.).
# Use >=2 if most helicities contribute, e.g. pure QCD.
#*************************************************************
   0 = nhel ! Number of helicities used per event
#*******************
# Standard Cuts
#*******************
#
#*********************************************************************
# Minimum and maximum pt's (for max, -1 means no cut) *
#*********************************************************************
 20 = ptj ! minimum pt for the jets
  0 = ptb ! minimum pt for the b
 10 = pta ! minimum pt for the photons
 10 = ptl ! minimum pt for the charged leptons
  0 = misset ! minimum missing Et (sum of neutrino's momenta)
  0 = ptheavy ! minimum pt for one heavy final state
 1.0 = ptonium ! minimum pt for the quarkonium states
 -1 = ptjmax ! maximum pt for the jets
 -1 = ptbmax ! maximum pt for the b
 -1 = ptamax ! maximum pt for the photons
 -1 = ptlmax ! maximum pt for the charged leptons
 -1 = missetmax ! maximum missing Et (sum of neutrino's momenta)
#*********************************************************************
# Minimum and maximum E's (in the center of mass frame) *
#*********************************************************************
  0 = ej ! minimum E for the jets
  0 = eb ! minimum E for the b
  0 = ea ! minimum E for the photons
  0 = el ! minimum E for the charged leptons
 -1 = ejmax ! maximum E for the jets
 -1 = ebmax ! maximum E for the b
 -1 = eamax ! maximum E for the photons
 -1 = elmax ! maximum E for the charged leptons
#*********************************************************************
# Maximum and minimum absolute rapidity (for max, -1 means no cut) *
#*********************************************************************
   5 = etaj ! max rap for the jets
  -1 = etab ! max rap for the b
 2.5 = etaa ! max rap for the photons
 2.5 = etal ! max rap for the charged leptons
 0.6 = etaonium ! max rap for the quarkonium states
   0 = etajmin ! min rap for the jets
   0 = etabmin ! min rap for the b
   0 = etaamin ! min rap for the photons
   0 = etalmin ! main rap for the charged leptons
#*********************************************************************
# Minimum and maximum DeltaR distance *
#*********************************************************************
 0.4 = drjj ! min distance between jets
 0 = drbb ! min distance between b's
 0.4 = drll ! min distance between leptons
 0.4 = draa ! min distance between gammas
 0 = drbj ! min distance between b and jet
 0.4 = draj ! min distance between gamma and jet
 0.4 = drjl ! min distance between jet and lepton
 0 = drab ! min distance between gamma and b
 0 = drbl ! min distance between b and lepton
 0.4 = dral ! min distance between gamma and lepton
 -1 = drjjmax ! max distance between jets
 -1 = drbbmax ! max distance between b's
 -1 = drllmax ! max distance between leptons
 -1 = draamax ! max distance between gammas
 -1 = drbjmax ! max distance between b and jet
 -1 = drajmax ! max distance between gamma and jet
 -1 = drjlmax ! max distance between jet and lepton
 -1 = drabmax ! max distance between gamma and b
 -1 = drblmax ! max distance between b and lepton
 -1 = dralmax ! maxdistance between gamma and lepton
#*********************************************************************
# Minimum and maximum invariant mass for pairs *
# WARNING: for four lepton final state mmll cut require to have *
# different lepton masses for each flavor! *
#*********************************************************************
 0 = mmjj ! min invariant mass of a jet pair
 0 = mmbb ! min invariant mass of a b pair
 0 = mmaa ! min invariant mass of gamma gamma pair
 0 = mmll ! min invariant mass of l+l- (same flavour) lepton pair
 -1 = mmjjmax ! max invariant mass of a jet pair
 -1 = mmbbmax ! max invariant mass of a b pair
 -1 = mmaamax ! max invariant mass of gamma gamma pair
 -1 = mmllmax ! max invariant mass of l+l- (same flavour) lepton pair
#*********************************************************************
# Minimum and maximum invariant mass for all letpons *
#*********************************************************************
 0 = mmnl ! min invariant mass for all letpons (l+- and vl)
 -1 = mmnlmax ! max invariant mass for all letpons (l+- and vl)
#*********************************************************************
# Minimum and maximum pt for 4-momenta sum of leptons *
#*********************************************************************
 0 = ptllmin ! Minimum pt for 4-momenta sum of leptons(l and vl)
 -1 = ptllmax ! Maximum pt for 4-momenta sum of leptons(l and vl)
#*********************************************************************
# Inclusive cuts *
#*********************************************************************
 0 = xptj ! minimum pt for at least one jet
 0 = xptb ! minimum pt for at least one b
 0 = xpta ! minimum pt for at least one photon
 0 = xptl ! minimum pt for at least one charged lepton
#*********************************************************************
# Control the pt's of the jets sorted by pt *
#*********************************************************************
 0 = ptj1min ! minimum pt for the leading jet in pt
 0 = ptj2min ! minimum pt for the second jet in pt
 0 = ptj3min ! minimum pt for the third jet in pt
 0 = ptj4min ! minimum pt for the fourth jet in pt
 -1 = ptj1max ! maximum pt for the leading jet in pt
 -1 = ptj2max ! maximum pt for the second jet in pt
 -1 = ptj3max ! maximum pt for the third jet in pt
 -1 = ptj4max ! maximum pt for the fourth jet in pt
 0 = cutuse ! reject event if fails any (0) / all (1) jet pt cuts
#*********************************************************************
# Control the pt's of leptons sorted by pt *
#*********************************************************************
 0 = ptl1min ! minimum pt for the leading lepton in pt
 0 = ptl2min ! minimum pt for the second lepton in pt
 0 = ptl3min ! minimum pt for the third lepton in pt
 0 = ptl4min ! minimum pt for the fourth lepton in pt
 -1 = ptl1max ! maximum pt for the leading lepton in pt
 -1 = ptl2max ! maximum pt for the second lepton in pt
 -1 = ptl3max ! maximum pt for the third lepton in pt
 -1 = ptl4max ! maximum pt for the fourth lepton in pt
#*********************************************************************
# Control the Ht(k)=Sum of k leading jets *
#*********************************************************************
 0 = htjmin ! minimum jet HT=Sum(jet pt)
 -1 = htjmax ! maximum jet HT=Sum(jet pt)
 0 = ihtmin !inclusive Ht for all partons (including b)
 -1 = ihtmax !inclusive Ht for all partons (including b)
 0 = ht2min ! minimum Ht for the two leading jets
 0 = ht3min ! minimum Ht for the three leading jets
 0 = ht4min ! minimum Ht for the four leading jets
 -1 = ht2max ! maximum Ht for the two leading jets
 -1 = ht3max ! maximum Ht for the three leading jets
 -1 = ht4max ! maximum Ht for the four leading jets
#***********************************************************************
# Photon-isolation cuts, according to hep-ph/9801442 *
# When ptgmin=0, all the other parameters are ignored *
# When ptgmin>0, pta and draj are not going to be used *
#***********************************************************************
   0 = ptgmin ! Min photon transverse momentum
 0.4 = R0gamma ! Radius of isolation code
 1.0 = xn ! n parameter of eq.(3.4) in hep-ph/9801442
 1.0 = epsgamma ! epsilon_gamma parameter of eq.(3.4) in hep-ph/9801442
 .true. = isoEM ! isolate photons from EM energy (photons and leptons)
#*********************************************************************
# WBF cuts *
#*********************************************************************
 0 = xetamin ! minimum rapidity for two jets in the WBF case
 0 = deltaeta ! minimum rapidity for two jets in the WBF case
#*********************************************************************
# KT DURHAM CUT *
#*********************************************************************
 -1 = ktdurham
 0.4 = dparameter
#*********************************************************************
# maximal pdg code for quark to be considered as a light jet *
# (otherwise b cuts are applied) *
#*********************************************************************
 4 = maxjetflavor ! Maximum jet pdg code
#*********************************************************************
# Jet measure cuts *
#*********************************************************************
 20 = xqcut ! minimum kt jet measure between partons
#*********************************************************************
#
#*********************************************************************
# Store info for systematics studies *
# WARNING: If use_syst is T, matched Pythia output is *
# meaningful ONLY if plotted taking matchscale *
# reweighting into account! *
#*********************************************************************
   F = use_syst ! Enable systematics studies
#
#**************************************
# Parameter of the systematics study
# will be used by SysCalc (if installed)
#**************************************
#
0.5 1 2 = sys_scalefact # factorization/renormalization scale factor
0.5 1 2 = sys_alpsfact # \alpha_s emission scale factors
30 50 = sys_matchscale # variation of merging scale
# PDF sets and number of members (0 or none for all members).
CT10nlo.LHgrid = sys_pdf # matching scales
# MSTW2008nlo68cl.LHgrid 1 = sys_pdf
</MGRunCard>
<slha>
######################################################################
## PARAM_CARD AUTOMATICALY GENERATED BY MG5 FOLLOWING UFO MODEL ####
######################################################################
## ##
## Width set on Auto will be computed following the information ##
## present in the decay.py files of the model. ##
## See arXiv:1402.1178 for more details. ##
## ##
######################################################################

###################################
## INFORMATION FOR MASS
###################################
Block mass
    5 4.700000e+00 # MB
    6 1.730000e+02 # MT
   15 1.777000e+00 # MTA
   23 9.118800e+01 # MZ
   25 1.250000e+02 # MH
## Dependent parameters, given by model restrictions.
## Those values should be edited following the
## analytical expression. MG5 ignores those values
## but they are important for interfacing the output of MG5
## to external program such as Pythia.
  1 0.000000 # d : 0.0
  2 0.000000 # u : 0.0
  3 0.000000 # s : 0.0
  4 0.000000 # c : 0.0
  11 0.000000 # e- : 0.0
  12 0.000000 # ve : 0.0
  13 0.000000 # mu- : 0.0
  14 0.000000 # vm : 0.0
  16 0.000000 # vt : 0.0
  21 0.000000 # g : 0.0
  22 0.000000 # a : 0.0
  24 80.419002 # w+ : cmath.sqrt(MZ__exp__2/2. + cmath.sqrt(MZ__exp__4/4. - (aEW*cmath.pi*MZ__exp__2)/(Gf*sqrt__2)))

###################################
## INFORMATION FOR SMINPUTS
###################################
Block sminputs
    1 1.325070e+02 # aEWM1
    2 1.166390e-05 # Gf
    3 1.180000e-01 # aS

###################################
## INFORMATION FOR YUKAWA
###################################
Block yukawa
    5 4.700000e+00 # ymb
    6 1.730000e+02 # ymt
   15 1.777000e+00 # ymtau

###################################
## INFORMATION FOR DECAY
###################################
DECAY 6 1.491500e+00 # WT
DECAY 23 2.441404e+00 # WZ
DECAY 24 2.047600e+00 # WW
DECAY 25 6.382339e-03 # WH
## Dependent parameters, given by model restrictions.
## Those values should be edited following the
## analytical expression. MG5 ignores those values
## but they are important for interfacing the output of MG5
## to external program such as Pythia.
DECAY 1 0.000000 # d : 0.0
DECAY 2 0.000000 # u : 0.0
DECAY 3 0.000000 # s : 0.0
DECAY 4 0.000000 # c : 0.0
DECAY 5 0.000000 # b : 0.0
DECAY 11 0.000000 # e- : 0.0
DECAY 12 0.000000 # ve : 0.0
DECAY 13 0.000000 # mu- : 0.0
DECAY 14 0.000000 # vm : 0.0
DECAY 15 0.000000 # ta- : 0.0
DECAY 16 0.000000 # vt : 0.0
DECAY 21 0.000000 # g : 0.0
DECAY 22 0.000000 # a : 0.0
</slha>
<MGPythiaCard>
!...Parton showering on or off
      MSTP(61)=1
      MSTP(71)=1

!...Fragmentation/hadronization on or off
      MSTJ(1)=1

!...Multiple interactions on or off
      MSTP(81)=20

!...Don't stop execution after 10 errors
      MSTU(21)=1

!...PDFset if MG set not supported by pythia-pgs package (set in lhapdf5 or higher)
      LHAID= 10041
      QCUT=30

      LHAPATH=/Users/backovic/Research/MadGraph/MG5_aMC_v2_2_2/pythia-pgs/src/PDFsets
</MGPythiaCard>
<MGGenerationInfo>
# Number of Events : 10000
# Integrated weight (pb) : 1355.9941
# Matched Integrated weight (pb) : 557.2
</MGGenerationInfo>
</header>
</LesHouchesEvents>

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#6

Hi,

This is a behavior that I can not reproduce on my computer, so the only way to help you with it is via a a series of investigation that you have to do on your side. I'm sorry for that.

What I will ask you to do is the following:
edit the file bin/internal/common_run_interface.py
at line 839 and replace the following line
            # Generate the matching plots
            misc.call([self.dirbin+'/create_matching_plots.sh',
                       self.run_name, tag, madir],
                            stdout = os.open(os.devnull, os.O_RDWR),
                            cwd=pjoin(self.me_dir,'Events'))
by
            # Generate the matching plots
            misc.call([self.dirbin+'/create_matching_plots.sh',
                       self.run_name, tag, madir],
                            cwd=pjoin(self.me_dir,'Events'))

Then edit the file
bin/internal/create_matching_plots.sh
and remove the two occurence of "&> /dev/null"

then run
./bin/madevent plot run_01
(change the run_name if this is not the correct run name)

This should print out at the screen more information on why you do not have the associated plot.
Information which would help us (hopefully) to understand the problem.

Cheers,

Olivier

Revision history for this message
Rafael Marcelino (rafaelmarcelinocs-o) said :
#7

Hi Olivier,

Thanks for your kind answer.

I got a bunch of errors. Here it comes:

 ./madevent plot run_01
launch in debug mode
************************************************************
* *
* W E L C O M E to *
* M A D G R A P H 5 _ a M C @ N L O *
* M A D E V E N T *
* *
* * * *
* * * * * *
* * * * * 5 * * * * *
* * * * * *
* * * *
* *
* VERSION 5.2.2.3 *
* *
* The MadGraph5_aMC@NLO Development Team - Find us at *
* https://server06.fynu.ucl.ac.be/projects/madgraph *
* *
* Type 'help' for in-line help. *
* *
************************************************************
INFO: load configuration from /home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Cards/me5_configuration.txt
INFO: load configuration from /home/rafamarce/madgraph/MG5_aMC_v2_2_3/input/mg5_configuration.txt
INFO: load configuration from /home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Cards/me5_configuration.txt
Using default eps viewer "evince". Set another one in ./input/mg5_configuration.txt
Using default web browser "firefox". Set another one in ./input/mg5_configuration.txt
plot run_01
plot for run run_01
Do you want to edit a card (press enter to bypass editing)?
  9 / plot : plot_card.dat
 you can also
   - enter the path to a valid card.
 [0, done, 9, plot, enter path]
>0
INFO: Creating Plots for parton level
INFO: Plots for parton level generated, see /home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/HTML/run_01/plots_parton.html
INFO: End Plots for parton level
INFO: Create matching plots for Pythia
Running root
root [0]
Processing ../bin/internal/read_tree_files.C...
/home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/read_tree_files.C:3:14: warning:
      ISO C++11 does not allow conversion from string literal to 'char *'
      [-Wwritable-strings]
  char* file="pythia.root";
             ^
Found 4741 events
Found 1 files
Creating plots
root [0]
Processing ../bin/internal/create_matching_plots.C...
In file included from input_line_26:1:
/home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:3:45: warning:
      ISO C++11 does not allow conversion from string literal to 'char *'
      [-Wwritable-strings]
bool plot_tree(char* quantity,char* plotdim="(100,0.,3.)",bool log=true)
                                            ^
/home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:31:22: error:
      use of undeclared identifier 'xsecs'
  TLeaf *leaf_Xsec = xsecs->FindLeaf("Xsecfact");
                     ^
/home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:34:3: error:
      use of undeclared identifier 'xsecs'
  xsecs->GetEntry(0);
  ^
/home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:35:7: error:
      use of undeclared identifier 'events'
  if (events->GetEntries()>0) {
      ^
/home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:37:5: error:
      use of undeclared identifier 'events'
    events->SetLineWidth(2);
    ^
/home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:38:5: error:
      use of undeclared identifier 'events'
    events->SetLineColor(i+2);
    ^
/home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:39:5: error:
      use of undeclared identifier 'events'
    events->SetLineStyle(i+2);
    ^
/home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:48:5: error:
      use of undeclared identifier 'events'
    events->Draw(tmp1,tmp2);
    ^
In file included from input_line_29:1:
/home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:3:45: warning:
      ISO C++11 does not allow conversion from string literal to 'char *'
      [-Wwritable-strings]
bool plot_tree(char* quantity,char* plotdim="(100,0.,3.)",bool log=true)
                                            ^
/home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:31:22: error:
      use of undeclared identifier 'xsecs'
  TLeaf *leaf_Xsec = xsecs->FindLeaf("Xsecfact");
                     ^
/home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:34:3: error:
      use of undeclared identifier 'xsecs'
  xsecs->GetEntry(0);
  ^
/home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:35:7: error:
      use of undeclared identifier 'events'
  if (events->GetEntries()>0) {
      ^
/home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:37:5: error:
      use of undeclared identifier 'events'
    events->SetLineWidth(2);
    ^
/home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:38:5: error:
      use of undeclared identifier 'events'
    events->SetLineColor(i+2);
    ^
/home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:39:5: error:
      use of undeclared identifier 'events'
    events->SetLineStyle(i+2);
    ^
/home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:48:5: error:
      use of undeclared identifier 'events'
    events->Draw(tmp1,tmp2);
    ^
In file included from input_line_32:1:
/home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:3:45: warning:
      ISO C++11 does not allow conversion from string literal to 'char *'
      [-Wwritable-strings]
bool plot_tree(char* quantity,char* plotdim="(100,0.,3.)",bool log=true)
                                            ^
/home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:31:22: error:
      use of undeclared identifier 'xsecs'
  TLeaf *leaf_Xsec = xsecs->FindLeaf("Xsecfact");
                     ^
/home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:34:3: error:
      use of undeclared identifier 'xsecs'
  xsecs->GetEntry(0);
  ^
/home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:35:7: error:
      use of undeclared identifier 'events'
  if (events->GetEntries()>0) {
      ^
/home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:37:5: error:
      use of undeclared identifier 'events'
    events->SetLineWidth(2);
    ^
/home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:38:5: error:
      use of undeclared identifier 'events'
    events->SetLineColor(i+2);
    ^
/home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:39:5: error:
      use of undeclared identifier 'events'
    events->SetLineStyle(i+2);
    ^
/home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:48:5: error:
      use of undeclared identifier 'events'
    events->Draw(tmp1,tmp2);
    ^
In file included from input_line_35:1:
/home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:3:45: warning:
      ISO C++11 does not allow conversion from string literal to 'char *'
      [-Wwritable-strings]
bool plot_tree(char* quantity,char* plotdim="(100,0.,3.)",bool log=true)
                                            ^
/home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:31:22: error:
      use of undeclared identifier 'xsecs'
  TLeaf *leaf_Xsec = xsecs->FindLeaf("Xsecfact");
                     ^
/home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:34:3: error:
      use of undeclared identifier 'xsecs'
  xsecs->GetEntry(0);
  ^
/home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:35:7: error:
      use of undeclared identifier 'events'
  if (events->GetEntries()>0) {
      ^
/home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:37:5: error:
      use of undeclared identifier 'events'
    events->SetLineWidth(2);
    ^
/home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:38:5: error:
      use of undeclared identifier 'events'
    events->SetLineColor(i+2);
    ^
/home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:39:5: error:
      use of undeclared identifier 'events'
    events->SetLineStyle(i+2);
    ^
/home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:48:5: error:
      use of undeclared identifier 'events'
    events->Draw(tmp1,tmp2);
    ^
mv: cannot stat ‘DJR*.eps’: No such file or directory
EPSTOSMTH 2.8, 2006/05/09 - Copyright 1998-2001 by Sebastian Rahtz et al.
!!! Error: 'DJR?.ps' does not exist!
INFO: Creating Plots for Pythia level
INFO: Plots for pythia level generated, see /home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/HTML/run_01/plots_pythia_ss_mad5.html
INFO: End Plots for pythia level
No valid files for pgs plot
No valid files for delphes plot
quit
INFO:

INFO:

My pythia, madanalysis and exrootanalysis are all the downloaded version ffrom madgraph5, I mean, install MadAnalysis and so on.

Thank You!

Revision history for this message
Mihailo Backovic (mbackovic) said :
#8

Thanks for the suggestion. I tried re-running with the modifications Olivier proposed and indeed I got a lot of error messages:

launch in debug mode
************************************************************
* *
* W E L C O M E to *
* M A D G R A P H 5 _ a M C @ N L O *
* M A D E V E N T *
* *
* * * *
* * * * * *
* * * * * 5 * * * * *
* * * * * *
* * * *
* *
* VERSION 5.2.2.3 *
* *
* The MadGraph5_aMC@NLO Development Team - Find us at *
* https://server06.fynu.ucl.ac.be/projects/madgraph *
* *
* Type 'help' for in-line help. *
* *
************************************************************
INFO: load configuration from /Users/backovic/Research/MadGraph/MG5_aMC_v2_2_2/bin/tt_test/Cards/me5_configuration.txt
INFO: load configuration from /Users/backovic/Research/MadGraph/MG5_aMC_v2_2_2/input/mg5_configuration.txt
INFO: load configuration from /Users/backovic/Research/MadGraph/MG5_aMC_v2_2_2/bin/tt_test/Cards/me5_configuration.txt
Using default text editor "vi". Set another one in ./input/mg5_configuration.txt
No valid Delphes path found
No valid SysCalc path found
plot run_01
plot for run run_01
Do you want to edit a card (press enter to bypass editing)?
  9 / plot : plot_card.dat
 you can also
   - enter the path to a valid card.
 [0, done, 9, plot, enter path][60s to answer]
>
INFO: Creating Plots for parton level
INFO: Plots for parton level generated, see /Users/backovic/Research/MadGraph/MG5_aMC_v2_2_2/bin/tt_test/HTML/run_01/plots_parton.html
INFO: End Plots for parton level
INFO: Create matching plots for Pythia
Running root
root [0]
Processing ../bin/internal/read_tree_files.C...
/Users/backovic/Research/MadGraph/MG5_aMC_v2_2_2/bin/tt_test/Events/./../bin/internal/read_tree_files.C:3:14: warning: ISO C++11 does not allow conversion
      from string literal to 'char *' [-Wwritable-strings]
  char* file="pythia.root";
             ^
Found 2395 events
Found 1 files
Creating plots
root [0]
Processing ../bin/internal/create_matching_plots.C...
In file included from input_line_27:1:
/Users/backovic/Research/MadGraph/MG5_aMC_v2_2_2/bin/tt_test/Events/./../bin/internal/plot_tree.C:3:45: warning: ISO C++11 does not allow conversion from
      string literal to 'char *' [-Wwritable-strings]
bool plot_tree(char* quantity,char* plotdim="(100,0.,3.)",bool log=true)
                                            ^
/Users/backovic/Research/MadGraph/MG5_aMC_v2_2_2/bin/tt_test/Events/./../bin/internal/plot_tree.C:31:22: error: use of undeclared identifier 'xsecs'
  TLeaf *leaf_Xsec = xsecs->FindLeaf("Xsecfact");
                     ^
/Users/backovic/Research/MadGraph/MG5_aMC_v2_2_2/bin/tt_test/Events/./../bin/internal/plot_tree.C:34:3: error: use of undeclared identifier 'xsecs'
  xsecs->GetEntry(0);
  ^
/Users/backovic/Research/MadGraph/MG5_aMC_v2_2_2/bin/tt_test/Events/./../bin/internal/plot_tree.C:35:7: error: use of undeclared identifier 'events'
  if (events->GetEntries()>0) {
      ^
/Users/backovic/Research/MadGraph/MG5_aMC_v2_2_2/bin/tt_test/Events/./../bin/internal/plot_tree.C:37:5: error: use of undeclared identifier 'events'
    events->SetLineWidth(2);
    ^
/Users/backovic/Research/MadGraph/MG5_aMC_v2_2_2/bin/tt_test/Events/./../bin/internal/plot_tree.C:38:5: error: use of undeclared identifier 'events'
    events->SetLineColor(i+2);
    ^
/Users/backovic/Research/MadGraph/MG5_aMC_v2_2_2/bin/tt_test/Events/./../bin/internal/plot_tree.C:39:5: error: use of undeclared identifier 'events'
    events->SetLineStyle(i+2);
    ^
/Users/backovic/Research/MadGraph/MG5_aMC_v2_2_2/bin/tt_test/Events/./../bin/internal/plot_tree.C:48:5: error: use of undeclared identifier 'events'
    events->Draw(tmp1,tmp2);
    ^
In file included from input_line_30:1:
/Users/backovic/Research/MadGraph/MG5_aMC_v2_2_2/bin/tt_test/Events/./../bin/internal/plot_tree.C:3:45: warning: ISO C++11 does not allow conversion from
      string literal to 'char *' [-Wwritable-strings]
bool plot_tree(char* quantity,char* plotdim="(100,0.,3.)",bool log=true)
                                            ^
/Users/backovic/Research/MadGraph/MG5_aMC_v2_2_2/bin/tt_test/Events/./../bin/internal/plot_tree.C:31:22: error: use of undeclared identifier 'xsecs'
  TLeaf *leaf_Xsec = xsecs->FindLeaf("Xsecfact");
                     ^
/Users/backovic/Research/MadGraph/MG5_aMC_v2_2_2/bin/tt_test/Events/./../bin/internal/plot_tree.C:34:3: error: use of undeclared identifier 'xsecs'
  xsecs->GetEntry(0);
  ^
/Users/backovic/Research/MadGraph/MG5_aMC_v2_2_2/bin/tt_test/Events/./../bin/internal/plot_tree.C:35:7: error: use of undeclared identifier 'events'
  if (events->GetEntries()>0) {
      ^
/Users/backovic/Research/MadGraph/MG5_aMC_v2_2_2/bin/tt_test/Events/./../bin/internal/plot_tree.C:37:5: error: use of undeclared identifier 'events'
    events->SetLineWidth(2);
    ^
/Users/backovic/Research/MadGraph/MG5_aMC_v2_2_2/bin/tt_test/Events/./../bin/internal/plot_tree.C:38:5: error: use of undeclared identifier 'events'
    events->SetLineColor(i+2);
    ^
/Users/backovic/Research/MadGraph/MG5_aMC_v2_2_2/bin/tt_test/Events/./../bin/internal/plot_tree.C:39:5: error: use of undeclared identifier 'events'
    events->SetLineStyle(i+2);
    ^
/Users/backovic/Research/MadGraph/MG5_aMC_v2_2_2/bin/tt_test/Events/./../bin/internal/plot_tree.C:48:5: error: use of undeclared identifier 'events'
    events->Draw(tmp1,tmp2);
    ^
In file included from input_line_33:1:
/Users/backovic/Research/MadGraph/MG5_aMC_v2_2_2/bin/tt_test/Events/./../bin/internal/plot_tree.C:3:45: warning: ISO C++11 does not allow conversion from
      string literal to 'char *' [-Wwritable-strings]
bool plot_tree(char* quantity,char* plotdim="(100,0.,3.)",bool log=true)
                                            ^
/Users/backovic/Research/MadGraph/MG5_aMC_v2_2_2/bin/tt_test/Events/./../bin/internal/plot_tree.C:31:22: error: use of undeclared identifier 'xsecs'
  TLeaf *leaf_Xsec = xsecs->FindLeaf("Xsecfact");
                     ^
/Users/backovic/Research/MadGraph/MG5_aMC_v2_2_2/bin/tt_test/Events/./../bin/internal/plot_tree.C:34:3: error: use of undeclared identifier 'xsecs'
  xsecs->GetEntry(0);
  ^
/Users/backovic/Research/MadGraph/MG5_aMC_v2_2_2/bin/tt_test/Events/./../bin/internal/plot_tree.C:35:7: error: use of undeclared identifier 'events'
  if (events->GetEntries()>0) {
      ^
/Users/backovic/Research/MadGraph/MG5_aMC_v2_2_2/bin/tt_test/Events/./../bin/internal/plot_tree.C:37:5: error: use of undeclared identifier 'events'
    events->SetLineWidth(2);
    ^
/Users/backovic/Research/MadGraph/MG5_aMC_v2_2_2/bin/tt_test/Events/./../bin/internal/plot_tree.C:38:5: error: use of undeclared identifier 'events'
    events->SetLineColor(i+2);
    ^
/Users/backovic/Research/MadGraph/MG5_aMC_v2_2_2/bin/tt_test/Events/./../bin/internal/plot_tree.C:39:5: error: use of undeclared identifier 'events'
    events->SetLineStyle(i+2);
    ^
/Users/backovic/Research/MadGraph/MG5_aMC_v2_2_2/bin/tt_test/Events/./../bin/internal/plot_tree.C:48:5: error: use of undeclared identifier 'events'
    events->Draw(tmp1,tmp2);
    ^
In file included from input_line_36:1:
/Users/backovic/Research/MadGraph/MG5_aMC_v2_2_2/bin/tt_test/Events/./../bin/internal/plot_tree.C:3:45: warning: ISO C++11 does not allow conversion from
      string literal to 'char *' [-Wwritable-strings]
bool plot_tree(char* quantity,char* plotdim="(100,0.,3.)",bool log=true)
                                            ^
/Users/backovic/Research/MadGraph/MG5_aMC_v2_2_2/bin/tt_test/Events/./../bin/internal/plot_tree.C:31:22: error: use of undeclared identifier 'xsecs'
  TLeaf *leaf_Xsec = xsecs->FindLeaf("Xsecfact");
                     ^
/Users/backovic/Research/MadGraph/MG5_aMC_v2_2_2/bin/tt_test/Events/./../bin/internal/plot_tree.C:34:3: error: use of undeclared identifier 'xsecs'
  xsecs->GetEntry(0);
  ^
/Users/backovic/Research/MadGraph/MG5_aMC_v2_2_2/bin/tt_test/Events/./../bin/internal/plot_tree.C:35:7: error: use of undeclared identifier 'events'
  if (events->GetEntries()>0) {
      ^
/Users/backovic/Research/MadGraph/MG5_aMC_v2_2_2/bin/tt_test/Events/./../bin/internal/plot_tree.C:37:5: error: use of undeclared identifier 'events'
    events->SetLineWidth(2);
    ^
/Users/backovic/Research/MadGraph/MG5_aMC_v2_2_2/bin/tt_test/Events/./../bin/internal/plot_tree.C:38:5: error: use of undeclared identifier 'events'
    events->SetLineColor(i+2);
    ^
/Users/backovic/Research/MadGraph/MG5_aMC_v2_2_2/bin/tt_test/Events/./../bin/internal/plot_tree.C:39:5: error: use of undeclared identifier 'events'
    events->SetLineStyle(i+2);
    ^
/Users/backovic/Research/MadGraph/MG5_aMC_v2_2_2/bin/tt_test/Events/./../bin/internal/plot_tree.C:48:5: error: use of undeclared identifier 'events'
    events->Draw(tmp1,tmp2);
    ^
mv: rename DJR*.eps to ../HTML/run_01/plots_pythia_tag_1/DJR*.ps: No such file or directory
EPSTOSMTH 2.8, 2006/05/09 - Copyright 1998-2001 by Sebastian Rahtz et al.
!!! Error: 'DJR?.ps' does not exist!
INFO: Creating Plots for Pythia level
INFO: Plots for pythia level generated, see /Users/backovic/Research/MadGraph/MG5_aMC_v2_2_2/bin/tt_test/HTML/run_01/plots_pythia_tag_1.html
INFO: End Plots for pythia level
No valid files for pgs plot
No valid files for delphes plot
quit
INFO:

INFO:

Best,

Mihailo

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#9

Hi,

Ok the problem is that you use is a compiler issue since you use a C++11 compiler and not a standard C++ compiler.
Looks like the C++11 is not fully retro-compatible and therefore crash on the following lines:

bool plot_tree(char* quantity,char* plotdim="(100,0.,3.)",bool log=true)

The use of the definition of char* seems not to be allowed in C++11.

I'm actually not sure what we can do to make this code C++11 compatible since I'm everything but an expert in neither C++ or C++11.

What you can try is to replace
in the file bin/internal/read_tree_files.C
the line
char* file="pythia.root";
by
const char* file="pythia.root";

to check if that compilation error drop. If it does, then you need to do the same for all the instance leading to a crash in
plot_tree.C
read_tree_files.C

If that does work, please send me the files such that I can test it with standard C++ (I have make the one line change above and it seems compatible)

Cheers,

Olivier

Revision history for this message
Rafael Marcelino (rafaelmarcelinocs-o) said :
#10

Olivier,

Still doesn't work. The error bool plot_tree(char* quantity,char* plotdim="(100,0.,3.)",bool log=true) didnt drop with proposed changes. At least to me.

I dont know what files to send, so I prepared the entire folder of the events. Here is a link in dropbox with the folder generated by madgraph, its is in a .tar.gz format.

https://www.dropbox.com/s/2bet963v3nt7ogt/susy_test_c%2B%2B11_issues.tar.gz?dl=0

Best.

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#11

looks like you still have the line

bool plot_tree(char* quantity,char* plotdim="(100,0.,3.)",bool log=true)

so this is normal to still crash

you should try which one of the following one work for C++11 (if any):
bool plot_tree(const char* quantity,char* plotdim="(100,0.,3.)",bool log=true)
bool plot_tree(const char* quantity, const char* plotdim="(100,0.,3.)",bool log=true)

But could you confirm that you do not have anymore the error:

read_tree_files.C:3:14: warning: ISO C++11 does not allow conversion
      from string literal to 'char *' [-Wwritable-strings]
  char* file="pythia.root";

Cheers,

Olivier

Revision history for this message
Rafael Marcelino (rafaelmarcelinocs-o) said :
#12

Yah you'r right!

Now with this change:

bool plot_tree(char* quantity,char* plotdim="(100,0.,3.)",bool log=true)
{
by
bool plot_tree(const char* quantity,const char* plotdim="(100,0.,3.)",bool log=true)
{

I dont get the problem:

read_tree_files.C:3:14: warning: ISO C++11 does not allow conversion
      from string literal to 'char *' [-Wwritable-strings]
  char* file="pythia.root";

What I have now is:

INFO: Create matching plots for Pythia
Running root
root [0]
Processing ../bin/internal/read_tree_files.C...
Found 4741 events
Found 1 files
Creating plots
root [0]
Processing ../bin/internal/create_matching_plots.C...
In file included from input_line_26:1:
/home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:31:22: error:
      use of undeclared identifier 'xsecs'
  TLeaf *leaf_Xsec = xsecs->FindLeaf("Xsecfact");
                     ^
/home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:34:3: error:
      use of undeclared identifier 'xsecs'
  xsecs->GetEntry(0);
  ^
/home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:35:7: error:
      use of undeclared identifier 'events'
  if (events->GetEntries()>0) {
      ^
/home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:37:5: error:
      use of undeclared identifier 'events'
    events->SetLineWidth(2);
    ^
/home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:38:5: error:
      use of undeclared identifier 'events'
    events->SetLineColor(i+2);
    ^
/home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:39:5: error:
      use of undeclared identifier 'events'
    events->SetLineStyle(i+2);
    ^
/home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:48:5: error:
      use of undeclared identifier 'events'
    events->Draw(tmp1,tmp2);
    ^
In file included from input_line_29:1:
/home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:31:22: error:
      use of undeclared identifier 'xsecs'
  TLeaf *leaf_Xsec = xsecs->FindLeaf("Xsecfact");
                     ^
/home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:34:3: error:
      use of undeclared identifier 'xsecs'
  xsecs->GetEntry(0);
  ^
/home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:35:7: error:
      use of undeclared identifier 'events'
  if (events->GetEntries()>0) {
      ^
/home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:37:5: error:
      use of undeclared identifier 'events'
    events->SetLineWidth(2);
    ^
/home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:38:5: error:
      use of undeclared identifier 'events'
    events->SetLineColor(i+2);
    ^
/home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:39:5: error:
      use of undeclared identifier 'events'
    events->SetLineStyle(i+2);
    ^
/home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:48:5: error:
      use of undeclared identifier 'events'
    events->Draw(tmp1,tmp2);
    ^
In file included from input_line_32:1:
/home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:31:22: error:
      use of undeclared identifier 'xsecs'
  TLeaf *leaf_Xsec = xsecs->FindLeaf("Xsecfact");
                     ^
/home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:34:3: error:
      use of undeclared identifier 'xsecs'
  xsecs->GetEntry(0);
  ^
/home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:35:7: error:
      use of undeclared identifier 'events'
  if (events->GetEntries()>0) {
      ^
/home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:37:5: error:
      use of undeclared identifier 'events'
    events->SetLineWidth(2);
    ^
/home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:38:5: error:
      use of undeclared identifier 'events'
    events->SetLineColor(i+2);
    ^
/home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:39:5: error:
      use of undeclared identifier 'events'
    events->SetLineStyle(i+2);
    ^
/home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:48:5: error:
      use of undeclared identifier 'events'
    events->Draw(tmp1,tmp2);
    ^
In file included from input_line_35:1:
/home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:31:22: error:
      use of undeclared identifier 'xsecs'
  TLeaf *leaf_Xsec = xsecs->FindLeaf("Xsecfact");
                     ^
/home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:34:3: error:
      use of undeclared identifier 'xsecs'
  xsecs->GetEntry(0);
  ^
/home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:35:7: error:
      use of undeclared identifier 'events'
  if (events->GetEntries()>0) {
      ^
/home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:37:5: error:
      use of undeclared identifier 'events'
    events->SetLineWidth(2);
    ^
/home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:38:5: error:
      use of undeclared identifier 'events'
    events->SetLineColor(i+2);
    ^
/home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:39:5: error:
      use of undeclared identifier 'events'
    events->SetLineStyle(i+2);
    ^
/home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:48:5: error:
      use of undeclared identifier 'events'
    events->Draw(tmp1,tmp2);
    ^
mv: cannot stat ‘DJR*.eps’: No such file or directory
EPSTOSMTH 2.8, 2006/05/09 - Copyright 1998-2001 by Sebastian Rahtz et al.
!!! Error: 'DJR?.ps' does not exist!
INFO: Creating Plots for Pythia level
INFO: Plots for pythia level generated, see /home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/HTML/run_01/plots_pythia_ss_mad5.html
INFO: End Plots for pythia level
No valid files for pgs plot
No valid files for delphes plot
quit
INFO:

INFO:

Thank You!

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#13

Hi,

This sounds more a root issue, I have actually no idea why the code is working since indeed the variable is not define.
Looks like some root version remember session open before. Sounds weird but seems to work.

This sounds actually easy to fix: What you can try is the following

cd bin/internal
cat read_tree_files.C create_matching_plots.C > create_matching_plots_new.C
then edit create_matching_plots_new.C
and remove the pointless lines
{
}

then edit create_matching_plots_new.C
and replace the lines

echo Running root
root -q -b -l ../bin/internal/read_tree_files.C &> /dev/null
echo Creating plots
root -q -b -l ../bin/internal/create_matching_plots.C &> /dev/null
mv pythia.root $1/$2_pythia.root

by
#echo Running root
#root -q -b -l ../bin/internal/read_tree_files.C &> /dev/null
echo Creating plots
root -q -b -l ../bin/internal/create_matching_plots_new.C &> /dev/null
mv pythia.root $1/$2_pythia.root

Cheers,

Olivier

On 13 Feb 2015, at 15:31, Rafael Marcelino <email address hidden> wrote:

> Question #244129 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/244129
>
> Rafael Marcelino requested more information:
> Yah you'r right!
>
> Now with this change:
>
> bool plot_tree(char* quantity,char* plotdim="(100,0.,3.)",bool log=true)
> {
> by
> bool plot_tree(const char* quantity,const char* plotdim="(100,0.,3.)",bool log=true)
> {
>
> I dont get the problem:
>
> read_tree_files.C:3:14: warning: ISO C++11 does not allow conversion
> from string literal to 'char *' [-Wwritable-strings]
> char* file="pythia.root";
>
> What I have now is:
>
> INFO: Create matching plots for Pythia
> Running root
> root [0]
> Processing ../bin/internal/read_tree_files.C...
> Found 4741 events
> Found 1 files
> Creating plots
> root [0]
> Processing ../bin/internal/create_matching_plots.C...
> In file included from input_line_26:1:
> /home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:31:22: error:
> use of undeclared identifier 'xsecs'
> TLeaf *leaf_Xsec = xsecs->FindLeaf("Xsecfact");
> ^
> /home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:34:3: error:
> use of undeclared identifier 'xsecs'
> xsecs->GetEntry(0);
> ^
> /home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:35:7: error:
> use of undeclared identifier 'events'
> if (events->GetEntries()>0) {
> ^
> /home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:37:5: error:
> use of undeclared identifier 'events'
> events->SetLineWidth(2);
> ^
> /home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:38:5: error:
> use of undeclared identifier 'events'
> events->SetLineColor(i+2);
> ^
> /home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:39:5: error:
> use of undeclared identifier 'events'
> events->SetLineStyle(i+2);
> ^
> /home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:48:5: error:
> use of undeclared identifier 'events'
> events->Draw(tmp1,tmp2);
> ^
> In file included from input_line_29:1:
> /home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:31:22: error:
> use of undeclared identifier 'xsecs'
> TLeaf *leaf_Xsec = xsecs->FindLeaf("Xsecfact");
> ^
> /home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:34:3: error:
> use of undeclared identifier 'xsecs'
> xsecs->GetEntry(0);
> ^
> /home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:35:7: error:
> use of undeclared identifier 'events'
> if (events->GetEntries()>0) {
> ^
> /home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:37:5: error:
> use of undeclared identifier 'events'
> events->SetLineWidth(2);
> ^
> /home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:38:5: error:
> use of undeclared identifier 'events'
> events->SetLineColor(i+2);
> ^
> /home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:39:5: error:
> use of undeclared identifier 'events'
> events->SetLineStyle(i+2);
> ^
> /home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:48:5: error:
> use of undeclared identifier 'events'
> events->Draw(tmp1,tmp2);
> ^
> In file included from input_line_32:1:
> /home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:31:22: error:
> use of undeclared identifier 'xsecs'
> TLeaf *leaf_Xsec = xsecs->FindLeaf("Xsecfact");
> ^
> /home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:34:3: error:
> use of undeclared identifier 'xsecs'
> xsecs->GetEntry(0);
> ^
> /home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:35:7: error:
> use of undeclared identifier 'events'
> if (events->GetEntries()>0) {
> ^
> /home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:37:5: error:
> use of undeclared identifier 'events'
> events->SetLineWidth(2);
> ^
> /home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:38:5: error:
> use of undeclared identifier 'events'
> events->SetLineColor(i+2);
> ^
> /home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:39:5: error:
> use of undeclared identifier 'events'
> events->SetLineStyle(i+2);
> ^
> /home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:48:5: error:
> use of undeclared identifier 'events'
> events->Draw(tmp1,tmp2);
> ^
> In file included from input_line_35:1:
> /home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:31:22: error:
> use of undeclared identifier 'xsecs'
> TLeaf *leaf_Xsec = xsecs->FindLeaf("Xsecfact");
> ^
> /home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:34:3: error:
> use of undeclared identifier 'xsecs'
> xsecs->GetEntry(0);
> ^
> /home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:35:7: error:
> use of undeclared identifier 'events'
> if (events->GetEntries()>0) {
> ^
> /home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:37:5: error:
> use of undeclared identifier 'events'
> events->SetLineWidth(2);
> ^
> /home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:38:5: error:
> use of undeclared identifier 'events'
> events->SetLineColor(i+2);
> ^
> /home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:39:5: error:
> use of undeclared identifier 'events'
> events->SetLineStyle(i+2);
> ^
> /home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/Events/./../bin/internal/plot_tree.C:48:5: error:
> use of undeclared identifier 'events'
> events->Draw(tmp1,tmp2);
> ^
> mv: cannot stat ‘DJR*.eps’: No such file or directory
> EPSTOSMTH 2.8, 2006/05/09 - Copyright 1998-2001 by Sebastian Rahtz et al.
> !!! Error: 'DJR?.ps' does not exist!
> INFO: Creating Plots for Pythia level
> INFO: Plots for pythia level generated, see /home/rafamarce/madgraph/MG5_aMC_v2_2_3/susy_test/HTML/run_01/plots_pythia_ss_mad5.html
> INFO: End Plots for pythia level
> No valid files for pgs plot
> No valid files for delphes plot
> quit
> INFO:
>
> INFO:
>
> Thank You!
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Revision history for this message
Rafael Marcelino (rafaelmarcelinocs-o) said :
#14

Thanks Olivier for your attention, that's solved my problem with DJR plots.

When you ask for change this:

and replace the lines

echo Running root
root -q -b -l ../bin/internal/read_tree_files.C &> /dev/null
echo Creating plots
root -q -b -l ../bin/internal/create_matching_plots.C &> /dev/null
mv pythia.root $1/$2_pythia.root

by
#echo Running root
#root -q -b -l ../bin/internal/read_tree_files.C &> /dev/null
echo Creating plots
root -q -b -l ../bin/internal/create_matching_plots_new.C &> /dev/null
mv pythia.root $1/$2_pythia.root

This replacement is done at creating_matching_plots.sh. This information it's for other people trying to handle this problem.

One last question, every different process that I'll generate must have this fixes applied by hand? Or there's some way to configure mad5 to do this in one place and share with every future run?

Can you help with this problem?

Provide an answer of your own, or ask Mukesh Kumar for more information if necessary.

To post a message you must log in.