Example of use of the TAlien class (an implementation of TGrid)
void alien()
{
int nfiles = 10;
"-domain=cern.ch");
delete alien;
return;
}
printf("Using AliEn version %s\n", alien->GetInfo());
printf(
"Current directory is %s\n", alien->
Pwd());
if (alien->GetPathInfo(testdir, &size, &flags, &modtime) == 0) {
}
printf(
"Current directory is %s\n", alien->
Pwd());
char lfn[32], pfn[256];
for (i = 0; i < nfiles; i++) {
sprintf(lfn, "test-%d.root", i);
sprintf(pfn, "rfio:/castor/cern.ch/user/r/rdm/mytest-%d.root", i);
alien->AddFile(lfn, pfn, 1000000000);
}
for (i = 0; i < nfiles; i++) {
sprintf(lfn, "test-%d.root", i);
char *pf = alien->GetPhysicalFileName(lfn);
if (i == nfiles-1)
printf("last pfn retrieved is: %s\n", pf);
delete [] pf;
}
delete alien;
}
- Author
- Andreas Peters
Definition in file alien.C.