Пример #1
0
        """``n''-parameter - order/degree of 3D-polynom in x&y-directions"""
        return self.__n

    @property
    def nx(self):
        """``nx''-parameter - order/degree of 3D-polynom in x-direction"""
        return self.__n

    @property
    def ny(self):
        """``ny''-parameter - order/degree of 3D-polynom in z-direction"""
        return self.__n

    @property
    def nz(self):
        """``nz''-parameter - order/degree of 3D-polynom in z-direction"""
        return self.__nz


models.append(PolyPos3Dmix_pdf)

# =============================================================================
if '__main__' == __name__:

    from ostap.utils.docme import docme
    docme(__name__, logger=logger, symbols=models)

# =============================================================================
# The END
# =============================================================================
Пример #2
0
                os.unlink(fname)
            except:
                pass


# =============================================================================
## helper function to open RootShelve data base
#  @code
#  import RootShelve as DBASE
#  db = DBASE.open ( 'mydb.root' , 'c' )
#  @endcode
#  @author Vanya BELYAEV [email protected]
#  @date   2010-04-30
def tmpdb(*args):
    """ Helper function to open TEMPPORARY RootShelve data base
    >>> import RootShelve as DBASE
    >>> db = DBASE.tmpdb()
    """
    return TmpRootShelf(*args)


# =============================================================================
if '__main__' == __name__:

    from ostap.utils.docme import docme
    docme(__name__, logger=logger)

# =============================================================================
##                                                                      The END
# =============================================================================
Пример #3
0
# =============================================================================
## load zillions of decorations for ROOT-objects
import ostap.core.pyrouts  ## NB: the most important line!
import ostap.io.zipshelve as DBASE

# =============================================================================
## minor decoration for default shelve module
import ostap.io.shelve_ext

# =============================================================================
## import useful context managers
from ostap.logger.utils import *
from ostap.utils.utils import *
# =============================================================================
## prepend the path
if '.' not in sys.path:
    __logger.debug('Prepend sys.path with $PWD')
    sys.path = ['.'] + sys.path

# =============================================================================
from ostap.core.core import cpp, Ostap, VE, SE, WSE, hID
# =============================================================================
if '__main__' == __name__:

    from ostap.utils.docme import docme
    docme(__name__, logger=__logger)

# =============================================================================
# The END
# =============================================================================