Page History
...
Package pyana
...
Module event
This module is a collection of classes and methods to deal with the event data and everything related to it.
...
Class Event
Construction
Usage: evt = pyana.event.Event(dg)
...
This is the primary method to access EPICS information in pyana jobs.
...
Module histo
This module is a collection classes and methods to create and manage histograms from user analysis modules.
...
Class HistoMgrRoot
This class represents histogram manager implementation based on ROOT library. Histograms that are created by this manager reside either in memory or in a ROOT file.
Construction
Usage: hmgr = pyana.histo.HistoMgrRoot(...)
Creates new histogram manager object. Users should not instantiate new objects, instead the environment method hmgr()
should be used to obtain existing manager object.
Keyword arguments:
- file – name of the ROOT file to store histograms, if missing then histograms will be memory-resident
Method h1d
Usage: hist = hmgr.h1d(...)
Creates 1-dimensional histogram with bin contents stored as double precision numbers.
Method accepts the same arguments as the constructors of the corresponding C++ ROOT class TH1D. The returned object also inherits most of the methods of the C++ class.
Method h1f
Usage: hist = hmgr.h1f(...)
Creates 1-dimensional histogram with bin contents stored as single precision numbers.
Method accepts the same arguments as the constructors of the corresponding C++ ROOT class TH1F. The returned object also inherits most of the methods of the C++ class.
Method h1i
Usage: hist = hmgr.h1i(...)
Creates 1-dimensional histogram with bin contents stored as integer numbers.
Method accepts the same arguments as the constructors of the corresponding C++ ROOT class TH1I. The returned object also inherits most of the methods of the C++ class.
Method h2d
Usage: hist = hmgr.h2d(...)
Creates 2-dimensional histogram with bin contents stored as double precision numbers.
Method accepts the same arguments as the constructors of the corresponding C++ ROOT class TH2D. The returned object also inherits most of the methods of the C++ class.
Method h2f
Usage: hist = hmgr.h2f(...)
Creates 2-dimensional histogram with bin contents stored as single precision numbers.
Method accepts the same arguments as the constructors of the corresponding C++ ROOT class TH2F. The returned object also inherits most of the methods of the C++ class.
Method h2i
Usage: hist = hmgr.h2i(...)
Creates 2-dimensional histogram with bin contents stored as integer numbers.
Method accepts the same arguments as the constructors of the corresponding C++ ROOT class TH2F. The returned object also inherits most of the methods of the C++ class.
Method prof
Usage: hist = hmgr.prof(...)
Creates 1-dimensional profile histogram with bin contents stored as double precision numbers.
Method accepts the same arguments as the constructors of the corresponding C++ ROOT class TProfile. The returned object also inherits most of the methods of the C++ class.
Method prof2d
Usage: hist = hmgr.prof2d(...)
Creates 2-dimensional profile histogram with bin contents stored as double precision numbers.
Method accepts the same arguments as the constructors of the corresponding C++ ROOT class TProfile2D. The returned object also inherits most of the methods of the C++ class.