Classes | |
class | Aida2RootEx1 |
Simple algorithm which used aida2root utility. More... | |
class | Aida2RootEx2 |
Simple algorithm which uses aida2root utility. More... | |
Functions | |
def | configure |
def | useScript |
Variables | |
string | __author__ = "Vanya BELYAEV ibelyaev@phys.syr.edu" |
SUCCESS = gaudimodule.SUCCESS | |
int | aida2root = 2 |
list | paths |
list of booked histograms | |
tuple | gaudi = gaudimodule.AppMgr() |
def Aida2RootEx::configure | ( | gaudi = None |
) |
the main configuration method
Definition at line 96 of file Aida2RootEx.py.
00096 : 00097 """ the main configuration method """ 00098 00099 if not gaudi : gaudi = gaudimodule.AppMgr() 00100 00101 # reuse the previous example 00102 import HistoEx2 00103 HistoEx2.configure( gaudi ) 00104 00105 # create the algorithms 00106 alg1 = Aida2RootEx1() 00107 alg2 = Aida2RootEx2() 00108 # append them to the list of Top-Level algorithms 00109 gaudi.addAlgorithm( alg1 ) 00110 gaudi.addAlgorithm( alg2 ) 00111 00112 return SUCCESS 00113 00114 00115 # ============================================================================= ## @fn useScript
def Aida2RootEx::useScript | ( | histos | ) |
Definition at line 120 of file Aida2RootEx.py.
00120 : 00121 " the third way to convert AIDA hoistograms into ROOT " 00122 00123 g = gaudimodule.AppMgr() 00124 hsvc = g.histsvc() 00125 00126 for histo in histos : 00127 root = hsvc.getAsROOT(histo) 00128 if not root : 00129 print "ERROR in access the histogram '%s' "%histo 00130 continue 00131 canvas = ROOT.TCanvas('canvas',histo,250,250) 00132 root.Draw() 00133 name = histo.replace ('/','_') 00134 name = name.replace ('\\','_') 00135 name = name.replace ('"','_') 00136 name = name.replace ("'",'_') 00137 name = name.replace ("'",'_') 00138 name = name.replace(os.sep,'_') + '.gif' 00139 canvas.Print(name) 00140 print "The file name is '%s'"%name 00141 00142 # ============================================================================= 00143 00144 00145 # ============================================================================= 00146 # The actual job excution 00147 # ============================================================================= if '__main__' == __name__ :
string Aida2RootEx::__author__ = "Vanya BELYAEV ibelyaev@phys.syr.edu" [static] |
Definition at line 15 of file Aida2RootEx.py.
Aida2RootEx::SUCCESS = gaudimodule.SUCCESS [static] |
Definition at line 20 of file Aida2RootEx.py.
int Aida2RootEx::aida2root = 2 [static] |
list Aida2RootEx::paths [static] |
Initial value:
[ 'HistoEx/1' , 'HistoEx/2' , 'HistoEx/3' , 'HistoEx1/1' , 'HistoEx1/2' , 'HistoEx1/3' , 'HistoEx2/1' , 'HistoEx2/2' , 'HistoEx2/3' , 'HistoEx2/4' , 'HistoEx2/5' , 'HistoEx2/6' ]
Definition at line 26 of file Aida2RootEx.py.
tuple Aida2RootEx::gaudi = gaudimodule.AppMgr() [static] |
Definition at line 150 of file Aida2RootEx.py.