Пример #1
0
crossValPath = 'data/crossValid_citest0.pic.gz'
etBins = [0, 100000]
etaBins = [0, 2.5]

from TuningTools.CrossValid import CrossValidArchieve
with CrossValidArchieve(crossValPath) as CVArchieve:
    crossVal = CVArchieve
    del CVArchieve

from TuningTools import createData
from TuningTools import Reference, RingerOperation
from RingerCore import expandFolders

createData(basePath + '/' + sgnInputFile,
           basePath + '/' + bkgInputFile,
           RingerOperation.EFCalo,
           referenceSgn=Reference.Off_Likelihood,
           referenceBkg=Reference.Truth,
           treePath=treePath,
           pattern_oFile=outputFile,
           l1EmClusCut=1,
           l2EtCut=1,
           efEtCut=1,
           etBins=etBins,
           etaBins=etaBins,
           crossVal=crossVal,
           toMatlab=False)

import sys, os
sys.exit(os.EX_OK)  # code 0, all ok
Пример #2
0
createData(
    args.sgnInputFiles,
    args.bkgInputFiles,
    ringerOperation=args.operation,
    referenceSgn=args.reference[0],
    referenceBkg=args.reference[1],
    treePath=args.treePath,
    efficiencyTreePath=args.efficiencyTreePath,
    pattern_oFile=args.pattern_output_file,
    efficiency_oFile=args.efficiency_output_file,
    l1EmClusCut=args.l1EmClusCut,
    l2EtCut=args.l2EtCut,
    efEtCut=args.efEtCut,
    offEtCut=args.offEtCut,
    level=args.output_level,
    nClusters=args.nClusters,
    getRatesOnly=args.getRatesOnly,
    etBins=args.etBins,
    etaBins=args.etaBins,
    ringConfig=args.ringConfig,
    extractDet=args.extractDet,
    standardCaloVariables=args.standardCaloVariables,
    useTRT=args.useTRT,
    toMatlab=args.toMatlab,
    plotMeans=args.plotMeans,
    plotProfiles=args.plotProfiles,
    label=args.label,
    crossVal=crossVal,
    supportTriggers=args.supportTriggers,
    pileupRef=args.pileupRef,
)
Пример #3
0
    "HLT/Egamma/Expert/support/probes", "HLT/Egamma/Expert/support/trigger"
]
#crossValPath = 'crossValid_5sorts.pic.gz'

#from TuningTools  import CrossValidArchieve
#with CrossValidArchieve( crossValPath ) as CVArchieve:
#  crossVal = CVArchieve
#  del CVArchieve

import os.path
from TuningTools import Reference, RingerOperation
from TuningTools import createData
from RingerCore import LoggingLevel
createData(
    sgnFileList=os.path.join(basePath, sgnInputFile),
    bkgFileList=os.path.join(basePath, bkgInputFile),
    ringerOperation=RingerOperation.L2Calo,
    referenceSgn=Reference.AcceptAll,
    referenceBkg=Reference.Truth,
    treePath=treePath,
    pattern_oFile=outputFile,
    nClusters=1000,
    etBins=etBins,
    etaBins=etaBins,
    toMatlab=True,
    efficiencyValues=efficiencyValues,
    plotProfiles=True,
    supportTriggers=True,
    #level     = LoggingLevel.VERBOSE
)
Пример #4
0
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,
    toMatlab=True,
    #efficiencyValues = efficiencyValues,
    plotMeans=True,
    plotProfiles=False,
    dataframe=Dataframe.PhysVal_v2,
    #extractDet       = Detector.Tracking,
    extractDet=Detector.Calorimetry,
    #level     = LoggingLevel.VERBOSE
)

from RingerCore import traverse
from TuningTools import BenchmarkEfficiencyArchieve
Пример #5
0
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=sgnFileList,
    bkgFileList=bkgFileList,
    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=1,
    offEtCut=1,
    #nClusters        = 1000,
    etBins=etBins,
    etaBins=etaBins,
    toMatlab=True,
    plotMeans=True,
    plotProfiles=False,
    dataframe=Dataframe.SkimmedNtuple_v2,
    #extractDet       = Detector.Tracking,
    extractDet=Detector.Calorimetry,
    #level     = LoggingLevel.VERBOSE
)
Пример #6
0
from TuningTools import createData
from TuningTools import Reference, RingerOperation
from RingerCore  import expandFolders

createData( 
            basePath+'/'+sgnInputFile , 
            #'/tmp/jodafons/user.jodafons.mc15_13TeV.361106.PowhegPythia8EvtGen_AZNLOCTEQ6L1_Zee.merge.AOD.e3601_s2876_r7917_r7676.dump.trigEL.p0100_GLOBAL/',
            basePath+'/'+bkgInputFile ,
            RingerOperation.EFCalo,
            ringConfig      = 100,
            #referenceSgn    = Reference.AcceptAll,
            referenceSgn    = Reference.Off_Likelihood,
            #referenceBkg    = Reference.Truth,
            referenceBkg    = Reference.Off_Likelihood,
            treePath        = treePath,
            pattern_oFile   = outputFile,
            l1EmClusCut     = 20,
            l2EtCut         = 19,
            efEtCut         = 24,
            etBins          = etBins,
            etaBins         = etaBins,
            crossVal        = crossVal,
            nClusters       = 5000,
            #efficiencyValues = [97.0, 2.0], 
            toMatlab        = True)



from RingerCore import mkdir_p
mkdir_p(outputFile)
Пример #7
0
treePath     = ["HLT/Egamma/Expert/support/probes",
                "HLT/Egamma/Expert/support/trigger"]
#crossValPath = 'crossValid_5sorts.pic.gz'


#from TuningTools  import CrossValidArchieve
#with CrossValidArchieve( crossValPath ) as CVArchieve:
#  crossVal = CVArchieve
#  del CVArchieve

import os.path
from TuningTools import Reference, RingerOperation
from TuningTools import createData
from RingerCore  import LoggingLevel
createData( sgnFileList      = os.path.join( basePath, sgnInputFile ),
            bkgFileList      = os.path.join( basePath, bkgInputFile ),
            ringerOperation  = RingerOperation.L2Calo,
            referenceSgn     = Reference.AcceptAll,
            referenceBkg     = Reference.Truth,
            treePath         = treePath,
            pattern_oFile    = outputFile,
            #nClusters        = 1000,
            etBins           = etBins,
            etaBins          = etaBins,
            toMatlab         = True,
            efficiencyValues = efficiencyValues,
            plotProfiles     = True,
            supportTriggers  = True,
            #level     = LoggingLevel.VERBOSE
          )
Пример #8
0
from TuningTools import createData
createData( args.sgnInputFiles, 
            args.bkgInputFiles,
            ringerOperation       = args.operation,
            referenceSgn          = args.reference[0],
            referenceBkg          = args.reference[1],
            treePath              = args.treePath,
            efficiencyTreePath    = args.efficiencyTreePath,
            pattern_oFile         = args.pattern_output_file,
            efficiency_oFile      = args.efficiency_output_file,
            l1EmClusCut           = args.l1EmClusCut,
            l2EtCut               = args.l2EtCut,
            efEtCut               = args.efEtCut,
            offEtCut              = args.offEtCut,
            level                 = args.output_level,
            nClusters             = args.nClusters,
            getRatesOnly          = args.getRatesOnly,
            etBins                = args.etBins,
            etaBins               = args.etaBins,
            ringConfig            = args.ringConfig,
            extractDet            = args.extractDet,
            standardCaloVariables = args.standardCaloVariables,
            useTRT                = args.useTRT,
            toMatlab              = args.toMatlab,
            plotMeans             = args.plotMeans,
            plotProfiles          = args.plotProfiles,
            label                 = args.label,
            crossVal              = crossVal,
            supportTriggers       = args.supportTriggers,
          )
Пример #9
0
from TuningTools  import CrossValidArchieve
with CrossValidArchieve( crossValPath ) as CVArchieve:
  crossVal = CVArchieve
  del CVArchieve

from TuningTools import createData
from TuningTools import Reference, RingerOperation
from RingerCore  import expandFolders


createData( sgnFileList     = expandFolders( basePath+'/'+sgnInputFile ), 
            bkgFileList     = expandFolders( basePath+'/'+bkgInputFile ),
            ringerOperation = RingerOperation.EFCalo,
            referenceSgn    = Reference.Off_Likelihood,
            referenceBkg    = Reference.Truth,
            treePath        = treePath,
            output          = outputFile,
            l1EmClusCut     = 20,
            l2EtCut         = 19,
            efEtCut         = 24,
            #offEtCut        = 24,
            #nClusters       = 50,
            #getRatesOnly    = args.getRatesOnly,
            etBins          = etBins,
            etaBins         = etaBins,
            #ringConfig      = args.ringConfig
            crossVal        = crossVal,
            toMatlab        = True,
            )
Пример #10
0
from TuningTools import CrossValidArchieve
with CrossValidArchieve(crossValPath) as CVArchieve:
    crossVal = CVArchieve
    del CVArchieve

from TuningTools import createData
from TuningTools import Reference, RingerOperation
from RingerCore import expandFolders

createData(
    sgnFileList=expandFolders(basePath + '/' + sgnInputFile),
    bkgFileList=expandFolders(basePath + '/' + bkgInputFile),
    ringerOperation=RingerOperation.EFCalo,
    referenceSgn=Reference.Off_Likelihood,
    referenceBkg=Reference.Truth,
    treePath=treePath,
    output=outputFile,
    l1EmClusCut=20,
    l2EtCut=19,
    efEtCut=24,
    #offEtCut        = 24,
    #nClusters       = 50,
    #getRatesOnly    = args.getRatesOnly,
    etBins=etBins,
    etaBins=etaBins,
    #ringConfig      = args.ringConfig
    crossVal=crossVal,
    toMatlab=True,
)
Пример #11
0
etBins       = [0, 100000 ]
etaBins      = [0, 2.5]

from TuningTools.CrossValid import CrossValidArchieve
with CrossValidArchieve( crossValPath ) as CVArchieve:
  crossVal = CVArchieve
  del CVArchieve

from TuningTools import createData
from TuningTools import Reference, RingerOperation
from RingerCore  import expandFolders

createData( basePath+'/'+sgnInputFile , 
            basePath+'/'+bkgInputFile ,
            RingerOperation.EFCalo,
            ringConfig      = [100],
            referenceSgn    = Reference.Off_Likelihood,
            referenceBkg    = Reference.Truth,
            treePath        = treePath,
            pattern_oFile   = outputFile,
            l1EmClusCut     = 1,
            l2EtCut         = 1,
            efEtCut         = 1,
            etBins          = etBins,
            etaBins         = etaBins,
            crossVal        = crossVal,
            toMatlab        = False)

import sys,os
sys.exit(os.EX_OK) # code 0, all ok