Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:24:15

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     InputFileNames = cms.vstring("testTagProbeFitTreeProducer_Toy.root"),
0013     InputDirectoryName = cms.string("Test"),
0014     InputTreeName = cms.string("fitter_tree"),
0015     OutputFileName = cms.string("testTagProbeFitTreeAnalyzer_Toy.root"),
0016     NumCPU = cms.uint32(1),
0017     SaveWorkspace = cms.bool(True),
0018     Variables = cms.PSet(
0019         mass = cms.vstring("Tag-Probe Mass", "2.6", "3.6", "GeV/c^{2}"),
0020         pt = cms.vstring("Probe p_{T}", "0", "100", "GeV/c"),
0021         eta = cms.vstring("Probe #eta", "-2.4", "2.4", ""),
0022     ),
0023     Categories = cms.PSet(
0024         mcTrue_idx = cms.vstring("MC true", "dummy[true=1,false=0]"),
0025         passing_idx = cms.vstring("isPassing", "dummy[true=1,false=0]"),
0026     ),
0027     PDFs = cms.PSet(
0028         gaussPlusLinear = cms.vstring(
0029             "Gaussian::signal(mass, mean[3.1,3.0,3.2], sigma[0.03,0.01,0.05])",
0030             "Chebychev::backgroundPass(mass, cPass[0,-1,1])",
0031             "Chebychev::backgroundFail(mass, cFail[0,-1,1])",
0032             "efficiency[0.9,0,1]",
0033             "signalFractionInPassing[0.9]"
0034         ),
0035     ),
0036     Efficiencies = cms.PSet(
0037         pt_eta = cms.PSet(
0038             EfficiencyCategoryAndState = cms.vstring("passing_idx","true"),
0039             UnbinnedVariables = cms.vstring("mass"),
0040             BinnedVariables = cms.PSet(
0041                 pt = cms.vdouble(2.0, 4.0, 6.0, 8.0, 10.0),
0042                 eta = cms.vdouble(-2.4, -1.6, -0.8, 0.0, 0.8, 1.6, 2.4),
0043             ),
0044             BinToPDFmap = cms.vstring("gaussPlusLinear"),
0045         ),
0046         pt_eta_mcTrue = cms.PSet(
0047             EfficiencyCategoryAndState = cms.vstring("passing_idx","true"),
0048             UnbinnedVariables = cms.vstring("mass"),
0049             BinnedVariables = cms.PSet(
0050                 mcTrue_idx = cms.vstring("true"),
0051                 pt = cms.vdouble(2.0, 4.0, 6.0, 8.0, 10.0),
0052                 eta = cms.vdouble(-2.4, -1.2, 0.0, 1.2, 2.4),
0053             ),
0054         ),
0055     ),
0056 )
0057 
0058 process.fitness = cms.Path(
0059     process.TagProbeFitTreeAnalyzer
0060 )
0061