Beispiel #1
0
from array import array
from copy import deepcopy
from os import chdir,getcwd,listdir,makedirs,rmdir
from os.path import exists,join

import sys
argv=sys.argv
from ROOT import *
sys.argv=argv

from definitions import *
from utils import setTDRStyle


# Something nice and familiar
setTDRStyle()

# Do not display the canvases
gROOT.SetBatch(kTRUE)


#-------------------------------------------------------------------------------
_log_level=5
def logger(msg_level,message):
  if msg_level>=_log_level:
    print("[%s] %s" %(asctime(),message))

#-------------------------------------------------------------------------------

class Weighted(object):
  def __init__(self,name,weight=1):
Beispiel #2
0
from array import array
from copy import deepcopy
from os import chdir, getcwd, listdir, makedirs, rmdir
from os.path import exists, join

import sys
argv = sys.argv
from ROOT import *
sys.argv = argv

from definitions import *
from utils import setTDRStyle

# Something nice and familiar
setTDRStyle()

# Do not display the canvases
gROOT.SetBatch(kTRUE)

#-------------------------------------------------------------------------------
_log_level = 5


def logger(msg_level, message):
    if msg_level >= _log_level:
        print "[%s] %s" % (asctime(), message)


#-------------------------------------------------------------------------------