h2root.cxx File Reference

#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "Riostream.h"
#include "TFile.h"
#include "TDirectoryFile.h"
#include "TTree.h"
#include "TLeafI.h"
#include "TH1.h"
#include "TH2.h"
#include "TProfile.h"
#include "TGraph.h"
#include "TMath.h"

Go to the source code of this file.

Defines

#define PAWC_SIZE   4000000
#define bigbuf   bigbuf_
#define pawc   pawc_
#define quest   quest_
#define hcbits   hcbits_
#define hcbook   hcbook_
#define rzcl   rzcl_
#define hlimit   hlimit_
#define hropen   hropen_
#define hrin   hrin_
#define hnoent   hnoent_
#define hgive   hgive_
#define hgiven   hgiven_
#define hprntu   hprntu_
#define hgnpar   hgnpar_
#define hgnf   hgnf_
#define hgnt   hgnt_
#define rzink   rzink_
#define hdcofl   hdcofl_
#define hmaxim   hmaxim_
#define hminim   hminim_
#define hdelet   hdelet_
#define hntvar2   hntvar2_
#define hbname   hbname_
#define hbnamc   hbnamc_
#define hbnam   hbnam_
#define hi   hi_
#define hie   hie_
#define hif   hif_
#define hij   hij_
#define hix   hix_
#define hijxy   hijxy_
#define hije   hije_
#define hcdir   hcdir_
#define zitoh   zitoh_
#define uhtoc   uhtoc_
#define type_of_call
#define DEFCHAR   const char*
#define PASSCHAR(string)   string

Functions

void type_of_call hlimit (const int &)
void type_of_call hropen (const int &, DEFCHAR, DEFCHAR, DEFCHAR, const int &, const int &, const int, const int, const int)
void type_of_call hrin (const int &, const int &, const int &)
void type_of_call hnoent (const int &, const int &)
void type_of_call hgive (const int &, DEFCHAR, const int &, const float &, const float &, const int &, const float &, const float &, const int &, const int &, const int)
void type_of_call hgiven (const int &, DEFCHAR, const int &, DEFCHAR, const float &, const float &, const int, const int)
void type_of_call hntvar2 (const int &, const int &, DEFCHAR, DEFCHAR, DEFCHAR, int &, int &, int &, int &, int &, const int, const int, const int)
void type_of_call hbnam (const int &, DEFCHAR, const int &, DEFCHAR, const int &, const int, const int)
void type_of_call hprntu (const int &)
void type_of_call hgnpar (const int &, const char *, const int)
void type_of_call hgnf (const int &, const int &, const float &, const int &)
void type_of_call hgnt (const int &, const int &, const int &)
void type_of_call rzink (const int &, const int &, const char *, const int)
void type_of_call hdcofl ()
void type_of_call hmaxim (const int &, const float &)
void type_of_call hminim (const int &, const float &)
void type_of_call hdelet (const int &)
void type_of_call hix (const int &, const int &, const float &)
void type_of_call hijxy (const int &, const int &, const int &, const float &, const float &)
float type_of_call hi (const int &, const int &)
float type_of_call hie (const int &, const int &)
float type_of_call hif (const int &, const int &)
float type_of_call hij (const int &, const int &, const int &)
float type_of_call hije (const int &, const int &, const int &)
void type_of_call hcdir (DEFCHAR, DEFCHAR, const int, const int)
void type_of_call zitoh (const int &, const int &, const int &)
void type_of_call uhtoc (const int &, const int &, DEFCHAR, int &, const int)
void convert_directory (const char *)
void convert_1d (Int_t id)
void convert_2d (Int_t id)
void convert_profile (Int_t id)
void convert_cwn (Int_t id)
void convert_rwn (Int_t id)
int main (int argc, char **argv)

Variables

char bigbuf [PAWC_SIZE]
int pawc [PAWC_SIZE]
int quest [100]
int hcbits [37]
int hcbook [51]
int rzcl [11]
int * iq
int * lq
float * q
char idname [128]
int nentries
char chtitl [128]
int ncx
int ncy
int nwt
int idb
int lcont
int lcid
int lcdir
float xmin
float xmax
float ymin
float ymax
const Int_t kMIN1 = 7
const Int_t kMAX1 = 8
Int_t golower = 1
Int_t bufsize = 64000
Int_t optcwn = 1


Define Documentation

#define bigbuf   bigbuf_

Definition at line 43 of file h2root.cxx.

Referenced by convert_cwn(), and THbookFile::ConvertCWN().

#define DEFCHAR   const char*

Definition at line 129 of file h2root.cxx.

#define hbnam   hbnam_

Definition at line 116 of file h2root.cxx.

#define hbnamc   hbnamc_

Definition at line 115 of file h2root.cxx.

#define hbname   hbname_

Definition at line 114 of file h2root.cxx.

#define hcbits   hcbits_

Definition at line 46 of file h2root.cxx.

#define hcbook   hcbook_

Definition at line 47 of file h2root.cxx.

#define hcdir   hcdir_

Definition at line 124 of file h2root.cxx.

#define hdcofl   hdcofl_

Definition at line 109 of file h2root.cxx.

#define hdelet   hdelet_

Definition at line 112 of file h2root.cxx.

#define hgive   hgive_

Definition at line 102 of file h2root.cxx.

#define hgiven   hgiven_

Definition at line 103 of file h2root.cxx.

#define hgnf   hgnf_

Definition at line 106 of file h2root.cxx.

#define hgnpar   hgnpar_

Definition at line 105 of file h2root.cxx.

#define hgnt   hgnt_

Definition at line 107 of file h2root.cxx.

#define hi   hi_

Definition at line 117 of file h2root.cxx.

#define hie   hie_

Definition at line 118 of file h2root.cxx.

#define hif   hif_

Definition at line 119 of file h2root.cxx.

#define hij   hij_

Definition at line 120 of file h2root.cxx.

#define hije   hije_

Definition at line 123 of file h2root.cxx.

#define hijxy   hijxy_

Definition at line 122 of file h2root.cxx.

#define hix   hix_

Definition at line 121 of file h2root.cxx.

#define hlimit   hlimit_

Definition at line 98 of file h2root.cxx.

#define hmaxim   hmaxim_

Definition at line 110 of file h2root.cxx.

#define hminim   hminim_

Definition at line 111 of file h2root.cxx.

#define hnoent   hnoent_

Definition at line 101 of file h2root.cxx.

#define hntvar2   hntvar2_

Definition at line 113 of file h2root.cxx.

#define hprntu   hprntu_

Definition at line 104 of file h2root.cxx.

#define hrin   hrin_

Definition at line 100 of file h2root.cxx.

#define hropen   hropen_

Definition at line 99 of file h2root.cxx.

#define PASSCHAR ( string   )     string

Definition at line 130 of file h2root.cxx.

#define pawc   pawc_

Definition at line 44 of file h2root.cxx.

#define PAWC_SIZE   4000000

Definition at line 42 of file h2root.cxx.

#define quest   quest_

Definition at line 45 of file h2root.cxx.

#define rzcl   rzcl_

Definition at line 48 of file h2root.cxx.

#define rzink   rzink_

Definition at line 108 of file h2root.cxx.

#define type_of_call

Definition at line 128 of file h2root.cxx.

#define uhtoc   uhtoc_

Definition at line 126 of file h2root.cxx.

Referenced by convert_directory().

#define zitoh   zitoh_

Definition at line 125 of file h2root.cxx.

Referenced by convert_directory().


Function Documentation

void convert_1d ( Int_t  id  ) 

Definition at line 453 of file h2root.cxx.

References TList::Add(), chtitl, TH2::Fill(), TH1::GetBinCenter(), TH1::GetListOfFunctions(), gr, h1, hcbits, hgive, hi, hie, hif, hnoent, i, idb, idname, kMAX1, kMIN1, lcid, lq, ncx, ncy, nentries, nwt, TH1::SetBinError(), TH1::SetEntries(), TH1::SetMaximum(), TH1::SetMinimum(), TGraph::SetPoint(), snprintf, TH1::Sumw2(), TObject::Write(), x, xmax, xmin, ymax, and ymin.

Referenced by convert_directory().

void convert_2d ( Int_t  id  ) 

Definition at line 506 of file h2root.cxx.

References chtitl, TH2::Fill(), h2, hgive, hij, hije, hijxy, hnoent, i, idb, idname, j, lcont, lq, ncx, ncy, nentries, nwt, TH1::SetCellError(), TH1::SetEntries(), snprintf, TH1::Sumw2(), TObject::Write(), x, xmax, xmin, y, ymax, and ymin.

Referenced by convert_directory().

void convert_cwn ( Int_t  id  ) 

Definition at line 649 of file h2root.cxx.

References bigbuf, TTree::Branch(), bufsize, chtitl, TTree::Fill(), TLeaf::GetLeafCount(), TBranch::GetListOfLeaves(), TLeafI::GetMaximum(), golower, hbnam, hgiven, hgnt, hnoent, hntvar2, i, idname, j, k, l, name, nbits, nentries, optcwn, PASSCHAR, TTree::Print(), TLeafI::SetMaximum(), snprintf, strlcat(), strlcpy(), TObjArray::UncheckedAt(), TTree::Write(), and x.

Referenced by convert_directory().

void convert_directory ( const char *   ) 

Definition at line 343 of file h2root.cxx.

References TDirectoryFile::cd(), TDirectory::cd(), chdir, convert_1d(), convert_2d(), convert_cwn(), convert_profile(), convert_rwn(), gDirectory, hcbits, hcbook, hcdir, hdcofl, hdelet, hrin, i, id, iq, k, lcdir, lcid, lcont, lq, ls(), PASSCHAR, quest, rzcl, rzink, strlcpy(), uhtoc, TDirectoryFile::Write(), and zitoh.

Referenced by main().

void convert_profile ( Int_t  id  ) 

Definition at line 541 of file h2root.cxx.

References chtitl, error, hgive, hnoent, i, idb, idname, iq, lcont, lq, n, ncx, ncy, nentries, nwt, option, p, snprintf, TMath::Sqrt(), xmax, xmin, ymax, and ymin.

Referenced by convert_directory().

void convert_rwn ( Int_t  id  ) 

Definition at line 583 of file h2root.cxx.

References TTree::Branch(), bufsize, chtitl, TTree::Fill(), golower, hgiven, hgnf, hgnpar, hnoent, i, idname, j, name, nentries, PASSCHAR, snprintf, TTree::Write(), and x.

Referenced by convert_directory().

void type_of_call hbnam ( const int &  ,
DEFCHAR  ,
const int &  ,
DEFCHAR  ,
const int &  ,
const   int,
const   int 
)

void type_of_call hcdir ( DEFCHAR  ,
DEFCHAR  ,
const   int,
const   int 
)

void type_of_call hdcofl (  ) 

void type_of_call hdelet ( const int &   ) 

void type_of_call hgive ( const int &  ,
DEFCHAR  ,
const int &  ,
const float &  ,
const float &  ,
const int &  ,
const float &  ,
const float &  ,
const int &  ,
const int &  ,
const   int 
)

void type_of_call hgiven ( const int &  ,
DEFCHAR  ,
const int &  ,
DEFCHAR  ,
const float &  ,
const float &  ,
const   int,
const   int 
)

void type_of_call hgnf ( const int &  ,
const int &  ,
const float &  ,
const int &   
)

void type_of_call hgnpar ( const int &  ,
const char *  ,
const   int 
)

void type_of_call hgnt ( const int &  ,
const int &  ,
const int &   
)

float type_of_call hi ( const int &  ,
const int &   
)

float type_of_call hie ( const int &  ,
const int &   
)

float type_of_call hif ( const int &  ,
const int &   
)

float type_of_call hij ( const int &  ,
const int &  ,
const int &   
)

float type_of_call hije ( const int &  ,
const int &  ,
const int &   
)

void type_of_call hijxy ( const int &  ,
const int &  ,
const int &  ,
const float &  ,
const float &   
)

void type_of_call hix ( const int &  ,
const int &  ,
const float &   
)

void type_of_call hlimit ( const int &   ) 

void type_of_call hmaxim ( const int &  ,
const float &   
)

void type_of_call hminim ( const int &  ,
const float &   
)

void type_of_call hnoent ( const int &  ,
const int &   
)

void type_of_call hntvar2 ( const int &  ,
const int &  ,
DEFCHAR  ,
DEFCHAR  ,
DEFCHAR  ,
int &  ,
int &  ,
int &  ,
int &  ,
int &  ,
const   int,
const   int,
const   int 
)

void type_of_call hprntu ( const int &   ) 

void type_of_call hrin ( const int &  ,
const int &  ,
const int &   
)

void type_of_call hropen ( const int &  ,
DEFCHAR  ,
DEFCHAR  ,
DEFCHAR  ,
const int &  ,
const int &  ,
const   int,
const   int,
const   int 
)

int main ( int  argc,
char **  argv 
)

Definition at line 254 of file h2root.cxx.

References bufsize, TFile::Close(), compress(), convert_directory(), RootCsg::dot(), golower, hlimit, hropen, iq, lq, TFile::ls(), NULL, TFile::Open(), optcwn, PASSCHAR, pawc, PAWC_SIZE, quest, snprintf, strcpy(), strlcat(), strlcpy(), and TFile::Write().

void type_of_call rzink ( const int &  ,
const int &  ,
const char *  ,
const   int 
)

void type_of_call uhtoc ( const int &  ,
const int &  ,
DEFCHAR  ,
int &  ,
const   int 
)

void type_of_call zitoh ( const int &  ,
const int &  ,
const int &   
)


Variable Documentation

char bigbuf[PAWC_SIZE]

Definition at line 54 of file h2root.cxx.

Int_t bufsize = 64000

Definition at line 252 of file h2root.cxx.

Referenced by TTree::Branch(), TDirectoryFile::CloneObject(), convert_cwn(), convert_rwn(), THbookFile::ConvertCWN(), THbookFile::ConvertRWN(), TUnixSystem::CopyFile(), ft_amiga_stream_io(), TWebFile::GetHunk(), main(), PyROOT::TTreeBranch::operator()(), stress8write(), TDirectoryWriteObject(), TXMLOutputStream::TXMLOutputStream(), MSIDir::Write(), TDirectory::WriteObject(), and XrdFfsPosix_getxattr().

char chtitl[128]

Definition at line 81 of file h2root.cxx.

Int_t golower = 1

Definition at line 251 of file h2root.cxx.

Referenced by convert_cwn(), convert_rwn(), THbookFile::ConvertCWN(), THbookFile::ConvertRWN(), and main().

int hcbits[37]

Definition at line 57 of file h2root.cxx.

int hcbook[51]

Definition at line 58 of file h2root.cxx.

int idb

Definition at line 82 of file h2root.cxx.

char idname[128]

Definition at line 79 of file h2root.cxx.

int* iq

Definition at line 77 of file h2root.cxx.

const Int_t kMAX1 = 8

Definition at line 86 of file h2root.cxx.

const Int_t kMIN1 = 7

Definition at line 85 of file h2root.cxx.

int lcdir

Definition at line 83 of file h2root.cxx.

int lcid

Definition at line 83 of file h2root.cxx.

int lcont

Definition at line 83 of file h2root.cxx.

int * lq

Definition at line 77 of file h2root.cxx.

int ncx

Definition at line 82 of file h2root.cxx.

int ncy

Definition at line 82 of file h2root.cxx.

int nentries

Definition at line 80 of file h2root.cxx.

int nwt

Definition at line 82 of file h2root.cxx.

Int_t optcwn = 1

Definition at line 253 of file h2root.cxx.

Referenced by convert_cwn(), and main().

int pawc[PAWC_SIZE]

Definition at line 55 of file h2root.cxx.

float* q

Definition at line 78 of file h2root.cxx.

int quest[100]

Definition at line 56 of file h2root.cxx.

int rzcl[11]

Definition at line 59 of file h2root.cxx.

float xmax

Definition at line 84 of file h2root.cxx.

float xmin

Definition at line 84 of file h2root.cxx.

float ymax

Definition at line 84 of file h2root.cxx.

float ymin

Definition at line 84 of file h2root.cxx.


Generated on Tue Jul 5 16:06:54 2011 for ROOT_528-00b_version by  doxygen 1.5.1