CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_7_hltpatch2/src/RecoJets/FFTJetProducers/python/fftjettreedump_cfi.py

Go to the documentation of this file.
00001 # FFTJet clustering tree dumper configuration
00002 
00003 import os, errno, sys
00004 import FWCore.ParameterSet.Config as cms
00005 
00006 from RecoJets.FFTJetProducers.fftjetcommon_cfi import *
00007 
00008 def mkdir_p(path):
00009     try:
00010         os.makedirs(path)
00011     except OSError as exc:
00012         if exc.errno == errno.EEXIST:
00013             pass
00014         else: raise
00015 
00016 # Output directory for the trees
00017 clustering_trees_outdir = "./ClusteringTrees"
00018 if (sys.argv[0] == "cmsRun"):
00019     mkdir_p(clustering_trees_outdir)
00020 
00021 # Base name for the output files
00022 trees_basename = "clustree"
00023 
00024 # Configure the FFTJet tree dumper module
00025 fftjet_tree_dumper = cms.EDAnalyzer(
00026     "FFTJetTreeDump",
00027     #
00028     # Label for the input clustering tree (either sparse or dense)
00029     treeLabel = cms.InputTag("fftjetpatreco", "FFTJetPatternRecognition"),
00030     #
00031     # Prefix for the output trees
00032     outputPrefix = cms.string(clustering_trees_outdir + '/' + trees_basename),
00033     #
00034     # Eta limit for the plot
00035     etaMax = cms.double(fftjet_standard_eta_range),
00036     #
00037     # Do we have the complete event at the lowest tree scale?
00038     insertCompleteEvent = cms.bool(fftjet_insert_complete_event),
00039     completeEventScale = cms.double(fftjet_complete_event_scale),
00040     #
00041     # The initial set of scales used by the pattern recognition stage.
00042     # This is also the final set unless clustering tree construction
00043     # is adaptive. Needed here for reading back non-adaptive trees.
00044     InitialScales = fftjet_patreco_scales_50,
00045     #
00046     # Clustering tree distance functor
00047     TreeDistanceCalculator = fftjet_fixed_bandwidth_distance,
00048     #
00049     # Which quantity will be mapped into OpenDX glyph size?
00050     GlyphSize = cms.PSet(
00051         Class = cms.string("ScaledMagnitude2")
00052     ),
00053     #
00054     # Which quantity will be mapped into OpenDX glyph color?
00055     GlyphColor = cms.PSet(
00056         Class = cms.string("ScaledHessianDet")
00057     )
00058 )