File indexing completed on 2023-03-17 11:16:47
0001 import FWCore.ParameterSet.Config as cms
0002
0003 process = cms.Process("TagProbe")
0004
0005 process.load('FWCore.MessageService.MessageLogger_cfi')
0006
0007 process.source = cms.Source("EmptySource")
0008
0009 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(1) )
0010
0011 process.TagProbeFitTreeAnalyzer = cms.EDAnalyzer("TagProbeFitTreeAnalyzer",
0012
0013 InputFileNames = cms.vstring("testTagProbeFitTreeProducer_GEN.root"),
0014 InputDirectoryName = cms.string("MuonID"),
0015 InputTreeName = cms.string("fitter_tree"),
0016 OutputFileName = cms.string("testTagProbeFitTreeAnalyzer_GEN.root"),
0017
0018 NumCPU = cms.uint32(1),
0019
0020
0021 SaveWorkspace = cms.bool(True),
0022
0023
0024 Variables = cms.PSet(
0025 mass = cms.vstring("Tag-Probe Mass", "40", "130", "GeV/c^{2}"),
0026 pt = cms.vstring("Probe p_{T}", "0", "100", "GeV/c"),
0027 eta = cms.vstring("Probe #eta", "-2.5", "2.5", ""),
0028 phi = cms.vstring("Probe #phi", "-3.14", "3.14", ""),
0029 ),
0030
0031
0032 Categories = cms.PSet(
0033 muon = cms.vstring("isMuon", "dummy[true=1,false=0]"),
0034 ),
0035
0036
0037
0038 PDFs = cms.PSet(
0039 breitWignerPlusExponential = cms.vstring(
0040 "BreitWigner::signal(mass, mean[90,80,100], width[2,1,3])",
0041 "Exponential::backgroundPass(mass, cPass[0,-1,1])",
0042 "Exponential::backgroundFail(mass, cFail[0,-1,1])",
0043 "efficiency[0.5,0,1]",
0044 "signalFractionInPassing[0.9]"
0045 ),
0046 ),
0047
0048
0049
0050 Efficiencies = cms.PSet(
0051
0052 muon_pt_eta = cms.PSet(
0053
0054 EfficiencyCategoryAndState = cms.vstring("muon","true"),
0055
0056 UnbinnedVariables = cms.vstring("mass"),
0057
0058 BinnedVariables = cms.PSet(
0059 pt = cms.vdouble(0.0, 100.0),
0060 eta = cms.vdouble(-2.4, -1.8, -1.2, -0.6, 0.0, 0.6, 1.2, 1.8, 2.4),
0061 ),
0062
0063 BinToPDFmap = cms.vstring("breitWignerPlusExponential")
0064 ),
0065 )
0066 )
0067
0068 process.fitness = cms.Path(
0069 process.TagProbeFitTreeAnalyzer
0070 )
0071