Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:26:36

0001 #######################################################
0002 ###### implement the use of new ECal and HCal Linker###
0003 ###### which defined in                             ###
0004 ###### RecoParticleFlow/PFProducer/plugins/linkers/ ###
0005 ###### file name : ECALAndHCALCaloJetLinker.cc      ###
0006 #######################################################
0007 
0008 
0009 import FWCore.ParameterSet.Config as cms
0010 
0011 hltParticleFlowBlock = cms.EDProducer(
0012     "PFBlockProducer",
0013     verbose = cms.untracked.bool(False),
0014     debug = cms.untracked.bool(False),    
0015     elementImporters = cms.VPSet(        
0016         cms.PSet( importerName = cms.string("GeneralTracksImporter"),
0017                   source = cms.InputTag("hltLightPFTracks"),
0018                   muonSrc = cms.InputTag("hltMuons"),
0019                   useIterativeTracking = cms.bool(False),
0020                   DPtOverPtCuts_byTrackAlgo = cms.vdouble(0.5,0.5,0.5,0.5,0.5),
0021                   NHitCuts_byTrackAlgo = cms.vuint32(3,3,3,3,3)
0022                   ),        
0023         cms.PSet( importerName = cms.string("ECALClusterImporter"),
0024                   source = cms.InputTag("hltParticleFlowClusterECAL"),
0025                   BCtoPFCMap = cms.InputTag('') ),
0026         cms.PSet( importerName = cms.string("GenericClusterImporter"),
0027                   source = cms.InputTag("hltParticleFlowClusterHCAL") ),        
0028         cms.PSet( importerName = cms.string("GenericClusterImporter"),
0029                   source = cms.InputTag("hltParticleFlowClusterHFEM") ),
0030         cms.PSet( importerName = cms.string("GenericClusterImporter"),
0031                   source = cms.InputTag("hltParticleFlowClusterHFHAD") ),
0032         cms.PSet( importerName = cms.string("GenericClusterImporter"),
0033                   source = cms.InputTag("hltParticleFlowClusterPS") )        
0034         ),   
0035     linkDefinitions = cms.VPSet(
0036         cms.PSet( linkerName = cms.string("PreshowerAndECALLinker"),
0037                   linkType   = cms.string("PS1:ECAL"),
0038                   useKDTree  = cms.bool(True) ),
0039         cms.PSet( linkerName = cms.string("PreshowerAndECALLinker"),
0040                   linkType   = cms.string("PS2:ECAL"),
0041                   useKDTree  = cms.bool(True) ),
0042         cms.PSet( linkerName = cms.string("TrackAndECALLinker"),
0043                   linkType   = cms.string("TRACK:ECAL"),
0044                   useKDTree  = cms.bool(True) ),
0045         cms.PSet( linkerName = cms.string("TrackAndHCALLinker"),
0046                   linkType   = cms.string("TRACK:HCAL"),
0047                   useKDTree  = cms.bool(True) ),
0048         #cms.PSet( linkerName = cms.string("ECALAndHCALLinker"),
0049         #          linkType   = cms.string("ECAL:HCAL"),
0050         #          useKDTree  = cms.bool(False) ),       
0051         cms.PSet( linkerName = cms.string("ECALAndHCALCaloJetLinker"), #New linker
0052                   linkType   = cms.string("ECAL:HCAL"),
0053                   useKDTree  = cms.bool(False) ),     
0054         cms.PSet( linkerName = cms.string("HFEMAndHFHADLinker"),
0055                   linkType   = cms.string("HFEM:HFHAD"),
0056                   useKDTree  = cms.bool(False) )
0057         )
0058 ) 
0059 
0060 hltParticleFlowBlockPromptTracks = hltParticleFlowBlock.clone()
0061 hltParticleFlowBlockPromptTracks.elementImporters[0].source = cms.InputTag("hltLightPFPromptTracks")
0062 
0063 hltParticleFlowBlockForTaus = hltParticleFlowBlock.clone()
0064 hltParticleFlowBlockForTaus.elementImporters[0].DPtOverPtCuts_byTrackAlgo = cms.vdouble(-1.0,-1.0,-1.0,-1.0,-1.0)
0065 
0066 hltParticleFlowBlockReg = hltParticleFlowBlock.clone()
0067 hltParticleFlowBlockReg.elementImporters[0].DPtOverPtCuts_byTrackAlgo = cms.vdouble(-1.0,-1.0,-1.0,-1.0,-1.0)
0068 hltParticleFlowBlockReg.elementImporters[0].source = cms.InputTag("hltLightPFTracksReg")