Beispiel #1
0
                    traverse(pfrefs, tree_types=(np.ndarray), simple_ret=True))
]).reshape(pdrefs.shape + (2, ))

basePath = '/eos/user/j/jodafons/CERN-DATA/data/data17_13TeV/'
sgnInputFile = 'EGAM1'
bkgInputFile = 'EGAM7'
outputFile = 'sample'
treePath = ["*/HLT/Physval/Egamma/probes", "*/HLT/Physval/Egamma/fakes"]

import os.path
from TuningTools import Reference, RingerOperation, Detector
from TuningTools import createData
from RingerCore import LoggingLevel
from TuningTools.dataframe import Dataframe
from RingerCore.Configure import Development
Development.set(True)

createData(
    sgnFileList=os.path.join(basePath, sgnInputFile),
    bkgFileList=os.path.join(basePath, bkgInputFile),
    ringerOperation=RingerOperation.L2Calo,
    referenceSgn=Reference.Off_Likelihood,  # probes passed by lhmedium
    referenceBkg=Reference.
    Off_Likelihood,  # electrons/any reproved by very loose
    treePath=treePath,
    pattern_oFile=outputFile,
    l2EtCut=14,
    offEtCut=10,
    #nClusters        = 1000,
    etBins=etBins,
    etaBins=etaBins,
Beispiel #2
0
 def __call__(self, parser, namespace, value, option_string=None):
     Development.set(value)
     setattr(namespace, self.dest, value)