diff --git a/Misc/rootlogon.C b/Misc/rootlogon.C
index aba6d28ada6fc76f9e069f5d9a20d6a9caa46a6d..1d1c52e6b6586aab04a6789717327e728f377554 100644
--- a/Misc/rootlogon.C
+++ b/Misc/rootlogon.C
@@ -1,5 +1,27 @@
+/*****************************************************************************
+ * Copyright (C) 2009-2010   this file is part of the NPTool Project         *
+ *                                                                           *
+ * For the licensing terms see $NPTOOL/Licence/NPTool_Licence                *
+ * For the list of contributors see $NPTOOL/Licence/Contributors             *
+ *****************************************************************************/
+
+/*****************************************************************************
+ * Original Author: N. de Sereville  contact address: deserevi@ipno.in2p3.fr *
+ *                                                                           *
+ * Creation Date  : 07/01/11                                                 *
+ * Last update    :                                                          *
+ *---------------------------------------------------------------------------*
+ * Decription: Example of rootlogon.C file which calls the NPToolLogon.C     *
+ *             located in NPLib/scripts and which loads all necessary NPTool *
+ *             information needed by ROOT.                                   *
+ *                                                                           *
+ *---------------------------------------------------------------------------*
+ * Comment:                                                                  *
+ *                                                                           *
+ *                                                                           *
+ *****************************************************************************/
 {
-   gROOT->ProcessLine(".include /YourPathToNPTool/NPTool/NPLib/include");
-   gSystem->Load("/YourPathToNPTool/NPTool/NPLib/lib/libInitialConditions.so");
-   gSystem->Load("/YourPathToNPTool/NPTool/NPLib/lib/libInteractionCoordinates.so");
+   // Load NPToolLogon.C macro dealing with all the NPLib shared libraries
+   TString path = gSystem->Getenv("NPLIB");
+   gROOT->ProcessLine(Form(".x %s/scripts/NPToolLogon.C", path.Data()));
 }
diff --git a/NPLib/scripts/NPToolLogon.C b/NPLib/scripts/NPToolLogon.C
new file mode 100644
index 0000000000000000000000000000000000000000..e3283729a3b3e7e84f215e770a12e4f1fb56544d
--- /dev/null
+++ b/NPLib/scripts/NPToolLogon.C
@@ -0,0 +1,54 @@
+/*****************************************************************************
+ * Copyright (C) 2009-2010   this file is part of the NPTool Project         *
+ *                                                                           *
+ * For the licensing terms see $NPTOOL/Licence/NPTool_Licence                *
+ * For the list of contributors see $NPTOOL/Licence/Contributors             *
+ *****************************************************************************/
+
+/*****************************************************************************
+ * Original Author: N. de Sereville  contact address: deserevi@ipno.in2p3.fr *
+ *                                                                           *
+ * Creation Date  : 07/01/11                                                 *
+ * Last update    :                                                          *
+ *---------------------------------------------------------------------------*
+ * Decription: This script loads automatically the NPLib include path and    *
+ *             shared.                                                       *
+ *                                                                           *
+ *---------------------------------------------------------------------------*
+ * Comment: This script should be called in your rootlogon.C file            *
+ *          See example in NPTool/Misc/rootlogon.C                           *
+ *                                                                           *
+ *                                                                           *
+ *****************************************************************************/
+{
+   TString path = gSystem->Getenv("NPLIB");
+
+   // Add include path
+   cout << "NPTool: adding include path ..." << endl;
+   gSystem->AddIncludePath(Form("%s/include", path.Data()));
+
+   // Add shared libraries
+   cout << "NPTool: loading NPLib shared libraries ..." << endl;
+   TString libpath = Form("%s/lib", path.Data());
+   TSystemDirectory libdir("libdir", libpath);
+   TList* listfile = libdir.GetListOfFiles();
+   
+   // Since the list is ordered alphabetically and that the 
+   // libVDetector.so library should be loaded before the 
+   // lib*Physics.so libraries, it is then loaded manually 
+   // first.
+   gSystem->Load(libpath+"/libVdetector.so");
+
+   // Since the libMust2Physics.so library uses TVector2
+   // objects, the libPhysics.so ROOT library is loaded.
+   gSystem->Load("libPhysics.so");
+
+   Int_t i = 0;
+   while (listfile->At(i)) {
+      TString libname = listfile->At(i++)->GetName();
+      if (libname.Contains("so") && !libname.Contains("libVDetector.so")) {
+         TString lib     = libpath + "/" + libname;
+         gSystem->Load(lib);
+      }
+   }
+}