ROOT
6.06/09
Reference Guide
|
#include "TAlienFile.h"
#include "TAlienResult.h"
#include "TAlien.h"
#include "TROOT.h"
#include "TObjString.h"
#include "TMap.h"
#include "TObjArray.h"
#include "TString.h"
#include "Rtypes.h"
#include "TSystem.h"
#include "TStopwatch.h"
#include "TVirtualMonitoring.h"
#include "TVirtualMutex.h"
#include "TProcessUUID.h"
#include "TUrl.h"
#include "TError.h"
#include <cstdlib>
Go to the source code of this file.
Macros | |
#define | MAX_FILE_IMAGES 16 |
Functions | |
ClassImp (TAlienFile) TAlienFile | |
Create an Alien File Object. More... | |
#define MAX_FILE_IMAGES 16 |
Referenced by TAlienFile::Open().
ClassImp | ( | TAlienFile | ) |
Create an Alien File Object.
An AliEn File is the same as a TFile except that its real tranfer URL is resolved via an Alien service. The url argument must be of the form: alien:/[machine]/path/file.root Using the option access, another access protocol (PFN) can be specified for an LFN e.g.: "alien:///alice/test.root" If you want to write a file on specific storage element use the syntax "alien:///alice/test.root?&se=Alice::CERN::Storage" The default SE is specified by the environment variable alien_CLOSE_SE
If you read a file, the closest file image to alien_CLOSE_SE is taken. If the file cannot opened from the closest image, the next image is tried, until there is no image location left to be tried.
If the file specified in the URL does not exist, is not accessable or can not be created the kZombie bit will be set in the TAlienFile object. Use IsZombie() to see if the file is accessable. For a description of the option and other arguments see the TFile ctor. The preferred interface to this constructor is via TFile::Open().
Warning: TAlienFile objects should only be created through the factory functions: TFile::Open("alien://..."); or TAlienFile::Open("alien://...");
Don't use "new TAlienFile" directly unless you know, what you are doing
Definition at line 49 of file TAlienFile.cxx.