ROOT 6.14/05 Reference Guide |
#include <errno.h>
#include "pq2actions.h"
#include "pq2wrappers.h"
#include "redirguard.h"
#include "TFile.h"
#include "TFileCollection.h"
#include "TFileInfo.h"
#include "THashList.h"
#include "TH1D.h"
#include "TParameter.h"
#include "TRegexp.h"
#include "TString.h"
#include "TSystem.h"
Macros | |
#define | SDELETE(x, y, z, w, t) { SafeDelete(x); SafeDelete(y); SafeDelete(z); SafeDelete(w); SafeDelete(t); } |
#define | SDELTRE(x, y, z) { SafeDelete(x); SafeDelete(y); SafeDelete(z); } |
#define | SDELTWO(x, y) { SafeDelete(x); SafeDelete(y); } |
Functions | |
void | do_anadist (const char *ds, const char *servers, const char *ignsrvs, const char *excsrvs, const char *metrics, const char *fnout, const char *plot, const char *outfile, const char *infile) |
Execute 'analyze-distribution' for the dataset(s) described by 'ds'. More... | |
int | do_anadist_ds (TFileCollection *fc, const char *servers, const char *ignsrvs, const char *excsrvs, int met, const char *fnout, TList *distinfo, const char *outfile, const char *infile) |
Do analysis of dataset 'fc'. More... | |
void | do_anadist_getkey (const char *p, TString &key) |
Get the key corresponding to path 'p'. More... | |
void | do_anadist_getkey (TUrl *u, TString &key) |
Get the key corresponding to url 'u'. More... | |
int | do_anadist_plot (TH1D *h1d, const char *) |
Create the plot for the histogram, and save to 'fnout'. More... | |
void | do_cache (bool clear, const char *ds) |
Execute 'cache'. More... | |
void | do_info_server (const char *server) |
Execute 'info-server'. More... | |
void | do_ls (const char *ds, const char *opt) |
Execute 'ls'. More... | |
void | do_ls_files_server (const char *ds, const char *server) |
Execute 'ls-files'. More... | |
void | do_put (const char *files, const char *opt) |
Execute 'put'. More... | |
void | do_rm (const char *dsname) |
Execute 'rm'. More... | |
int | do_verify (const char *dsname, const char *opt, const char *redir) |
Execute 'verify'. More... | |
Int_t | pq2register (const char *dsname, const char *files, const char *opt) |
void | printDataSet (TFileCollection *fc, Int_t popt) |
Formatted printout of the content of TFileCollection 'fc'. More... | |
Variables | |
TString | ferr |
TString | flog |
TString | fres |
static const char * | glabMet [] = { "#files", "size" } |
THashList | gProtoPortMap |
Int_t | gverbose |
#define SDELETE | ( | x, | |
y, | |||
z, | |||
w, | |||
t | |||
) | { SafeDelete(x); SafeDelete(y); SafeDelete(z); SafeDelete(w); SafeDelete(t); } |
Definition at line 55 of file pq2actions.cxx.
#define SDELTRE | ( | x, | |
y, | |||
z | |||
) | { SafeDelete(x); SafeDelete(y); SafeDelete(z); } |
Definition at line 54 of file pq2actions.cxx.
#define SDELTWO | ( | x, | |
y | |||
) | { SafeDelete(x); SafeDelete(y); } |
Definition at line 53 of file pq2actions.cxx.
void do_anadist | ( | const char * | ds, |
const char * | servers, | ||
const char * | ignsrvs, | ||
const char * | excsrvs, | ||
const char * | metrics, | ||
const char * | fnout, | ||
const char * | plot, | ||
const char * | outfile, | ||
const char * | infile | ||
) |
Execute 'analyze-distribution' for the dataset(s) described by 'ds'.
The result is output to the screan and the details about file movement to file 'fnout', if defined.
Definition at line 527 of file pq2actions.cxx.
int do_anadist_ds | ( | TFileCollection * | fc, |
const char * | newsrvs = 0 , |
||
const char * | ignsrvs = 0 , |
||
const char * | excsrvs = 0 , |
||
int | met = 0 , |
||
const char * | fnout = 0 , |
||
TList * | distinfo = 0 , |
||
const char * | outfile = 0 , |
||
const char * | infile = 0 |
||
) |
Do analysis of dataset 'fc'.
Definition at line 690 of file pq2actions.cxx.
Get the key corresponding to path 'p'.
Definition at line 1080 of file pq2actions.cxx.
Get the key corresponding to url 'u'.
Definition at line 1095 of file pq2actions.cxx.
int do_anadist_plot | ( | TH1D * | h1d, |
const char * | |||
) |
Create the plot for the histogram, and save to 'fnout'.
Format determined by th extension of fnout.
Definition at line 1118 of file pq2actions.cxx.
void do_cache | ( | bool | clear, |
const char * | ds | ||
) |
Execute 'cache'.
Definition at line 60 of file pq2actions.cxx.
void do_info_server | ( | const char * | server | ) |
Execute 'info-server'.
Definition at line 204 of file pq2actions.cxx.
void do_ls | ( | const char * | ds, |
const char * | opt | ||
) |
Execute 'ls'.
Definition at line 71 of file pq2actions.cxx.
void do_ls_files_server | ( | const char * | ds, |
const char * | server | ||
) |
Execute 'ls-files'.
Definition at line 82 of file pq2actions.cxx.
void do_put | ( | const char * | files, |
const char * | opt | ||
) |
Execute 'put'.
Definition at line 278 of file pq2actions.cxx.
void do_rm | ( | const char * | dsname | ) |
Execute 'rm'.
Definition at line 388 of file pq2actions.cxx.
int do_verify | ( | const char * | dsname, |
const char * | opt, | ||
const char * | redir | ||
) |
Execute 'verify'.
Definition at line 456 of file pq2actions.cxx.
Int_t pq2register | ( | const char * | dsname, |
const char * | files, | ||
const char * | opt | ||
) |
Definition at line 236 of file pq2actions.cxx.
void printDataSet | ( | TFileCollection * | fc, |
Int_t | popt | ||
) |
Formatted printout of the content of TFileCollection 'fc'.
Options in the form popt = u * 10 + f f 0 => header only, 1 => header + files when printing files u 0 => print file name only, 1 => print full URL
Definition at line 172 of file pq2actions.cxx.
TString ferr |
Definition at line 38 of file pq2main.cxx.
TString flog |
Definition at line 37 of file pq2main.cxx.
TString fres |
Definition at line 39 of file pq2main.cxx.
|
static |
Definition at line 43 of file pq2actions.cxx.
THashList gProtoPortMap |
Definition at line 44 of file pq2actions.cxx.
Int_t gverbose |
Definition at line 40 of file pq2main.cxx.