The Gaudi Framework  v36r1 (3e2fb5a8)
HistoUtilsEx Namespace Reference

Functions

def cpp_flush ()
 

Variables

string __author__ = "Vanya BELYAEV Ivan.Belyaev@nikhef.nl"
 
 gaudi = AppMgr()
 
 EvtSel
 
 HistogramPersistency
 
 hsvc = gaudi.service('HistogramPersistencySvc')
 
 OutputFile
 
 Rndm = cpp.Rndm
 configure & initialize More...
 
 IRndmGenSvc = cpp.IRndmGenSvc
 
 rndmSvc = gaudi.service('RndmGenSvc', IRndmGenSvc)
 
 gauss = Rndm.Numbers(cpp.SmartIF("IRndmGenSvc")(rndmSvc), Rndm.Gauss(0.0, 1.0))
 
 histo1
 
 histo2
 
 rhisto1 = aida2root(histo1)
 
 rhisto2 = aida2root(histo2)
 

Function Documentation

◆ cpp_flush()

def HistoUtilsEx.cpp_flush ( )

Definition at line 38 of file HistoUtilsEx.py.

38 def cpp_flush():
39  cpp.gInterpreter.ProcessLine('cout.flush();')
40 
41 
42 # get the application manager (create if needed)

Variable Documentation

◆ __author__

string HistoUtilsEx.__author__ = "Vanya BELYAEV Ivan.Belyaev@nikhef.nl"
private

Definition at line 25 of file HistoUtilsEx.py.

◆ EvtSel

HistoUtilsEx.EvtSel

Definition at line 46 of file HistoUtilsEx.py.

◆ gaudi

HistoUtilsEx.gaudi = AppMgr()

Definition at line 43 of file HistoUtilsEx.py.

◆ gauss

HistoUtilsEx.gauss = Rndm.Numbers(cpp.SmartIF("IRndmGenSvc")(rndmSvc), Rndm.Gauss(0.0, 1.0))

Definition at line 66 of file HistoUtilsEx.py.

◆ histo1

HistoUtilsEx.histo1
Initial value:
1 = book('path/to/my/histos/MyHisto', 'the title', 100, -3,
2  3)

Definition at line 71 of file HistoUtilsEx.py.

◆ histo2

HistoUtilsEx.histo2
Initial value:
1 = book('path/to/my/histos', 'ID of 2nd histo', 'the title of 2nd histo',
2  100, -3, 3)

Definition at line 74 of file HistoUtilsEx.py.

◆ HistogramPersistency

HistoUtilsEx.HistogramPersistency

Definition at line 49 of file HistoUtilsEx.py.

◆ hsvc

HistoUtilsEx.hsvc = gaudi.service('HistogramPersistencySvc')

Definition at line 52 of file HistoUtilsEx.py.

◆ IRndmGenSvc

HistoUtilsEx.IRndmGenSvc = cpp.IRndmGenSvc

Definition at line 61 of file HistoUtilsEx.py.

◆ OutputFile

HistoUtilsEx.OutputFile

Definition at line 53 of file HistoUtilsEx.py.

◆ rhisto1

HistoUtilsEx.rhisto1 = aida2root(histo1)

Definition at line 88 of file HistoUtilsEx.py.

◆ rhisto2

HistoUtilsEx.rhisto2 = aida2root(histo2)

Definition at line 89 of file HistoUtilsEx.py.

◆ Rndm

HistoUtilsEx.Rndm = cpp.Rndm

configure & initialize

Definition at line 60 of file HistoUtilsEx.py.

◆ rndmSvc

HistoUtilsEx.rndmSvc = gaudi.service('RndmGenSvc', IRndmGenSvc)

Definition at line 62 of file HistoUtilsEx.py.

HistoUtilsEx.cpp_flush
def cpp_flush()
Definition: HistoUtilsEx.py:38
Gaudi::Histos::book
GAUDI_API AIDA::IHistogram1D * book(IHistogramSvc *svc, const std::string &path, const Gaudi::Histo1DDef &hist)
helper function to book 1D-histogram
Definition: HistoDef.cpp:97