CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes | Static Private Attributes
heavyIonTools.ProductionDefaults Class Reference
Inheritance diagram for heavyIonTools.ProductionDefaults:

Public Member Functions

def __call__ (self, process)
 
def __init__ (self)
 
def getDefaultParameters (self)
 
def toolCode (self, process)
 

Private Attributes

 _comment
 
 _parameters
 

Static Private Attributes

 _defaultParameters
 
 _label
 

Detailed Description

Configure all relevant layer1 candidates for heavy ions

Definition at line 31 of file heavyIonTools.py.

Constructor & Destructor Documentation

◆ __init__()

def heavyIonTools.ProductionDefaults.__init__ (   self)

Definition at line 38 of file heavyIonTools.py.

38  def __init__(self):
39  ConfigToolBase.__init__(self)
40  self._parameters=copy.deepcopy(self._defaultParameters)
41  self._comment = ""
42 
def __init__(self, dataset, job_number, job_id, job_name, isDA, isMC, applyBOWS, applyEXTRACOND, extraconditions, runboundary, lumilist, intlumi, maxevents, gt, allFromGT, alignmentDB, alignmentTAG, apeDB, apeTAG, bowDB, bowTAG, vertextype, tracktype, refittertype, ttrhtype, applyruncontrol, ptcut, CMSSW_dir, the_dir)

Member Function Documentation

◆ __call__()

def heavyIonTools.ProductionDefaults.__call__ (   self,
  process 
)

◆ getDefaultParameters()

def heavyIonTools.ProductionDefaults.getDefaultParameters (   self)

◆ toolCode()

def heavyIonTools.ProductionDefaults.toolCode (   self,
  process 
)

Definition at line 50 of file heavyIonTools.py.

References helpers.jetCollectionString().

50  def toolCode(self, process):
51 
52  patJets = getattr(process, jetCollectionString())
53  patJets.jetSource = cms.InputTag("iterativeConePu5CaloJets")
54 
55  jetCors = getattr(process, 'patJetCorrFactors')
56  jetCors.jetSource = cms.InputTag("iterativeConePu5CaloJets")
57  jetCors.corrLevels = cms.PSet(L2Relative = cms.string("L2Relative_IC5Calo"),
58  L3Absolute = cms.string("L3Absolute_IC5Calo"),
59  L1Offset = cms.string('none'),
60  L4EMF = cms.string('none'),
61  L5Flavor = cms.string('none'),
62  L6UE = cms.string('none'),
63  L7Parton = cms.string('none')
64  )
65 
66  partonMatch = getattr(process, 'patJetPartonMatch')
67  partonMatch.src = cms.InputTag("iterativeConePu5CaloJets")
68  partonMatch.matched = cms.InputTag("hiPartons")
69 
70  jetMatch = getattr(process, 'patJetGenJetMatch')
71  jetMatch.src = cms.InputTag("iterativeConePu5CaloJets")
72  jetMatch.matched = cms.InputTag("heavyIonCleanedGenJets")
73 
74  patJets.addBTagInfo = False
75  patJets.addTagInfos = False
76  patJets.addDiscriminators = False
77  patJets.addAssociatedTracks = False
78  patJets.addJetCharge = False
79  patJets.addJetID = False
80  patJets.getJetMCFlavour = False
81  patJets.addGenPartonMatch = True
82  patJets.addGenJetMatch = True
83  patJets.embedGenJetMatch = True
84  patJets.embedGenPartonMatch = True
85 
86 
87  muonMatch = getattr(process, 'muonMatch')
88  muonMatch.matched = cms.InputTag("hiGenParticles")
89  patMuons = getattr(process, 'patMuons')
90  patMuons.embedGenMatch = cms.bool(True)
91  process.patMuons.embedCaloMETMuonCorrs = cms.bool(False)
92  process.patMuons.embedTcMETMuonCorrs = cms.bool(False)
93  process.patMuons.embedPFCandidate = cms.bool(False)
94  process.patMuons.useParticleFlow = cms.bool(False)
95  process.patMuons.addEfficiencies = cms.bool(False)
96  process.patMuons.addResolutions = cms.bool(False)
97  process.patMuons.pvSrc = cms.InputTag("hiSelectedVertex")
98 
99 
100  photonMatch = getattr(process, 'photonMatch')
101  photonMatch.matched = cms.InputTag("hiGenParticles")
102  patPhotons = getattr(process, 'patPhotons')
103  patPhotons.addPhotonID = cms.bool(True)
104  patPhotons.addGenMatch = cms.bool(True)
105  patPhotons.embedGenMatch = cms.bool(True)
106  patPhotons.userData.userFloats.src = cms.VInputTag(
107  cms.InputTag( "isoCC1"),cms.InputTag( "isoCC2"),cms.InputTag( "isoCC3"),cms.InputTag( "isoCC4"),cms.InputTag("isoCC5"),
108  cms.InputTag( "isoCR1"),cms.InputTag( "isoCR2"),cms.InputTag( "isoCR3"),cms.InputTag( "isoCR4"),cms.InputTag("isoCR5"),
109  cms.InputTag( "isoT11"),cms.InputTag( "isoT12"),cms.InputTag( "isoT13"),cms.InputTag( "isoT14"),
110  cms.InputTag( "isoT21"),cms.InputTag( "isoT22"),cms.InputTag( "isoT23"),cms.InputTag( "isoT24"),
111  cms.InputTag( "isoT31"),cms.InputTag( "isoT32"),cms.InputTag( "isoT33"),cms.InputTag( "isoT34"),
112  cms.InputTag( "isoT41"),cms.InputTag( "isoT42"),cms.InputTag( "isoT43"),cms.InputTag( "isoT44"),
113  cms.InputTag("isoDR11"),cms.InputTag("isoDR12"),cms.InputTag("isoDR13"),cms.InputTag("isoDR14"),
114  cms.InputTag("isoDR21"),cms.InputTag("isoDR22"),cms.InputTag("isoDR23"),cms.InputTag("isoDR24"),
115  cms.InputTag("isoDR31"),cms.InputTag("isoDR32"),cms.InputTag("isoDR33"),cms.InputTag("isoDR34"),
116  cms.InputTag("isoDR41"),cms.InputTag("isoDR42"),cms.InputTag("isoDR43"),cms.InputTag("isoDR44")
117  )
118  patPhotons.photonIDSource = cms.InputTag("PhotonIDProd","PhotonCutBasedIDLoose")
119  del patPhotons.photonIDSources
120 
121 productionDefaults=ProductionDefaults()
122 
123 
def jetCollectionString(prefix='', algo='', type='')
Definition: helpers.py:217

Member Data Documentation

◆ _comment

heavyIonTools.ProductionDefaults._comment
private

Definition at line 41 of file heavyIonTools.py.

◆ _defaultParameters

heavyIonTools.ProductionDefaults._defaultParameters
staticprivate

Definition at line 36 of file heavyIonTools.py.

Referenced by trackTools.MakeAODTrackCandidates.__call__(), runJetUncertainties.RunJetUncertainties.__call__(), metTools.AddMETCollection.__call__(), trackTools.MakePATTrackCandidates.__call__(), trigTools.SwitchOnTrigger.__call__(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.__call__(), trigTools.SwitchOnTriggerStandAlone.__call__(), tauTools.AddTauCollection.__call__(), trackTools.MakeTrackCandidates.__call__(), trigTools.SwitchOnTriggerMatching.__call__(), trigTools.SwitchOnTriggerMatchingStandAlone.__call__(), trigTools.SwitchOnTriggerMatchEmbedding.__call__(), jetTools.AddJetCollection.__call__(), jetTools.SwitchJetCollection.__call__(), jetTools.UpdateJetCollection.__call__(), jetTools.AddJetID.__call__(), jetTools.SetTagInfos.__call__(), metTools.AddMETCollection.__init__(), trackTools.MakeAODTrackCandidates.__init__(), runJetUncertainties.RunJetUncertainties.__init__(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.__init__(), trackTools.MakePATTrackCandidates.__init__(), trigTools.SwitchOnTrigger.__init__(), trigTools.SwitchOnTriggerStandAlone.__init__(), tauTools.AddTauCollection.__init__(), trackTools.MakeTrackCandidates.__init__(), trigTools.SwitchOnTriggerMatching.__init__(), trigTools.SwitchOnTriggerMatchingStandAlone.__init__(), trigTools.SwitchOnTriggerMatchEmbedding.__init__(), jetTools.AddJetCollection.__init__(), jetTools.SwitchJetCollection.__init__(), jetTools.UpdateJetCollection.__init__(), jetTools.AddJetID.__init__(), jetTools.SetTagInfos.__init__(), ConfigToolBase.ConfigToolBase.dumpPython(), ConfigToolBase.ConfigToolBase.getAllowedValues(), trackTools.MakeAODTrackCandidates.getDefaultParameters(), metTools.AddMETCollection.getDefaultParameters(), heavyIonTools.ProductionDefaults.getDefaultParameters(), trackTools.MakePATTrackCandidates.getDefaultParameters(), trigTools.SwitchOnTrigger.getDefaultParameters(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.getDefaultParameters(), heavyIonTools.SelectionDefaults.getDefaultParameters(), heavyIonTools.DisbaleMonteCarloDeps.getDefaultParameters(), trigTools.SwitchOnTriggerStandAlone.getDefaultParameters(), tauTools.AddTauCollection.getDefaultParameters(), trackTools.MakeTrackCandidates.getDefaultParameters(), trigTools.SwitchOnTriggerMatching.getDefaultParameters(), trigTools.SwitchOnTriggerMatchingStandAlone.getDefaultParameters(), trigTools.SwitchOnTriggerMatchEmbedding.getDefaultParameters(), jetTools.AddJetCollection.getDefaultParameters(), jetTools.SwitchJetCollection.getDefaultParameters(), jetTools.UpdateJetCollection.getDefaultParameters(), jetTools.AddJetID.getDefaultParameters(), jetTools.SetTagInfos.getDefaultParameters(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.initializeInputTag(), ConfigToolBase.ConfigToolBase.reset(), and ConfigToolBase.ConfigToolBase.setParameter().

◆ _label

heavyIonTools.ProductionDefaults._label
staticprivate

◆ _parameters

heavyIonTools.ProductionDefaults._parameters
private

Definition at line 40 of file heavyIonTools.py.

Referenced by runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.ak4JetReclustering(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.createMVAMETModule(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.createSmearedJetModule(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.extractMET(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.getCorrectedMET(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.getMETUncertainties(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.getUnclusteredVariationsForMVAMET(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.getVariations(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.jetCleaning(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.jetConfiguration(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.miniAODConfiguration(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.miniAODConfigurationPost(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.recomputeRawMetFromPfcs(), trackTools.MakeAODTrackCandidates.toolCode(), metTools.AddMETCollection.toolCode(), runJetUncertainties.RunJetUncertainties.toolCode(), trigTools.SwitchOnTrigger.toolCode(), trackTools.MakePATTrackCandidates.toolCode(), trigTools.SwitchOnTriggerStandAlone.toolCode(), tauTools.AddTauCollection.toolCode(), trackTools.MakeTrackCandidates.toolCode(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.toolCode(), trigTools.SwitchOnTriggerMatching.toolCode(), trigTools.SwitchOnTriggerMatchingStandAlone.toolCode(), trigTools.SwitchOnTriggerMatchEmbedding.toolCode(), jetTools.AddJetCollection.toolCode(), jetTools.SwitchJetCollection.toolCode(), jetTools.UpdateJetCollection.toolCode(), jetTools.AddJetID.toolCode(), jetTools.SetTagInfos.toolCode(), and runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.updateJECs().