Example #1
0
  theFolders.append(BTaggingFlags.CalibrationFolderRoot+'MultiSVbb1')
if BTaggingFlags.MultiSVbb2:
  theFolders.append(BTaggingFlags.CalibrationFolderRoot+'MultiSVbb2')


JetCollectionForCalib = []
JetCollectionForCalib+= BTaggingFlags.Jets
if "AntiKt4TopoEM" not in JetCollectionForCalib:
  JetCollectionForCalib+=["AntiKt4TopoEM"]

from JetTagCalibration.JetTagCalibrationConf import Analysis__CalibrationBroker
BTagCalibrationBrokerTool = Analysis__CalibrationBroker(
                                                          name = "BTagCalibrationBrokerTool",
                                                          folderRoot = BTaggingFlags.CalibrationFolderRoot,
                                                          folders = theFolders,
                                                          channels = JetCollectionForCalib,
                                                          channelAliases = BTaggingFlags.CalibrationChannelAliases,
                                                          shadowFoldersAndChannels = BTaggingFlags.CalibrationSingleFolder,   
                                                          OutputLevel = BTaggingFlags.OutputLevel
                                                       )
ToolSvc += BTagCalibrationBrokerTool
theApp.Dlls+=['DetDescrCondExample','DetDescrCondTools']

from IOVDbSvc.CondDB import conddb 

# with new scheme, only one actual COOL folder:
if BTaggingFlags.CalibrationSingleFolder:
  theFolders = []
  theFolders.append(BTaggingFlags.CalibrationFolderRoot+'RUN12')

for folder in theFolders:
Example #2
0
    'AntiKt4H1TowerAODJets->AntiKt4Topo', 'AntiKt4H1Tower->AntiKt4Topo',
    'Kt4H1TowerJets->AntiKt4Topo', 'Kt4H1Tower->AntiKt4Topo'
]

PerfCalibrationRoot = '/GLOBAL/BTagPerfCalib/'
myfolders = ['SV0', 'JetProb']
PerfCalibrationFolders = []
for folder in myfolders:
    PerfCalibrationFolders.append(PerfCalibrationRoot + folder)

from JetTagCalibration.JetTagCalibrationConf import Analysis__CalibrationBroker
JetTagPerformanceCalibrationBroker = Analysis__CalibrationBroker(
    name="PerformanceBroker",
    folderRoot=PerfCalibrationRoot,
    folders=PerfCalibrationFolders,
    channels=['AntiKt4H1TowerAODJets', 'Kt4H1Tower'],
    channelAliases=aliases,
    shadowFoldersAndChannels=PerfCalibrationSingleFolder,
    singleFolderName=SingleFolderName,
    OutputLevel=BTaggingFlags.OutputLevel)
ToolSvc += JetTagPerformanceCalibrationBroker

# This creates a particular instance of the performance evaluation tool.

# OPs = [ 'Loose', 'Medium', 'Tight' ]

from CalibrationDataInterface.CalibrationDataInterfaceConf import Analysis__CalibrationDataInterfaceTool
JetTagPerformanceSV0 = Analysis__CalibrationDataInterfaceTool(
    name="BTagPerformanceSV0",
    taggerName="SV0",
    operatingPoints=['5_85'],