Skip to content

Instantly share code, notes, and snippets.

@mattleblanc
Created July 17, 2016 20:17
Show Gist options
  • Save mattleblanc/c61c2ec61d1de99342d5b6837670695e to your computer and use it in GitHub Desktop.
Save mattleblanc/c61c2ec61d1de99342d5b6837670695e to your computer and use it in GitHub Desktop.
RooFit v3.60 -- Developed by Wouter Verkerke and David Kirkby
Copyright (C) 2000-2013 NIKHEF, University of California & Stanford University
All rights reserved, please read http://roofit.sourceforge.net/license.txt
* * * Welcome to HistFitter * * *
ciao
Buongiorno! :)
doPlots False
doAllSyst False
doTheoSyst False
doExpSyst True
doHFSplitting False
doHFSplitting_1CR False
doHFSplitting_2CR False
doHFSplitting_2CR_b False
doHFSplitting_1SF False
doHFSplitting_2SF False
doHFSplitting_2SF_lc False
useLooseCR False
noSyst False
doFlatUnc30 True
doFlatUnc50 False
doPseudoData False
luminosity 10719.0
signal_region: Gtt_1l_C
17
analysisName: _My3bGtt_tag2.4.11-1-0_July17_bkgdfit_FlatUnc30_ExpSyst_bkg_10719.0_Gtt_1l_C
READING FROM TREE
ttbar norm regions
[('CR', 'cuts')]
<INFO> ConfigManager: Created Fit Config: BkgOnly
adding VRs
name of region SR_cuts
name of region VR1_cuts
name of region VR2_cuts
<INFO> ConfigManager: Initializing...
<INFO> ConfigManager: -initialize python objects...
<INFO> ConfigManager: -initialize global histogram dictionary...
<INFO> ConfigManager: -build PrepareHistos() for trees...
<INFO> ConfigManager: -initialize C++ mgr...
<INFO> ConfigManager: -propagate file list and tree names...
<INFO> ConfigManager: *-------------------------------------------------*
<INFO> ConfigManager: Summary of ConfigMgr
<INFO> ConfigManager:
<INFO> ConfigManager: analysisName: _My3bGtt_tag2.4.11-1-0_July17_bkgdfit_FlatUnc30_ExpSyst_bkg_10719.0_Gtt_1l_C
<INFO> ConfigManager: cache file: data/_My3bGtt_tag2.4.11-1-0_July17_bkgdfit_FlatUnc30_ExpSyst_bkg_10719.0_Gtt_1l_C.root
<INFO> ConfigManager: output file: results/_My3bGtt_tag2.4.11-1-0_July17_bkgdfit_FlatUnc30_ExpSyst_bkg_10719.0_Gtt_1l_C_Output.root
<INFO> ConfigManager: write own XML: False
<INFO> ConfigManager: nomName: _NoSys
<INFO> ConfigManager: inputLumi: 1.000
<INFO> ConfigManager: outputLumi: 10719.000
<INFO> ConfigManager: nTOYs: 5000
<INFO> ConfigManager: doHypoTest: False
<INFO> ConfigManager: fixSigXSec: True
<INFO> ConfigManager: runOnlyNominalXSec: False
<INFO> ConfigManager: Systematics: []
<INFO> ConfigManager: readFromTree: True
<INFO> ConfigManager: plotHistos: False
<INFO> ConfigManager: executeHistFactory: True
<INFO> ConfigManager: fitConfig objects:
<INFO> ConfigManager: BkgOnly
<INFO> ConfigManager: cuts_CR: ['JER', 'bTag_L', 'bTag_C', 'bTag_extrapol', 'JES2', 'JES3', 'JES1', 'bTag_B']
<INFO> ConfigManager: cuts_SR: ['JER', 'bTag_L', 'bTag_C', 'bTag_extrapol', 'JES2', 'JES3', 'JES1', 'bTag_B']
<INFO> ConfigManager: cuts_VR1: ['JER', 'bTag_L', 'bTag_C', 'bTag_extrapol', 'JES2', 'JES3', 'JES1', 'bTag_B']
<INFO> ConfigManager: cuts_VR2: ['JER', 'bTag_L', 'bTag_C', 'bTag_extrapol', 'JES2', 'JES3', 'JES1', 'bTag_B']
<INFO> ConfigManager: C++ ConfigMgr status: OK
<INFO> ConfigManager: Histogram names: (set log level DEBUG)
<INFO> ConfigManager: Chain names: (set log level DEBUG & note chains are only generated with -t)
<INFO> ConfigManager: File names: (set log level DEBUG)
<INFO> ConfigManager: Input tree names: (set log level DEBUG)
<INFO> ConfigManager: *-------------------------------------------------*
<INFO> ConfigManager:
<INFO> ConfigManager: Preparing histograms and/or workspace for fitConfig BkgOnly
<INFO> ConfigManager:
<INFO> ConfigManager: Channel: cuts_CR
<INFO> ConfigManager: Sample: Wjets
Error in <TChain::LoadTree>: Cannot find tree with name Wjets_NoSys in file input/Bkg_2.4.15-1-0.root
<WARNING> ConfigManager: ***nominal sample Wjets is empty for channel cuts_CR. Remove from PDF.***
<INFO> ConfigManager: Sample: Zjets
Error in <TChain::LoadTree>: Cannot find tree with name Zjets_NoSys in file input/Bkg_2.4.15-1-0.root
<WARNING> ConfigManager: ***nominal sample Zjets is empty for channel cuts_CR. Remove from PDF.***
<INFO> ConfigManager: Sample: TopEW
Error in <TChain::LoadTree>: Cannot find tree with name TopEW_NoSys in file input/Bkg_2.4.15-1-0.root
<WARNING> ConfigManager: ***nominal sample TopEW is empty for channel cuts_CR. Remove from PDF.***
<INFO> ConfigManager: Sample: SingleTop
Error in <TChain::LoadTree>: Cannot find tree with name SingleTop_NoSys in file input/Bkg_2.4.15-1-0.root
<WARNING> ConfigManager: ***nominal sample SingleTop is empty for channel cuts_CR. Remove from PDF.***
<INFO> ConfigManager: Sample: ttbar
Error in <TChain::LoadTree>: Cannot find tree with name ttbar_NoSys in file input/Bkg_2.4.15-1-0.root
<WARNING> ConfigManager: ***nominal sample ttbar is empty for channel cuts_CR. Remove from PDF.***
<INFO> ConfigManager: Sample: nominal
<INFO> ConfigManager: Channel: cuts_SR
<INFO> ConfigManager: Sample: Wjets
Error in <TChain::LoadTree>: Cannot find tree with name Wjets_NoSys in file input/Bkg_2.4.15-1-0.root
<WARNING> ConfigManager: ***nominal sample Wjets is empty for channel cuts_SR. Remove from PDF.***
<INFO> ConfigManager: Sample: Zjets
Error in <TChain::LoadTree>: Cannot find tree with name Zjets_NoSys in file input/Bkg_2.4.15-1-0.root
<WARNING> ConfigManager: ***nominal sample Zjets is empty for channel cuts_SR. Remove from PDF.***
<INFO> ConfigManager: Sample: TopEW
Error in <TChain::LoadTree>: Cannot find tree with name TopEW_NoSys in file input/Bkg_2.4.15-1-0.root
<WARNING> ConfigManager: ***nominal sample TopEW is empty for channel cuts_SR. Remove from PDF.***
<INFO> ConfigManager: Sample: SingleTop
Error in <TChain::LoadTree>: Cannot find tree with name SingleTop_NoSys in file input/Bkg_2.4.15-1-0.root
<WARNING> ConfigManager: ***nominal sample SingleTop is empty for channel cuts_SR. Remove from PDF.***
<INFO> ConfigManager: Sample: ttbar
Error in <TChain::LoadTree>: Cannot find tree with name ttbar_NoSys in file input/Bkg_2.4.15-1-0.root
<WARNING> ConfigManager: ***nominal sample ttbar is empty for channel cuts_SR. Remove from PDF.***
<INFO> ConfigManager: Sample: nominal
<INFO> ConfigManager: Channel: cuts_VR1
<INFO> ConfigManager: Sample: Wjets
Error in <TChain::LoadTree>: Cannot find tree with name Wjets_NoSys in file input/Bkg_2.4.15-1-0.root
<WARNING> ConfigManager: ***nominal sample Wjets is empty for channel cuts_VR1. Remove from PDF.***
<INFO> ConfigManager: Sample: Zjets
Error in <TChain::LoadTree>: Cannot find tree with name Zjets_NoSys in file input/Bkg_2.4.15-1-0.root
<WARNING> ConfigManager: ***nominal sample Zjets is empty for channel cuts_VR1. Remove from PDF.***
<INFO> ConfigManager: Sample: TopEW
Error in <TChain::LoadTree>: Cannot find tree with name TopEW_NoSys in file input/Bkg_2.4.15-1-0.root
<WARNING> ConfigManager: ***nominal sample TopEW is empty for channel cuts_VR1. Remove from PDF.***
<INFO> ConfigManager: Sample: SingleTop
Error in <TChain::LoadTree>: Cannot find tree with name SingleTop_NoSys in file input/Bkg_2.4.15-1-0.root
<WARNING> ConfigManager: ***nominal sample SingleTop is empty for channel cuts_VR1. Remove from PDF.***
<INFO> ConfigManager: Sample: ttbar
Error in <TChain::LoadTree>: Cannot find tree with name ttbar_NoSys in file input/Bkg_2.4.15-1-0.root
<WARNING> ConfigManager: ***nominal sample ttbar is empty for channel cuts_VR1. Remove from PDF.***
<INFO> ConfigManager: Sample: nominal
<INFO> ConfigManager: Channel: cuts_VR2
<INFO> ConfigManager: Sample: Wjets
Error in <TChain::LoadTree>: Cannot find tree with name Wjets_NoSys in file input/Bkg_2.4.15-1-0.root
<WARNING> ConfigManager: ***nominal sample Wjets is empty for channel cuts_VR2. Remove from PDF.***
<INFO> ConfigManager: Sample: Zjets
Error in <TChain::LoadTree>: Cannot find tree with name Zjets_NoSys in file input/Bkg_2.4.15-1-0.root
<WARNING> ConfigManager: ***nominal sample Zjets is empty for channel cuts_VR2. Remove from PDF.***
<INFO> ConfigManager: Sample: TopEW
Error in <TChain::LoadTree>: Cannot find tree with name TopEW_NoSys in file input/Bkg_2.4.15-1-0.root
<WARNING> ConfigManager: ***nominal sample TopEW is empty for channel cuts_VR2. Remove from PDF.***
<INFO> ConfigManager: Sample: SingleTop
Error in <TChain::LoadTree>: Cannot find tree with name SingleTop_NoSys in file input/Bkg_2.4.15-1-0.root
<WARNING> ConfigManager: ***nominal sample SingleTop is empty for channel cuts_VR2. Remove from PDF.***
<INFO> ConfigManager: Sample: ttbar
Error in <TChain::LoadTree>: Cannot find tree with name ttbar_NoSys in file input/Bkg_2.4.15-1-0.root
<WARNING> ConfigManager: ***nominal sample ttbar is empty for channel cuts_VR2. Remove from PDF.***
<INFO> ConfigManager: Sample: nominal
<INFO> ConfigManager: Storing histograms in file: data/_My3bGtt_tag2.4.11-1-0_July17_bkgdfit_FlatUnc30_ExpSyst_bkg_10719.0_Gtt_1l_C.root
Getting histogram. InputFile data/_My3bGtt_tag2.4.11-1-0_July17_bkgdfit_FlatUnc30_ExpSyst_bkg_10719.0_Gtt_1l_C.root HistoPath HistoName hnominal_CR_obs_cuts
Opened input file: data/_My3bGtt_tag2.4.11-1-0_July17_bkgdfit_FlatUnc30_ExpSyst_bkg_10719.0_Gtt_1l_C.root: 0x7e27d30
Getting histogram. InputFile data/_My3bGtt_tag2.4.11-1-0_July17_bkgdfit_FlatUnc30_ExpSyst_bkg_10719.0_Gtt_1l_C.root HistoPath HistoName hnominal_SR_obs_cuts
Opened input file: data/_My3bGtt_tag2.4.11-1-0_July17_bkgdfit_FlatUnc30_ExpSyst_bkg_10719.0_Gtt_1l_C.root: 0x6cb16e0
Getting histogram. InputFile data/_My3bGtt_tag2.4.11-1-0_July17_bkgdfit_FlatUnc30_ExpSyst_bkg_10719.0_Gtt_1l_C.root HistoPath HistoName hnominal_VR1_obs_cuts
Opened input file: data/_My3bGtt_tag2.4.11-1-0_July17_bkgdfit_FlatUnc30_ExpSyst_bkg_10719.0_Gtt_1l_C.root: 0x6cd97b0
Getting histogram. InputFile data/_My3bGtt_tag2.4.11-1-0_July17_bkgdfit_FlatUnc30_ExpSyst_bkg_10719.0_Gtt_1l_C.root HistoPath HistoName hnominal_VR2_obs_cuts
Opened input file: data/_My3bGtt_tag2.4.11-1-0_July17_bkgdfit_FlatUnc30_ExpSyst_bkg_10719.0_Gtt_1l_C.root: 0x6c9a440
Making Model and Measurements (Fast) for measurement: NormalMeasurement
using lumi = 1 and lumiError = 0.05 including bins between 0 and 50
fixing the following parameters:
Checking if output directory : ./results/_My3bGtt_tag2.4.11-1-0_July17_bkgdfit_FlatUnc30_ExpSyst_bkg_10719.0_Gtt_1l_C - exists
Creating the output file: ./results/_My3bGtt_tag2.4.11-1-0_July17_bkgdfit_FlatUnc30_ExpSyst_bkg_10719.0_Gtt_1l_C/BkgOnly_NormalMeasurement.root
Creating the table file: ./results/_My3bGtt_tag2.4.11-1-0_July17_bkgdfit_FlatUnc30_ExpSyst_bkg_10719.0_Gtt_1l_C/BkgOnly_results.table
Creating the HistoToWorkspaceFactoryFast factory
Setting preprocess functions
Starting to process channel: CR_cuts
Error in <RooStats::HistFactory::HistoToWorkspaceFactoryFast::MakeSingleChannelWorkspace>: The input Channel does not contain any sample - return a nullptr
Error: Failed to make Single-Channel workspace for channel: CR_cuts and measurement: NormalMeasurement
Traceback (most recent call last):
File "/home/mleblanc/HistFitter/scripts/HistFitter.py", line 312, in <module>
configMgr.executeAll()
File "/home/mleblanc/HistFitter/python/configManager.py", line 715, in executeAll
self.execute(tl)
File "/home/mleblanc/HistFitter/python/configManager.py", line 947, in execute
fitConfig.writeWorkspaces()
File "/home/mleblanc/HistFitter/python/fitConfig.py", line 220, in writeWorkspaces
ROOT.RooStats.HistFactory.MakeModelAndMeasurementFast(m)
Exception: RooWorkspace* RooStats::HistFactory::MakeModelAndMeasurementFast(RooStats::HistFactory::Measurement& measurement) =>
HistFactory - Exception (C++ exception of type RooStats::HistFactory::hf_exc)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment