Running in root session by shell script

Hi,

I have two querries:

I have two files which look like this:

========= Analysis.C=========
void Analysis(){
gSystem->Load(“libPhysics”);
gSystem->Load(“Analyzer.so”);
Analyzer t;
t.Loop();
}
-==========================

The other file is a .csh file
-----------run.csh-------
#!/bin/csh
make clean
make
root Analysis.C -l -q

if I use “at” command like this-> " at -f run.csh now + 1 minute"

I do not get the output root file which is produced by my Analyzer.so library.

Does someone know how to use “at” command to run it successfully.

NOTE: Actually I run my .so at remote server and it take almos 6-7 hours to complete the run. If I run it interactively then i log out autmatically after sometimes.

I have defined a function in my class like this:

Match(const vector& ,const vector& ,map<int,int>*);

What should I add to LinkDef.h to generate dictionary for
vector
map<int,int>

PS: I am aware that I can do it by loading libPhysics.so but how to do it if i have to generate the dictionary.

with best.
sushil

Hi,

Instead of root Analysis.C -l -q you should use root -q -l -b Analysis.C

For your vector and map, add to your linkdef:#pragma link C++ class vector<TLorentzVector>+; #pragma link C++ class map<int,int>+;

Cheers,
Philippe

Thanks. It works.

with best,
sushil