Inherits FWCore::GuiBrowsers::ConfigToolBase::ConfigToolBase.
Public Member Functions | |
def | __call__ |
def | __init__ |
def | getDefaultParameters |
def | toolCode |
Private Attributes | |
_comment | |
_parameters | |
Static Private Attributes | |
tuple | _defaultParameters = dicttypes.SortedKeysDict() |
string | _label = 'productionDefaults' |
Configure all relevant layer1 candidates for heavy ions
Definition at line 31 of file heavyIonTools.py.
def heavyIonTools::ProductionDefaults::__init__ | ( | self | ) |
Definition at line 38 of file heavyIonTools.py.
def heavyIonTools::ProductionDefaults::__call__ | ( | self, | |
process | |||
) |
Definition at line 46 of file heavyIonTools.py.
def heavyIonTools::ProductionDefaults::getDefaultParameters | ( | self | ) |
Definition at line 43 of file heavyIonTools.py.
def heavyIonTools::ProductionDefaults::toolCode | ( | self, | |
process | |||
) |
Definition at line 50 of file heavyIonTools.py.
00050 : 00051 ## adapt jet defaults 00052 patJets = getattr(process, jetCollectionString()) 00053 patJets.jetSource = cms.InputTag("iterativeConePu5CaloJets") 00054 00055 jetCors = getattr(process, 'patJetCorrFactors') 00056 jetCors.jetSource = cms.InputTag("iterativeConePu5CaloJets") 00057 jetCors.corrLevels = cms.PSet(L2Relative = cms.string("L2Relative_IC5Calo"), 00058 L3Absolute = cms.string("L3Absolute_IC5Calo"), 00059 L1Offset = cms.string('none'), 00060 L4EMF = cms.string('none'), 00061 L5Flavor = cms.string('none'), 00062 L6UE = cms.string('none'), 00063 L7Parton = cms.string('none') 00064 ) 00065 00066 partonMatch = getattr(process, 'patJetPartonMatch') 00067 partonMatch.src = cms.InputTag("iterativeConePu5CaloJets") 00068 partonMatch.matched = cms.InputTag("hiPartons") 00069 00070 jetMatch = getattr(process, 'patJetGenJetMatch') 00071 jetMatch.src = cms.InputTag("iterativeConePu5CaloJets") 00072 jetMatch.matched = cms.InputTag("heavyIonCleanedGenJets") 00073 00074 patJets.addBTagInfo = False 00075 patJets.addTagInfos = False 00076 patJets.addDiscriminators = False 00077 patJets.addAssociatedTracks = False 00078 patJets.addJetCharge = False 00079 patJets.addJetID = False 00080 patJets.getJetMCFlavour = False 00081 patJets.addGenPartonMatch = True 00082 patJets.addGenJetMatch = True 00083 patJets.embedGenJetMatch = True 00084 patJets.embedGenPartonMatch = True 00085 00086 ## adapt muon defaults 00087 muonMatch = getattr(process, 'muonMatch') 00088 muonMatch.matched = cms.InputTag("hiGenParticles") 00089 patMuons = getattr(process, 'patMuons') 00090 patMuons.embedGenMatch = cms.bool(True) 00091 process.patMuons.embedCaloMETMuonCorrs = cms.bool(False) 00092 process.patMuons.embedTcMETMuonCorrs = cms.bool(False) 00093 process.patMuons.embedPFCandidate = cms.bool(False) 00094 process.patMuons.useParticleFlow = cms.bool(False) 00095 process.patMuons.addEfficiencies = cms.bool(False) 00096 process.patMuons.addResolutions = cms.bool(False) 00097 process.patMuons.pvSrc = cms.InputTag("hiSelectedVertex") 00098 00099 ## adapt photon defaults 00100 photonMatch = getattr(process, 'photonMatch') 00101 photonMatch.matched = cms.InputTag("hiGenParticles") 00102 patPhotons = getattr(process, 'patPhotons') 00103 patPhotons.addPhotonID = cms.bool(True) 00104 patPhotons.addGenMatch = cms.bool(True) 00105 patPhotons.embedGenMatch = cms.bool(True) 00106 patPhotons.userData.userFloats.src = cms.VInputTag( 00107 cms.InputTag( "isoCC1"),cms.InputTag( "isoCC2"),cms.InputTag( "isoCC3"),cms.InputTag( "isoCC4"),cms.InputTag("isoCC5"), 00108 cms.InputTag( "isoCR1"),cms.InputTag( "isoCR2"),cms.InputTag( "isoCR3"),cms.InputTag( "isoCR4"),cms.InputTag("isoCR5"), 00109 cms.InputTag( "isoT11"),cms.InputTag( "isoT12"),cms.InputTag( "isoT13"),cms.InputTag( "isoT14"), 00110 cms.InputTag( "isoT21"),cms.InputTag( "isoT22"),cms.InputTag( "isoT23"),cms.InputTag( "isoT24"), 00111 cms.InputTag( "isoT31"),cms.InputTag( "isoT32"),cms.InputTag( "isoT33"),cms.InputTag( "isoT34"), 00112 cms.InputTag( "isoT41"),cms.InputTag( "isoT42"),cms.InputTag( "isoT43"),cms.InputTag( "isoT44"), 00113 cms.InputTag("isoDR11"),cms.InputTag("isoDR12"),cms.InputTag("isoDR13"),cms.InputTag("isoDR14"), 00114 cms.InputTag("isoDR21"),cms.InputTag("isoDR22"),cms.InputTag("isoDR23"),cms.InputTag("isoDR24"), 00115 cms.InputTag("isoDR31"),cms.InputTag("isoDR32"),cms.InputTag("isoDR33"),cms.InputTag("isoDR34"), 00116 cms.InputTag("isoDR41"),cms.InputTag("isoDR42"),cms.InputTag("isoDR43"),cms.InputTag("isoDR44") 00117 ) 00118 patPhotons.photonIDSource = cms.InputTag("PhotonIDProd","PhotonCutBasedIDLoose") 00119 del patPhotons.photonIDSources 00120 00121 productionDefaults=ProductionDefaults() 00122 00123
Definition at line 38 of file heavyIonTools.py.
tuple heavyIonTools::ProductionDefaults::_defaultParameters = dicttypes.SortedKeysDict() [static, private] |
Definition at line 36 of file heavyIonTools.py.
string heavyIonTools::ProductionDefaults::_label = 'productionDefaults' [static, private] |
Definition at line 35 of file heavyIonTools.py.
Definition at line 38 of file heavyIonTools.py.