Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
h2root.cxx File Reference
#include <cstdlib>
#include <cstring>
#include <cctype>
#include <iostream>
#include "TFile.h"
#include "TDirectoryFile.h"
#include "TTree.h"
#include "TBranch.h"
#include "TLeafI.h"
#include "TH1.h"
#include "TH2.h"
#include "TProfile.h"
#include "TGraph.h"
#include "TMath.h"
#include "strlcpy.h"
#include "snprintf.h"
Include dependency graph for h2root.cxx:

Macros

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

Functions

void convert_1d (Int_t id)
 convert 1d histogram
void convert_2d (Int_t id)
 convert 2d histogram
void convert_cwn (Int_t id)
 convert column wise ntuple
void convert_directory (const char *dir)
 convert a directory
void convert_profile (Int_t id)
 the following structure is used in Hbook lcid points to the profile in array iq lcont = lq(lcid-1) lw = lq(lcont) ln = lq(lw) if option S jbyt(iq(lw),1,2) = 1 if option I jbyt(iq(lw),1,2) = 2
void convert_rwn (Int_t id)
 convert row wise ntuple
void hbnam_ (const int &, const char *, const int &, const char *, const int &, fortran_charlen_t, fortran_charlen_t)
void hcdir_ (const char *, const char *, fortran_charlen_t, fortran_charlen_t)
void hdcofl_ ()
void hdelet_ (const int &)
void hgive_ (const int &, const char *, const int &, const float &, const float &, const int &, const float &, const float &, const int &, const int &, fortran_charlen_t)
void hgiven_ (const int &, const char *, const int &, const char *, const float &, const float &, fortran_charlen_t, fortran_charlen_t)
void hgnf_ (const int &, const int &, const float &, const int &)
void hgnpar_ (const int &, const char *, fortran_charlen_t)
void hgnt_ (const int &, const int &, const int &)
float hi_ (const int &, const int &)
float hie_ (const int &, const int &)
float hif_ (const int &, const int &)
float hij_ (const int &, const int &, const int &)
float hije_ (const int &, const int &, const int &)
void hijxy_ (const int &, const int &, const int &, const float &, const float &)
void hix_ (const int &, const int &, const float &)
void hlimit_ (const int &)
void hmaxim_ (const int &, const float &)
void hminim_ (const int &, const float &)
void hnoent_ (const int &, const int &)
void hntvar2_ (const int &, const int &, const char *, const char *, const char *, int &, int &, int &, int &, int &, fortran_charlen_t, fortran_charlen_t, fortran_charlen_t)
void hprntu_ (const int &)
void hrin_ (const int &, const int &, const int &)
void hropen_ (const int &, const char *, const char *, const char *, const int &, const int &, fortran_charlen_t, fortran_charlen_t, fortran_charlen_t)
int main (int argc, char **argv)
void rzink_ (const int &, const int &, const char *, fortran_charlen_t)
void uhtoc_ (const int &, const int &, const char *, int &, fortran_charlen_t)
void zitoh_ (const int &, const int &, const int &)

Variables

char bigbuf_ [4000000]
Int_t bufsize = 64000
char chtitl [128]
Int_t golower = 1
int hcbits_ [37]
int hcbook_ [51]
int idb
char idname [128]
intiq
const Int_t kMAX1 = 8
const Int_t kMIN1 = 7
int lcdir
int lcid
int lcont
intlq
int ncx
int ncy
int nentries
int nwt
Int_t optcwn = 1
int pawc_ [4000000]
float * q
int quest_ [100]
int rzcl_ [11]
float xmax
float xmin
float ymax
float ymin

Macro Definition Documentation

◆ bigbuf

#define bigbuf   bigbuf_

Definition at line 46 of file h2root.cxx.

◆ DEFCHAR

#define DEFCHAR   const char*

Definition at line 132 of file h2root.cxx.

◆ hbnam

#define hbnam   hbnam_

Definition at line 119 of file h2root.cxx.

◆ hbnamc

#define hbnamc   hbnamc_

Definition at line 118 of file h2root.cxx.

◆ hbname

#define hbname   hbname_

Definition at line 117 of file h2root.cxx.

◆ hcbits

#define hcbits   hcbits_

Definition at line 49 of file h2root.cxx.

◆ hcbook

#define hcbook   hcbook_

Definition at line 50 of file h2root.cxx.

◆ hcdir

#define hcdir   hcdir_

Definition at line 127 of file h2root.cxx.

◆ hdcofl

#define hdcofl   hdcofl_

Definition at line 112 of file h2root.cxx.

◆ hdelet

#define hdelet   hdelet_

Definition at line 115 of file h2root.cxx.

◆ hgive

#define hgive   hgive_

Definition at line 105 of file h2root.cxx.

◆ hgiven

#define hgiven   hgiven_

Definition at line 106 of file h2root.cxx.

◆ hgnf

#define hgnf   hgnf_

Definition at line 109 of file h2root.cxx.

◆ hgnpar

#define hgnpar   hgnpar_

Definition at line 108 of file h2root.cxx.

◆ hgnt

#define hgnt   hgnt_

Definition at line 110 of file h2root.cxx.

◆ hi

#define hi   hi_

Definition at line 120 of file h2root.cxx.

◆ hie

#define hie   hie_

Definition at line 121 of file h2root.cxx.

◆ hif

#define hif   hif_

Definition at line 122 of file h2root.cxx.

◆ hij

#define hij   hij_

Definition at line 123 of file h2root.cxx.

◆ hije

#define hije   hije_

Definition at line 126 of file h2root.cxx.

◆ hijxy

#define hijxy   hijxy_

Definition at line 125 of file h2root.cxx.

◆ hix

#define hix   hix_

Definition at line 124 of file h2root.cxx.

◆ hlimit

#define hlimit   hlimit_

Definition at line 101 of file h2root.cxx.

◆ hmaxim

#define hmaxim   hmaxim_

Definition at line 113 of file h2root.cxx.

◆ hminim

#define hminim   hminim_

Definition at line 114 of file h2root.cxx.

◆ hnoent

#define hnoent   hnoent_

Definition at line 104 of file h2root.cxx.

◆ hntvar2

#define hntvar2   hntvar2_

Definition at line 116 of file h2root.cxx.

◆ hprntu

#define hprntu   hprntu_

Definition at line 107 of file h2root.cxx.

◆ hrin

#define hrin   hrin_

Definition at line 103 of file h2root.cxx.

◆ hropen

#define hropen   hropen_

Definition at line 102 of file h2root.cxx.

◆ PASSCHAR

#define PASSCHAR ( string)
Value:
string

Definition at line 133 of file h2root.cxx.

◆ pawc

#define pawc   pawc_

Definition at line 47 of file h2root.cxx.

◆ PAWC_SIZE

#define PAWC_SIZE   4000000

Definition at line 45 of file h2root.cxx.

◆ quest

#define quest   quest_

Definition at line 48 of file h2root.cxx.

◆ rzcl

#define rzcl   rzcl_

Definition at line 51 of file h2root.cxx.

◆ rzink

#define rzink   rzink_

Definition at line 111 of file h2root.cxx.

◆ type_of_call

#define type_of_call

Definition at line 131 of file h2root.cxx.

◆ uhtoc

#define uhtoc   uhtoc_

Definition at line 129 of file h2root.cxx.

◆ zitoh

#define zitoh   zitoh_

Definition at line 128 of file h2root.cxx.

Function Documentation

◆ convert_1d()

void convert_1d ( Int_t id)
extern

convert 1d histogram

Definition at line 480 of file h2root.cxx.

◆ convert_2d()

void convert_2d ( Int_t id)
extern

convert 2d histogram

Definition at line 534 of file h2root.cxx.

◆ convert_cwn()

void convert_cwn ( Int_t id)
extern

convert column wise ntuple

Definition at line 680 of file h2root.cxx.

◆ convert_directory()

void convert_directory ( const char * dir)
extern

convert a directory

Definition at line 369 of file h2root.cxx.

◆ convert_profile()

void convert_profile ( Int_t id)
extern

the following structure is used in Hbook lcid points to the profile in array iq lcont = lq(lcid-1) lw = lq(lcont) ln = lq(lw) if option S jbyt(iq(lw),1,2) = 1 if option I jbyt(iq(lw),1,2) = 2

Definition at line 576 of file h2root.cxx.

◆ convert_rwn()

void convert_rwn ( Int_t id)
extern

convert row wise ntuple

Definition at line 612 of file h2root.cxx.

◆ hbnam_()

void hbnam_ ( const int & ,
const char * ,
const int & ,
const char * ,
const int & ,
fortran_charlen_t ,
fortran_charlen_t  )

◆ hcdir_()

void hcdir_ ( const char * ,
const char * ,
fortran_charlen_t ,
fortran_charlen_t  )

◆ hdcofl_()

void hdcofl_ ( )

◆ hdelet_()

void hdelet_ ( const int & )

◆ hgive_()

void hgive_ ( const int & ,
const char * ,
const int & ,
const float & ,
const float & ,
const int & ,
const float & ,
const float & ,
const int & ,
const int & ,
fortran_charlen_t  )

◆ hgiven_()

void hgiven_ ( const int & ,
const char * ,
const int & ,
const char * ,
const float & ,
const float & ,
fortran_charlen_t ,
fortran_charlen_t  )

◆ hgnf_()

void hgnf_ ( const int & ,
const int & ,
const float & ,
const int &  )

◆ hgnpar_()

void hgnpar_ ( const int & ,
const char * ,
fortran_charlen_t  )

◆ hgnt_()

void hgnt_ ( const int & ,
const int & ,
const int &  )

◆ hi_()

float hi_ ( const int & ,
const int &  )

◆ hie_()

float hie_ ( const int & ,
const int &  )

◆ hif_()

float hif_ ( const int & ,
const int &  )

◆ hij_()

float hij_ ( const int & ,
const int & ,
const int &  )

◆ hije_()

float hije_ ( const int & ,
const int & ,
const int &  )

◆ hijxy_()

void hijxy_ ( const int & ,
const int & ,
const int & ,
const float & ,
const float &  )

◆ hix_()

void hix_ ( const int & ,
const int & ,
const float &  )

◆ hlimit_()

void hlimit_ ( const int & )

◆ hmaxim_()

void hmaxim_ ( const int & ,
const float &  )

◆ hminim_()

void hminim_ ( const int & ,
const float &  )

◆ hnoent_()

void hnoent_ ( const int & ,
const int &  )

◆ hntvar2_()

void hntvar2_ ( const int & ,
const int & ,
const char * ,
const char * ,
const char * ,
int & ,
int & ,
int & ,
int & ,
int & ,
fortran_charlen_t ,
fortran_charlen_t ,
fortran_charlen_t  )

◆ hprntu_()

void hprntu_ ( const int & )

◆ hrin_()

void hrin_ ( const int & ,
const int & ,
const int &  )

◆ hropen_()

void hropen_ ( const int & ,
const char * ,
const char * ,
const char * ,
const int & ,
const int & ,
fortran_charlen_t ,
fortran_charlen_t ,
fortran_charlen_t  )

◆ main()

int main ( int argc,
char ** argv )

Definition at line 270 of file h2root.cxx.

◆ rzink_()

void rzink_ ( const int & ,
const int & ,
const char * ,
fortran_charlen_t  )

◆ uhtoc_()

void uhtoc_ ( const int & ,
const int & ,
const char * ,
int & ,
fortran_charlen_t  )

◆ zitoh_()

void zitoh_ ( const int & ,
const int & ,
const int &  )

Variable Documentation

◆ bigbuf_

char bigbuf_[4000000]

Definition at line 57 of file h2root.cxx.

◆ bufsize

Int_t bufsize = 64000

Definition at line 268 of file h2root.cxx.

◆ chtitl

char chtitl[128]

Definition at line 84 of file h2root.cxx.

◆ golower

Int_t golower = 1

Definition at line 267 of file h2root.cxx.

◆ hcbits_

int hcbits_[37]

Definition at line 60 of file h2root.cxx.

◆ hcbook_

int hcbook_[51]

Definition at line 61 of file h2root.cxx.

◆ idb

int idb

Definition at line 85 of file h2root.cxx.

◆ idname

char idname[128]

Definition at line 82 of file h2root.cxx.

◆ iq

int* iq

Definition at line 80 of file h2root.cxx.

◆ kMAX1

const Int_t kMAX1 = 8

Definition at line 89 of file h2root.cxx.

◆ kMIN1

const Int_t kMIN1 = 7

Definition at line 88 of file h2root.cxx.

◆ lcdir

int lcdir

Definition at line 86 of file h2root.cxx.

◆ lcid

int lcid

Definition at line 86 of file h2root.cxx.

◆ lcont

int lcont

Definition at line 86 of file h2root.cxx.

◆ lq

int * lq

Definition at line 80 of file h2root.cxx.

◆ ncx

int ncx

Definition at line 85 of file h2root.cxx.

◆ ncy

int ncy

Definition at line 85 of file h2root.cxx.

◆ nentries

int nentries

Definition at line 83 of file h2root.cxx.

◆ nwt

int nwt

Definition at line 85 of file h2root.cxx.

◆ optcwn

Int_t optcwn = 1

Definition at line 269 of file h2root.cxx.

◆ pawc_

int pawc_[4000000]

Definition at line 58 of file h2root.cxx.

◆ q

float* q

Definition at line 81 of file h2root.cxx.

◆ quest_

int quest_[100]

Definition at line 59 of file h2root.cxx.

◆ rzcl_

int rzcl_[11]

Definition at line 62 of file h2root.cxx.

◆ xmax

float xmax

Definition at line 87 of file h2root.cxx.

◆ xmin

float xmin

Definition at line 87 of file h2root.cxx.

◆ ymax

float ymax

Definition at line 87 of file h2root.cxx.

◆ ymin

float ymin

Definition at line 87 of file h2root.cxx.