52 std::cout <<
"BEGIN DUMP" << std::endl;
58 while ((pair = (
TPair *) next2())) {
64 std::cout <<
"Key: " << keyStr->
GetString() <<
" ";
67 std::cout <<
"Value: " << valueStr->GetString();
69 std::cout << std::endl;
73 std::cout <<
"END DUMP" << std::endl;
183 size = atol(
GetKey(i,
"size"));
185 const char *md5 =
GetKey(i,
"md5");
186 const char *uuid =
GetKey(i,
"guid");
191 if (uuid && !uuid[0])
206 Info(
"GetFileInfoList",
"Adding Url %s with Msd %s\n", turl.
Data(),
208 newfileinfolist->
Add(
new TFileInfo(turl, size, uuid, md5));
210 return newfileinfolist;
219 Int_t totalfiles = 0;
225 printf(
"( %06d ) LFN: %-80s Size[Bytes]: %10s GUID: %s\n",
229 printf(
"( %06d ) LFN: .../%-48s Size[Bytes]: %10s GUID: %s\n",
234 totaldata += atol(
GetKey(i,
"size"));
238 printf(
"------------------------------------------------------------\n");
239 printf(
"-> Result contains %.02f MB in %d Files.\n",
240 totaldata / 1024. / 1024., totalfiles);
248 printf(
"------------------------------------------------------------\n");
249 while ((pair = (
TPair *) next2())) {
254 if (keyStr && valueStr)
256 valueStr->GetName());
const char * GetName() const
Returns name of object.
virtual const char * BaseName(const char *pathname)
Base name of a file name. Base name of /user/root is root.
ClassImp(TSeqCollection) Int_t TSeqCollection TIter next(this)
Return index of object in collection.
const char Int_t const char TProof Int_t const char const char * msd
Collectable string class.
This class represents a WWW compatible URL.
virtual void SetOwner(Bool_t enable=kTRUE)
Set whether this collection is the owner (enable==true) of its content.
virtual void Info(const char *method, const char *msgfmt,...) const
Issue info message.
const THashTable * GetTable() const
virtual TObject * FindObject(const char *name) const
Find an object in this list using its name.
const char * GetOptions() const
virtual void Print(Option_t *option="") const
Print the AlienResult info.
virtual TObject * At(Int_t idx) const
Returns the object at position idx. Returns 0 if idx is out of range.
const char * Data() const
virtual Bool_t SetKey(UInt_t i, const char *key, const char *value)
Set the key.
virtual TList * GetFileInfoList() const
Return a file info list.
TString GetString() const
R__EXTERN TSystem * gSystem
virtual TObject * Remove(TObject *obj)
Remove object from the list.
virtual void DumpResult()
Dump result set.
virtual const TEntryList * GetEntryList(UInt_t i) const
Return the entry list, if evtlist was defined as a tag.
const char * GetUrl(Bool_t withDeflt=kFALSE) const
Return full URL.
ClassImp(TAlienResult) TAlienResult
Cleanup object.
virtual const char * GetKey(UInt_t i, const char *key) const
Return the key.
Class used by TMap to store (key,value) pairs.
virtual Int_t GetSize() const
TMap implements an associative array of (key,value) pairs using a THashTable for efficient retrieval ...
ClassImp(TMCParticle) void TMCParticle printf(": p=(%7.3f,%7.3f,%9.3f) ;", fPx, fPy, fPz)
Mother of all ROOT objects.
virtual void Add(TObject *obj)
void SetOptions(const char *opt)
virtual const char * GetPath(UInt_t i) const
Return path.
Class describing a generic file including meta information.
virtual const char * GetFileNamePath(UInt_t i) const
Return file name path.
A List of entry numbers in a TTree or TChain.
virtual const char * GetFileName(UInt_t i) const
Return a file name.