mcr_called/frootlogon.C

00001 // @(#)fROOT/mcr_called:$Name:  $:$Id: frootlogon.C,v 1.34 2007/09/05 10:25:11 Diego_Faso Exp $
00002 // Author: Diego Faso <mailto:faso@to.infn.it>, 2005/06/24
00003 
00004 #include "Riostream.h"
00005 void frootlogon(){
00006 
00007   // --- default include paths
00008   gInterpreter->AddIncludePath(FROOT::ExpandPathName("$FROOTSYS/ANALYSIS"));
00009   gInterpreter->AddIncludePath(FROOT::ExpandPathName("$FROOTSYS/GRAPH"));
00010   gInterpreter->AddIncludePath(FROOT::ExpandPathName("$FROOTSYS/GTS"));
00011   gInterpreter->AddIncludePath(FROOT::ExpandPathName("$FROOTSYS/GUI"));
00012   gInterpreter->AddIncludePath(FROOT::ExpandPathName("$FROOTSYS/LMD"));
00013   gInterpreter->AddIncludePath(FROOT::ExpandPathName("$FROOTSYS/PREAN"));
00014   gInterpreter->AddIncludePath(FROOT::ExpandPathName("$FROOTSYS/REC"));
00015   gInterpreter->AddIncludePath(FROOT::ExpandPathName("$FROOTSYS/SCC"));
00016   gInterpreter->AddIncludePath(FROOT::ExpandPathName("$FROOTSYS/SIL"));
00017   gInterpreter->AddIncludePath(FROOT::ExpandPathName("$FROOTSYS/STB"));
00018   gInterpreter->AddIncludePath(FROOT::ExpandPathName("$FROOTSYS/STEER"));
00019   gInterpreter->AddIncludePath(FROOT::ExpandPathName("$FROOTSYS/TOF"));
00020   gInterpreter->AddIncludePath(FROOT::ExpandPathName("$FND_WRK/include"));
00021   gInterpreter->AddIncludePath(FROOT::ExpandPathName("$MSQLDIR/include"));
00022   gInterpreter->AddIncludePath(FROOT::ExpandPathName("$MYSQL_DIR_INC"));
00023   gInterpreter->AddIncludePath(FROOT::ExpandPathName("$PWD"));
00024   gInterpreter->AddIncludePath(FROOT::ExpandPathName("$FROOTSYS/mcr_included"));
00025 
00026   //gEnv->SetValue("ACLiC.IncludePaths","-I$FROOTSYS/include -I$MSQLDIR/include -I$FND_WRK/include");
00027 
00028   // --- expert only
00029   gEnv->SetValue("Root.MemCheck","0");
00030   gEnv->SetValue("Root.MemCheckFile","froot_memcheck.out");
00031 
00032   gEnv->SetValue("Root.Debug",0);
00033   gEnv->SetValue("Root.Stacktrace","yes");
00034 
00035   gEnv->SetValue("Unix.*.Root.UseThreads","true");
00036   gEnv->SetValue("Canvas.ShowEventStatus","true");
00037 
00038   // ---
00039   MemInfo_t *infom = new MemInfo_t();
00040   gSystem->GetMemInfo(infom);
00041   SysInfo_t *infos = new SysInfo_t();
00042   gSystem->GetSysInfo(infos);
00043   // default froot prompt
00044   //
00045   cout << endl << endl;
00046   cout << "_______________________________________" << endl;
00047   cout << "         WELCOME to fROOT" << endl;
00048   cout << "   - froot release  : " << FROOT::GetFrootVersion() << endl;
00049   cout << "   - fidarc release : " << FIN_PHYS::FidaVer_Name() << endl;
00050   cout << "   - root version   : " << gROOT->GetVersion() << endl << endl;
00051   cout << "_______________________________________" << endl;
00052   cout << "   - HOSTNAME     : " <<  gSystem->HostName() << endl;
00053   cout << "   - Cpu type     : " <<  infos->fModel << endl;
00054   cout << "   - Num. of CPUs : " <<  infos->fCpus << endl;
00055   cout << "   - CPU cache    : " <<  infos->fL2Cache << " KB" << endl;
00056   cout << "   - RAM (total)  : " <<  infom->fMemTotal  << " MB" << endl;
00057   cout << "   - SWAP (total) : " <<  infom->fSwapTotal << " MB" << endl;
00058   cout << "_______________________________________" << endl;
00059   //
00060   TDatime mynow = TDatime();
00061   mynow.Print();
00062   if(gClient){
00063     cout << "_______________________________________" << endl << endl;
00064     cout << "       screen resolution: " << gClient->GetDisplayWidth() << " x " << gClient->GetDisplayHeight() << endl;
00065     cout << " (screen-adjust factors: " << FROOT::Gui::GetTGadj(0) << " ; " << FROOT::Gui::GetTGadj(1) << ")." << endl;
00066     cout << "_______________________________________" << endl << endl;
00067   }
00068   else cout << "Warning: you will not be able to use GUI within this session (\"gClient\" not defined)." << endl << endl;
00069 
00070   delete infom;
00071   delete infos;
00072 }
00073 

Generated on Tue Oct 16 15:40:47 2007 by  doxygen 1.5.2