Installing delphes in madanalysis5 1,8

Asked by Abdullah Bin Saqlain

Hi, I tried the install delphes command in mad analysis and it gave me this error.

MA5: **********************************************************
MA5: Installing delphes
MA5: **********************************************************
MA5: Detecting a previous installation ...
MA5: => found
MA5: Removing the previous installation ...
MA5-WARNING: Are you sure to remove the directory called '/home/abdullah/madanalysis5/tools/delphes' ? (Y/N)
Answer: y
MA5: How many cores would you like to use for the compilation ? default = max = 8
   => Answer: 7
MA5: => Number of cores used for the compilation = 7
MA5: **********************************************************
MA5: Creating a devoted folder ...
MA5: Creating a temporary folder ...
MA5: Downloading the package ...
MA5: - 1/1 http://cp3.irmp.ucl.ac.be/downloads/Delphes-3.4.2.tar.gz ...
MA5: --> 'delphes.tar.gz' already exists. Package not downloaded.
MA5: Unpacking the package ...
MA5: Configuring the package ...
MA5: Building the package ...
MA5-ERROR: impossible to build the project. For more details, see the log file:
MA5-ERROR: /home/abdullah/madanalysis5/tools/delphes/compilation.log
MA5: Installation NOT complete.
MA5: Elapsed time = 17.48 seconds
MA5: => Status: [FAILURE]
MA5: **********************************************************
MA5:

the config file is given as:
Makefile ready
To build Delphes type
   make

the compilation log is:
>> Generating tmp/classes/ClassesDict.cc
>> Generating tmp/external/ExRootAnalysis/ExRootAnalysisDict.cc
>> Generating tmp/modules/ModulesDict.cc
>> Compiling classes/DelphesClasses.cc
>> Compiling classes/DelphesCylindricalFormula.cc
>> Compiling classes/DelphesFactory.cc
>> Compiling classes/DelphesFormula.cc
>> Compiling classes/DelphesHepMCReader.cc
>> Compiling classes/DelphesLHEFReader.cc
>> Compiling classes/DelphesModule.cc
>> Compiling classes/DelphesPileUpReader.cc
>> Compiling classes/DelphesPileUpWriter.cc
>> Compiling classes/DelphesSTDHEPReader.cc
>> Compiling classes/DelphesStream.cc
>> Compiling classes/DelphesTF2.cc
>> Compiling classes/DelphesXDRReader.cc
classes/DelphesXDRReader.cc: In member function ‘void DelphesXDRReader::ReadRaw(void*, int)’:
classes/DelphesXDRReader.cc:76:10: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
   76 | fread(value, 1, size + rndup, fFile);
      | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> Compiling classes/DelphesXDRWriter.cc
>> Compiling external/ExRootAnalysis/ExRootConfReader.cc
>> Compiling external/ExRootAnalysis/ExRootFilter.cc
>> Compiling external/ExRootAnalysis/ExRootProgressBar.cc
>> Compiling external/ExRootAnalysis/ExRootResult.cc
>> Compiling external/ExRootAnalysis/ExRootTask.cc
>> Compiling external/ExRootAnalysis/ExRootTreeBranch.cc
>> Compiling external/ExRootAnalysis/ExRootTreeReader.cc
>> Compiling external/ExRootAnalysis/ExRootTreeWriter.cc
>> Compiling external/ExRootAnalysis/ExRootUtilities.cc
>> Compiling external/Hector/H_AbstractBeamLine.cc
classes/DelphesTF2.cc: In constructor ‘DelphesTF2::DelphesTF2()’:
classes/DelphesTF2.cc:35:27: error: no match for ‘operator=’ (operand types are ‘std::unique_ptr<TFormula>’ and ‘TFormula*’)
   35 | fFormula = new TFormula();
      | ^
In file included from /usr/include/c++/9/memory:80,
                 from /home/abdullah/root/include/ROOT/TypeTraits.hxx:15,
                 from /home/abdullah/root/include/TString.h:30,
                 from /home/abdullah/root/include/TNamed.h:26,
                 from /home/abdullah/root/include/TFormula.h:15,
                 from /home/abdullah/root/include/TF1.h:29,
                 from /home/abdullah/root/include/TF2.h:26,
                 from ./classes/DelphesTF2.h:22,
                 from classes/DelphesTF2.cc:19:
/usr/include/c++/9/bits/unique_ptr.h:305:7: note: candidate: ‘std::unique_ptr<_Tp, _Dp>& std::unique_ptr<_Tp, _Dp>::operator=(std::unique_ptr<_Tp, _Dp>&&) [with _Tp = TFormula; _Dp = std::default_delete<TFormula>]’
  305 | operator=(unique_ptr&& __u) noexcept
      | ^~~~~~~~
/usr/include/c++/9/bits/unique_ptr.h:305:30: note: no known conversion for argument 1 from ‘TFormula*’ to ‘std::unique_ptr<TFormula>&&’
  305 | operator=(unique_ptr&& __u) noexcept
      | ~~~~~~~~~~~~~^~~
/usr/include/c++/9/bits/unique_ptr.h:325:2: note: candidate: ‘template<class _Up, class _Ep> typename std::enable_if<std::__and_<std::__and_<std::is_convertible<typename std::unique_ptr<_Up, _Ep>::pointer, typename std::__uniq_ptr_impl<_Tp, _Dp>::pointer>, std::__not_<std::is_array<_Up> > >, std::is_assignable<_T2&, _U2&&> >::value, std::unique_ptr<_Tp, _Dp>&>::type std::unique_ptr<_Tp, _Dp>::operator=(std::unique_ptr<_Up, _Ep>&&) [with _Up = _Up; _Ep = _Ep; _Tp = TFormula; _Dp = std::default_delete<TFormula>]’
  325 | operator=(unique_ptr<_Up, _Ep>&& __u) noexcept
      | ^~~~~~~~
/usr/include/c++/9/bits/unique_ptr.h:325:2: note: template argument deduction/substitution failed:
classes/DelphesTF2.cc:35:27: note: mismatched types ‘std::unique_ptr<_Tp, _Dp>’ and ‘TFormula*’
   35 | fFormula = new TFormula();
      | ^
In file included from /usr/include/c++/9/memory:80,
                 from /home/abdullah/root/include/ROOT/TypeTraits.hxx:15,
                 from /home/abdullah/root/include/TString.h:30,
                 from /home/abdullah/root/include/TNamed.h:26,
                 from /home/abdullah/root/include/TFormula.h:15,
                 from /home/abdullah/root/include/TF1.h:29,
                 from /home/abdullah/root/include/TF2.h:26,
                 from ./classes/DelphesTF2.h:22,
                 from classes/DelphesTF2.cc:19:
/usr/include/c++/9/bits/unique_ptr.h:334:7: note: candidate: ‘std::unique_ptr<_Tp, _Dp>& std::unique_ptr<_Tp, _Dp>::operator=(std::nullptr_t) [with _Tp = TFormula; _Dp = std::default_delete<TFormula>; std::nullptr_t = std::nullptr_t]’
  334 | operator=(nullptr_t) noexcept
      | ^~~~~~~~
/usr/include/c++/9/bits/unique_ptr.h:334:17: note: no known conversion for argument 1 from ‘TFormula*’ to ‘std::nullptr_t’
  334 | operator=(nullptr_t) noexcept
      | ^~~~~~~~~
make: *** [Makefile:2430: tmp/classes/DelphesTF2.o] Error 1
make: *** Waiting for unfinished jobs....

also if the error doesn't seem to resolve, can you recommend me a madanalysis5 version that is compatible with ubunti 20.04
regards

Question information

Language:
English Edit question
Status:
Solved
For:
MadAnalysis 5 Edit question
Assignee:
No assignee Edit question
Solved by:
Abdullah Bin Saqlain
Solved:
Last query:
Last reply:
Revision history for this message
Abdullah Bin Saqlain (abdullah-saqlain) said :
#1

I figured out a way, putting the solution here for anyone wondering, you can manually install delphes by using the below commands

cd tools
git clone https://github.com/delphes/delphes.git
cd delphes
make

Revision history for this message
Abdullah Bin Saqlain (abdullah-saqlain) said (last edit ):
#2