コード例 #1
0
    def __init__(self, filename, scalefactortxtfilename, treename, lumi,
                 channel, savelabel):

        self.tmpplot = TreePlot()

        self.batch_ = False

        self.filedict_ = filename

        self.scalefactortxtfilename_ = scalefactortxtfilename

        self.treename_ = treename

        self.histograms_ = {}

        self.multiplicitylabel_ = {}

        self.lumi_ = lumi

        self.channel_ = channel

        self.savelabel_ = savelabel

        self.constrains_ = []

        self.fit_ = None

        self.qcdfraction_ = 0.0

        self.qcdfractionerror_ = 0.0
コード例 #2
0
     def __init__(self,CHANNEL):#CHANNEL = 'mu', or 'el'
          
          self.thstack = THStack("MC","MC")

          self.samples = Samples(CHANNEL)
          self.drawhistograms = {}
          
          self.tmpplot = TreePlot()

          self.bin_ = 0
          self.min_ = 0.
          self.max_ = 0.

          self.cutname_ = ""
          self.weightname_ = ""

          self.plotdir_ = ""
          self.setlogy_ = False

          self.channel = CHANNEL

          self.multiplicitylabel = {} 

          self.c1 = TCanvas()