ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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:

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
 

Macro Definition Documentation

#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().

Function Documentation

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().

void do_anadist_getkey ( const char *  p,
TString key 
)

Get the key corresponding to path 'p'.

Definition at line 1083 of file pq2actions.cxx.

Referenced by do_anadist_ds().

void do_anadist_getkey ( TUrl u,
TString key 
)

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 
)

Execute 'cache'.

Definition at line 60 of file pq2actions.cxx.

Referenced by main().

void do_info_server ( const char *  server)

Execute 'info-server'.

Definition at line 204 of file pq2actions.cxx.

Referenced by main().

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

Execute 'ls'.

Definition at line 71 of file pq2actions.cxx.

Referenced by main().

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

Execute 'ls-files'.

Definition at line 82 of file pq2actions.cxx.

Referenced by main().

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

Execute 'put'.

Definition at line 278 of file pq2actions.cxx.

Referenced by main().

void do_rm ( const char *  dsname)

Execute 'rm'.

Definition at line 391 of file pq2actions.cxx.

Referenced by main().

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

Execute 'verify'.

Definition at line 459 of file pq2actions.cxx.

Referenced by main().

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().

Variable Documentation

TString ferr
TString flog
TString fres

Definition at line 39 of file pq2main.cxx.

const char* glabMet[] = { "#files", "size" }
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