Logo ROOT   6.14/05
Reference Guide
Macros | Functions | Variables
pq2actions.cxx File Reference
#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"
Include dependency graph for pq2actions.cxx:

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
 

Macro Definition Documentation

◆ SDELETE

#define SDELETE (   x,
  y,
  z,
  w,
 
)    { SafeDelete(x); SafeDelete(y); SafeDelete(z); SafeDelete(w); SafeDelete(t); }

Definition at line 55 of file pq2actions.cxx.

◆ SDELTRE

#define SDELTRE (   x,
  y,
  z 
)    { SafeDelete(x); SafeDelete(y); SafeDelete(z); }

Definition at line 54 of file pq2actions.cxx.

◆ SDELTWO

#define SDELTWO (   x,
  y 
)    { SafeDelete(x); SafeDelete(y); }

Definition at line 53 of file pq2actions.cxx.

Function Documentation

◆ do_anadist()

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.

◆ do_anadist_ds()

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.

◆ do_anadist_getkey() [1/2]

void do_anadist_getkey ( const char *  p,
TString key 
)

Get the key corresponding to path 'p'.

Definition at line 1080 of file pq2actions.cxx.

◆ do_anadist_getkey() [2/2]

void do_anadist_getkey ( TUrl u,
TString key 
)

Get the key corresponding to url 'u'.

Definition at line 1095 of file pq2actions.cxx.

◆ do_anadist_plot()

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.

◆ do_cache()

void do_cache ( bool  clear,
const char *  ds 
)

Execute 'cache'.

Definition at line 60 of file pq2actions.cxx.

◆ do_info_server()

void do_info_server ( const char *  server)

Execute 'info-server'.

Definition at line 204 of file pq2actions.cxx.

◆ do_ls()

void do_ls ( const char *  ds,
const char *  opt 
)

Execute 'ls'.

Definition at line 71 of file pq2actions.cxx.

◆ do_ls_files_server()

void do_ls_files_server ( const char *  ds,
const char *  server 
)

Execute 'ls-files'.

Definition at line 82 of file pq2actions.cxx.

◆ do_put()

void do_put ( const char *  files,
const char *  opt 
)

Execute 'put'.

Definition at line 278 of file pq2actions.cxx.

◆ do_rm()

void do_rm ( const char *  dsname)

Execute 'rm'.

Definition at line 388 of file pq2actions.cxx.

◆ do_verify()

int do_verify ( const char *  dsname,
const char *  opt,
const char *  redir 
)

Execute 'verify'.

Definition at line 456 of file pq2actions.cxx.

◆ pq2register()

Int_t pq2register ( const char *  dsname,
const char *  files,
const char *  opt 
)

Definition at line 236 of file pq2actions.cxx.

◆ printDataSet()

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.

Variable Documentation

◆ ferr

TString ferr

Definition at line 38 of file pq2main.cxx.

◆ flog

TString flog

Definition at line 37 of file pq2main.cxx.

◆ fres

TString fres

Definition at line 39 of file pq2main.cxx.

◆ glabMet

const char* glabMet[] = { "#files", "size" }
static

Definition at line 43 of file pq2actions.cxx.

◆ gProtoPortMap

THashList gProtoPortMap

Definition at line 44 of file pq2actions.cxx.

◆ gverbose

Int_t gverbose

Definition at line 40 of file pq2main.cxx.