CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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__
 
def __init__
 
def getDefaultParameters
 
def toolCode
 

Private Attributes

 _comment
 
 _parameters
 

Static Private Attributes

tuple _defaultParameters = dicttypes.SortedKeysDict()
 
string _label = 'productionDefaults'
 

Detailed Description

Configure all relevant layer1 candidates for heavy ions

Definition at line 31 of file heavyIonTools.py.

Constructor & Destructor Documentation

def heavyIonTools.ProductionDefaults.__init__ (   self)

Definition at line 38 of file heavyIonTools.py.

38 
39  def __init__(self):
40  ConfigToolBase.__init__(self)
41  self._parameters=copy.deepcopy(self._defaultParameters)
42  self._comment = ""

Member Function Documentation

def heavyIonTools.ProductionDefaults.__call__ (   self,
  process 
)

Definition at line 46 of file heavyIonTools.py.

References SignedImpactParameter3D.apply(), SignedDecayLength3D.apply(), SignedTransverseImpactParameter.apply(), gen::PhotosInterfaceBase.apply(), DummyOOTPileupCorrection.apply(), SurveyParameters.apply(), MatrixReader.MatrixReader.apply, gen::PhotosppInterface.apply(), gen::PhotosInterface.apply(), FWPSetCellEditor.apply(), BeamSpotAlignmentParameters.apply(), RigidBodyAlignmentParameters.apply(), DeviationsFromFileSensor2D.apply(), FWGUIEventFilter.apply(), AlignmentParameters.apply(), ConfigToolBase.ConfigToolBase.apply(), BowedSurfaceAlignmentParameters.apply(), OOTPileupCorrData.apply(), AbsOOTPileupCorrection.apply(), TwoBowedSurfacesAlignmentParameters.apply(), reco::modules::TrackerTrackHitFilter::Rule.apply(), cmsswVersionTools.PickRelValInputFiles.apply(), models.RegExp.apply(), ArrayND< Accumulator >.apply(), npstat::ArrayND< Numeric >.apply(), ArrayND< Numeric, Len, Dim >.apply(), ArrayND< Numeric, Len2, Dim2 >.apply(), npstat::ArrayND< Numeric, StackLen, StackDim >.apply(), ArrayND< Num1, Len1, Dim1 >.apply(), ArrayND< Num2, Len2, Dim2 >.apply(), and Config.ProcessModifier.apply().

46 
47  def __call__(self,process):
48 
49  self.apply(process)
def heavyIonTools.ProductionDefaults.getDefaultParameters (   self)

Definition at line 43 of file heavyIonTools.py.

References heavyIonTools.ConfigureHeavyIons._defaultParameters, coreTools.RunOnData._defaultParameters, heavyIonTools.ProductionDefaults._defaultParameters, cmsswVersionTools.PickRelValInputFiles._defaultParameters, and coreTools.RemoveMCMatching._defaultParameters.

43 
44  def getDefaultParameters(self):
45  return self._defaultParameters
def heavyIonTools.ProductionDefaults.toolCode (   self,
  process 
)

Definition at line 50 of file heavyIonTools.py.

References helpers.jetCollectionString().

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

Member Data Documentation

heavyIonTools.ProductionDefaults._comment
private

Definition at line 41 of file heavyIonTools.py.

tuple heavyIonTools.ProductionDefaults._defaultParameters = dicttypes.SortedKeysDict()
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().

string heavyIonTools.ProductionDefaults._label = 'productionDefaults'
staticprivate

Definition at line 35 of file heavyIonTools.py.

Referenced by validation.SimpleSample.digest(), validation.SimpleSample.label(), trigTools.SwitchOnTrigger.toolCode(), trigTools.SwitchOnTriggerStandAlone.toolCode(), trigTools.SwitchOnTriggerMatching.toolCode(), trigTools.SwitchOnTriggerMatchingStandAlone.toolCode(), and trigTools.SwitchOnTriggerMatchEmbedding.toolCode().

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(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.toolCode(), trackTools.MakeTrackCandidates.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().