Compilation error when using 'met' as <label>

Bug #1780945 reported by Michael Baker
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MadAnalysis 5
Fix Released
Medium
Unassigned

Bug Description

Hi,

When using Madanalysis 1.6, I get a compilation error if I try to use the met label. For instance, including the line

plot dPHI(e- met)

leads to the error

c++ -Wall -O3 -fPIC -I/Users/baker/cernbox/programs/madanalysis5/tools/ -I./ -pthread -stdlib=libc++ -std=c++11 -m64 -I/Users/baker/Physics/Programs/root-6.-12.06/include -o Main/main.o -c Main/main.cpp
c++ -Wall -O3 -fPIC -I/Users/baker/cernbox/programs/madanalysis5/tools/ -I./ -pthread -stdlib=libc++ -std=c++11 -m64 -I/Users/baker/Physics/Programs/root-6.-12.06/include -o SampleAnalyzer/User/Analyzer/user.o -c SampleAnalyzer/User/Analyzer/user.cpp
SampleAnalyzer/User/Analyzer/user.cpp:483:8: error: use of undeclared identifier '_P_metPTorderingfinalstate'; did you mean '_P_metPTorderingfinalstate_REG_'?
       _P_metPTorderingfinalstate.push_back(&(event.rec()->MET()));
       ^~~~~~~~~~~~~~~~~~~~~~~~~~
       _P_metPTorderingfinalstate_REG_
./SampleAnalyzer/User/Analyzer/user.h:24:41: note: '_P_metPTorderingfinalstate_REG_' declared here
  std::vector<const RecParticleFormat*> _P_metPTorderingfinalstate_REG_;
                                        ^
1 error generated.
make: *** [SampleAnalyzer/User/Analyzer/user.o] Error 1

However, in version 1.5, it produces the plot. Is this a bug or an intended feature?

Many thanks,

Michael

Revision history for this message
Benjamin Fuks (fuks) wrote : Re: [Bug 1780945] [NEW] Compilation error when using 'met' as <label>
  • job_execute.py Edit (15.5 KiB, text/x-python-script; x-unix-mode=0644; name="job_execute.py")

Hi Michael,

Thanks for reporting this bug. A fix has been committed (for the future version 1.7). In the meantime, it is enough to replace the file job_execute.py in madanalysis/job/ by the one in attachment.

Cheers,

Benjamin

> On 10 Jul 2018, at 12:07 , Michael Baker <email address hidden> wrote:
>
> Public bug reported:
>
> Hi,
>
> When using Madanalysis 1.6, I get a compilation error if I try to use
> the met label. For instance, including the line
>
> plot dPHI(e- met)
>
> leads to the error
>
> c++ -Wall -O3 -fPIC -I/Users/baker/cernbox/programs/madanalysis5/tools/ -I./ -pthread -stdlib=libc++ -std=c++11 -m64 -I/Users/baker/Physics/Programs/root-6.-12.06/include -o Main/main.o -c Main/main.cpp
> c++ -Wall -O3 -fPIC -I/Users/baker/cernbox/programs/madanalysis5/tools/ -I./ -pthread -stdlib=libc++ -std=c++11 -m64 -I/Users/baker/Physics/Programs/root-6.-12.06/include -o SampleAnalyzer/User/Analyzer/user.o -c SampleAnalyzer/User/Analyzer/user.cpp
> SampleAnalyzer/User/Analyzer/user.cpp:483:8: error: use of undeclared identifier '_P_metPTorderingfinalstate'; did you mean '_P_metPTorderingfinalstate_REG_'?
> _P_metPTorderingfinalstate.push_back(&(event.rec()->MET()));
> ^~~~~~~~~~~~~~~~~~~~~~~~~~
> _P_metPTorderingfinalstate_REG_
> ./SampleAnalyzer/User/Analyzer/user.h:24:41: note: '_P_metPTorderingfinalstate_REG_' declared here
> std::vector<const RecParticleFormat*> _P_metPTorderingfinalstate_REG_;
> ^
> 1 error generated.
> make: *** [SampleAnalyzer/User/Analyzer/user.o] Error 1
>
>
> However, in version 1.5, it produces the plot. Is this a bug or an intended feature?
>
> Many thanks,
>
> Michael

Changed in madanalysis5:
importance: Undecided → Medium
status: New → Fix Committed
milestone: none → v1.7
Revision history for this message
Michael Baker (michaelbaker) wrote :

Dear Benjamin,

Ok, great, that seems to fix it.

One more thing, should I expect a difference between,

plot MT_MET(e-)

and

plot MT(e- met)

? My reading of https://answers.launchpad.net/madanalysis5/+question/271286 suggests they should be the same, but they do not give the same plot for me.

Many thanks,

Michael

Benjamin Fuks (fuks)
Changed in madanalysis5:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.