Re: [Brahms-dev-l] PROOF with your own library

From: Hironori Ito <hito@rcf.rhic.bnl.gov>
Date: Wed Aug 31 2005 - 10:40:52 EDT
Hello.  This is an additional comment to the previous instruction.  As I 
found out, the instruction is correct.  (It actually works.)   But, you 
need to be carefull with SETUP.C file since in the PROOF session, your 
include path is not correct.  For PROOF to compile your code (meanning 
you do "set->Process("yourcode.C+") ), it needs to know header files of 
your library.  You can specify your include path by 
gSystem->SetIncludePath("-I/path_to_header") in your SETUP.C.

Hiro

Hironori Ito wrote:

> Hello.  Since a few people asked me about using own library with PROOF 
> session, this is my (not so complete) answer.  At first, the 
> instruction on ROOT page is none existing. If you do search on the 
> web, these are the better instuctions found on the web.
>
> http://people.web.psi.ch/feichtinger/doc/proof_examples.html
> http://www-linux.gsi.de/~manteufe/docus/Introduction_version2.html
>
> Here is a simple instructions.
>
> A. Some simple instruction (may not be complete): (If you just want to 
> load ready made library).
> 1.  You need to create directory MyLibrary (or something else)
> 2.  In there, you make other directory PROOF-INF
> 3.  In this directory, make SETUP.C file
>    Here, you write a simple root macro to load your library.  for 
> example,
>
> Int_t SETUP()
> {
>    gSystem->Load("libBratModuleCent.so");
>    // here you might also set incldue path and other.
>    return 1;
> }
>
> 4.  Then, from MyLibrary directory, you create par package by tar 
> -czvf MyLibrary.par MyLibrary
> 5.  start root
> 6.  start proof  gROOT->Proof("proofserver","proof_config_file");
> 7.  gProof->UploadPackage("MyLibrary.par");  // this copy the files to 
> all proof slaves.
> 8.  gProof->EnablePackage("MyLibrary");  // this seems to excute your 
> SETUP.C
> 9.  The rest is the same as what you usually do for proof.  TDSet etc....
>
> B.  If you have some library needed to compilied, you needs to the 
> following additional steps.
> 1.  In MyLibrary directory, copy all sources to that directory.
> 2.  In MyLibrary directory, create Makefile for your library
> 3.  In PROOF-INF directory, make BUILD.sh, which says "make" (or 
> whatever the instuction to run your make file.)
>
> Hiro
>
> _______________________________________________
> Brahms-dev-l mailing list
> Brahms-dev-l@lists.bnl.gov
> http://lists.bnl.gov/mailman/listinfo/brahms-dev-l



_______________________________________________
Brahms-dev-l mailing list
Brahms-dev-l@lists.bnl.gov
http://lists.bnl.gov/mailman/listinfo/brahms-dev-l
Received on Wed Aug 31 10:43:52 2005

This archive was generated by hypermail 2.1.8 : Wed Aug 31 2005 - 10:44:04 EDT