Compilation error when using 'met' as <label>
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/
c++ -Wall -O3 -fPIC -I/Users/
SampleAnalyzer/
./SampleAnalyze
std::vector<const RecParticleFormat*> _P_metPTorderin
1 error generated.
make: *** [SampleAnalyzer
However, in version 1.5, it produces the plot. Is this a bug or an intended feature?
Many thanks,
Michael
Changed in madanalysis5: | |
status: | Fix Committed → Fix Released |
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: 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 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 User/Analyzer/ user.cpp: 483:8: error: use of undeclared identifier '_P_metPTorderi ngfinalstate' ; did you mean '_P_metPTorderi ngfinalstate_ REG_'? gfinalstate. push_back( &(event. rec()-> MET())) ; ~~~~~~~ ~~~~~~~ ~~~~~ gfinalstate_ REG_ r/User/ Analyzer/ user.h: 24:41: note: '_P_metPTorderi ngfinalstate_ REG_' declared here gfinalstate_ REG_; /User/Analyzer/ user.o] Error 1
>
> 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/
> c++ -Wall -O3 -fPIC -I/Users/
> SampleAnalyzer/
> _P_metPTorderin
> ^~~~~~~
> _P_metPTorderin
> ./SampleAnalyze
> std::vector<const RecParticleFormat*> _P_metPTorderin
> ^
> 1 error generated.
> make: *** [SampleAnalyzer
>
>
> However, in version 1.5, it produces the plot. Is this a bug or an intended feature?
>
> Many thanks,
>
> Michael