ROOT
6.07/01
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"
Go to the source code of this file.
Macros | |
#define | SDELTWO(x, y) { SafeDelete(x); SafeDelete(y); } |
#define | SDELTRE(x, y, z) { SafeDelete(x); SafeDelete(y); SafeDelete(z); } |
#define | SDELETE(x, y, z, w, t) { SafeDelete(x); SafeDelete(y); SafeDelete(z); SafeDelete(w); SafeDelete(t); } |
Functions | |
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... | |
void | do_cache (bool clear, const char *ds) |
Execute 'cache'. 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 | printDataSet (TFileCollection *fc, Int_t popt) |
Formatted printout of the content of TFileCollection 'fc'. More... | |
void | do_info_server (const char *server) |
Execute 'info-server'. More... | |
Int_t | pq2register (const char *dsname, const char *files, const char *opt) |
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... | |
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_plot (TH1D *h1d, const char *) |
Create the plot for the histogram, and save to 'fnout'. More... | |
Variables | |
TString | flog |
TString | ferr |
TString | fres |
Int_t | gverbose |
static const char * | glabMet [] = { "#files", "size" } |
THashList | gProtoPortMap |
#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.
Referenced by do_anadist_ds().
#define SDELTRE | ( | x, | |
y, | |||
z | |||
) | { SafeDelete(x); SafeDelete(y); SafeDelete(z); } |
Definition at line 54 of file pq2actions.cxx.
Referenced by do_anadist_ds().
#define SDELTWO | ( | x, | |
y | |||
) | { SafeDelete(x); SafeDelete(y); } |
Definition at line 53 of file pq2actions.cxx.
Referenced by do_anadist_ds().
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 530 of file pq2actions.cxx.
Referenced by main().
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 693 of file pq2actions.cxx.
Referenced by do_anadist().
Get the key corresponding to path 'p'.
Definition at line 1083 of file pq2actions.cxx.
Referenced by do_anadist_ds().
Get the key corresponding to url 'u'.
Definition at line 1098 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 1121 of file pq2actions.cxx.
void do_cache | ( | bool | clear, |
const char * | ds | ||
) |
void do_info_server | ( | const char * | server | ) |
void do_ls | ( | const char * | ds, |
const char * | opt | ||
) |
void do_ls_files_server | ( | const char * | ds, |
const char * | server | ||
) |
void do_put | ( | const char * | files, |
const char * | opt | ||
) |
void do_rm | ( | const char * | dsname | ) |
int do_verify | ( | const char * | dsname, |
const char * | opt, | ||
const char * | redir | ||
) |
Int_t pq2register | ( | const char * | dsname, |
const char * | files, | ||
const char * | opt | ||
) |
Definition at line 236 of file pq2actions.cxx.
Referenced by do_put().
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.
Referenced by do_info_server().
TString ferr |
Definition at line 38 of file pq2main.cxx.
Referenced by TWinNTSystem::RedirectOutput(), TProofServ::SetErrorHandlerFile(), and TAuthenticate::SshError().
TString flog |
Definition at line 37 of file pq2main.cxx.
Referenced by ClassImp(), redirectoutput(), TGRedirectOutputGuard::TGRedirectOutputGuard(), TProofServ::TProofServ(), unuranMulti2D(), and unuranMultiDim().
TString fres |
Definition at line 39 of file pq2main.cxx.
|
static |
Definition at line 43 of file pq2actions.cxx.
Referenced by do_anadist(), and do_anadist_ds().
THashList gProtoPortMap |
Definition at line 44 of file pq2actions.cxx.
Int_t gverbose |
Definition at line 40 of file pq2main.cxx.
Referenced by do_anadist(), do_anadist_ds(), do_anadist_getkey(), do_info_server(), do_ls_files_server(), do_rm(), and pq2register().