示例#1
0
    def __init__(self, width=DEFAULT_WindowW, height=DEFAULT_WindowH):
        self._tmpTFile = ROOT.TFile('tmp.root', 'recreate')
        self._tmpTFile.cd()
        self._canv = MyCanvas()
        self._drawables = DrawableMgr()
        self._brah = []

        self._addfuncMGR = ImportAddFunc()
示例#2
0
    def __init__(self, width=1000, height=1000):
        self._tmpTFile=ROOT.TFile('tmp.root','recreate')
        self._tmpTFile.cd()
        self._drawObj=[]
        self._drawArg=[]
        self._cwidth=width
        self._cheight=height
        self._canvasSetting={}

        self._addfuncMGR=ImportAddFunc()
示例#3
0
    def __init__(self, workspace='space', loadFile=''):
        logger.debug('init space')

        self._loadfile = ROOT.TFile.Open(
            loadFile) if '.root' in loadFile else None
        self._space = self._loadfile.Get(
            workspace) if self._loadfile else ROOT.RooWorkspace(
                'space', False)

        self._keptItem = []
        self._additionalInfo = ImportAddFunc()
        self._additionalWriting = []
        self._written = False

        self._loadinfos = []  # (tfile, {'label':tobject, 'label2':tobject2 }
示例#4
0
    def __init__(self, inputworkspace):
        if not isinstance(inputworkspace, (RooFitSpaceMgr, None)):
            logger.error(
                'constructing object failed. Input RooFitSpaceMgr object')

        self._workspace = inputworkspace
        self._observ = None
        self._target = None
        self._fitpdf = None  # pdf

        self._pdfcomponents = []  # [ (label,pdf) ]
        self._additionalInfo = ImportAddFunc()

        self.loadinfos = []
        pass
示例#5
0
    def __init__(self):
        self._drawObj=[]
        self._drawArg=[]
        self._drawPad=[]

        self._addfuncMGR=ImportAddFunc()