Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

1.2 - Root macro to load root libraries

 The macro LoadLibraries.C can be used to load (within a root session) the following root libraries:

  •  libcommonRootData.so
  •  libmcRootData.so
  •  libdigiRootData.so
  •  libreconRootData.so
  •  libPhysics.so

 The only argument of this macro is a string containing the software package and the release version to be used, in the following way:

"SoftPackage-Version"

An example of how to use it follows:

Wiki Markup
_root \[0\] .x  LoadLibraries.C("BeamtestRelease-v3r0907p2")_

As it will be shown in the next section, one can also include this macro in another macro and execute it from there:

#include "LoadLibraries.C" 

void sillymacro(TString softrelease = "BeamtestRelease-v3r0907p2")

{

 LoadLibraries(softrelease.Data())

 etc,etc, etc...

Important Remark

Since the macro is executed within root, it cannot modify the root version accordingly to the software package to be used. Therefore, before executing this macro, check that you are using the appropriate root version for the software package you want to use.

 

2 -  Useful macro to select  the events you want to display with FRED

...