Error while using DPHI_O_PI for met
juhidutta opened this issue · 4 comments
Question
Dear Experts,
I am working in the normal mode using madanalysis-v1.6.
I am facing an error while using DPHI_0_PI(j[1],met).
It works correctly while computing the Delta Phi between any objects but only runs into an error with the missing energy. The command prompt did not throw any error while running the script, but it crashes with the following message in the log file
g++ -Wall -O3 -fPIC -I/home/lenovo/madanalysis5/tools/ -I./ -o Main/main.o -c Main/main.cpp
g++ -Wall -O3 -fPIC -I/home/lenovo/madanalysis5/tools/ -I./ -o SampleAnalyzer/User/Analyzer/user.o -c SampleAnalyzer/User/Analyzer/user.cpp
SampleAnalyzer/User/Analyzer/user.cpp: In member function ‘virtual bool MA5::user::Execute(MA5::SampleFormat&, const MA5::EventFormat&)’:
SampleAnalyzer/User/Analyzer/user.cpp:460:8: error: ‘_P_metPTorderingfinalstate’ was not declared in this scope
_P_metPTorderingfinalstate.push_back(&(event.rec()->MET()));
^~~~~~~~~~~~~~~~~~~~~~~~~~
SampleAnalyzer/User/Analyzer/user.cpp:460:8: note: suggested alternative: ‘P_metPTorderingfinalstate_REG’
_P_metPTorderingfinalstate.push_back(&(event.rec()->MET()));
^~~~~~~~~~~~~~~~~~~~~~~~~~
P_metPTorderingfinalstate_REG
Makefile:99: recipe for target 'SampleAnalyzer/User/Analyzer/user.o' failed
make: *** [SampleAnalyzer/User/Analyzer/user.o] Error 1
Could you please kindly let me know how I could resolve this issue? I hope I am using the correct format for the met.
Thank you,
With best regards,
Juhi
Hi @juhidutta, MET is missing transverse energy. As the name suggests, this is just a measure of energy with the unit of GeV and not a vector. You can only compute the
Hi Juhi,
The command you typed works... with the latest MA5 version. The lower case "met" object is the (vector) missing momentum in the normal mode of the code.
Cheers,
Benjamin