Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-07-26 22:25:26

0001 import FWCore.ParameterSet.Config as cms
0002 import PhysicsTools.PatAlgos.PATJetProducer_cfi as _mod
0003 
0004 _patJets = _mod.PATJetProducer.clone(
0005     # input
0006     jetSource = "ak4PFJetsCHS",
0007     # add user data
0008     userData = dict(
0009       # add custom classes here
0010       userClasses = cms.PSet(
0011         src = cms.VInputTag('')
0012       ),
0013       # add doubles here
0014       userFloats = cms.PSet(
0015         src = cms.VInputTag('')
0016       ),
0017       # add ints here
0018       userInts = cms.PSet(
0019         src = cms.VInputTag('')
0020       ),
0021       # add candidate ptrs here
0022       userCands = cms.PSet(
0023         src = cms.VInputTag('')
0024       ),
0025       # add "inline" functions here
0026       userFunctions = [],
0027       userFunctionLabels = []
0028     ),
0029     # embedding of RECO items (do not use on AOD input!)
0030     #embedCaloTowers = cms.bool(False), # optional
0031     # embedding of AOD items
0032     embedPFCandidates = False,
0033     # jet energy corrections
0034     addJetCorrFactors    = True,
0035     jetCorrFactorsSource = ["patJetCorrFactors" ],
0036     # btag information
0037     addBTagInfo          = True,   ## master switch
0038     addDiscriminators    = True,   ## addition btag discriminators
0039     discriminatorSources = ["pfJetBProbabilityBJetTags",
0040                             "pfJetProbabilityBJetTags",
0041                             "pfTrackCountingHighEffBJetTags",
0042                             "pfSimpleSecondaryVertexHighEffBJetTags",
0043                             "pfSimpleInclusiveSecondaryVertexHighEffBJetTags",
0044                             "pfCombinedSecondaryVertexV2BJetTags",
0045                             "pfCombinedInclusiveSecondaryVertexV2BJetTags",
0046                             "softPFMuonBJetTags",
0047                             "softPFElectronBJetTags",
0048                             "pfCombinedMVAV2BJetTags",
0049                             # CTagging
0050                             'pfCombinedCvsLJetTags',
0051                             'pfCombinedCvsBJetTags',
0052                             # DeepFlavour
0053                             'pfDeepCSVJetTags:probb',
0054                             'pfDeepCSVJetTags:probc',
0055                             'pfDeepCSVJetTags:probudsg',
0056                             'pfDeepCSVJetTags:probbb',
0057                             # New DeepFlavour (commented until available in RelVals)
0058                             #'pfDeepFlavourJetTags:probb',
0059                             #'pfDeepFlavourJetTags:probbb',
0060                             #'pfDeepFlavourJetTags:problepb',
0061                             #'pfDeepFlavourJetTags:probc',
0062                             #'pfDeepFlavourJetTags:probuds',
0063                             #'pfDeepFlavourJetTags:probg'
0064                            ],
0065     # clone tag infos ATTENTION: these take lots of space!
0066     # usually the discriminators from the default algos
0067     # are sufficient
0068     addTagInfos     = False,
0069     tagInfoSources  = [],
0070     # track association
0071     addAssociatedTracks    = True,
0072     trackAssociationSource = "ak4JetTracksAssociatorAtVertexPF",
0073     # jet charge
0074     addJetCharge    = True,
0075     jetChargeSource = "patJetCharge",
0076     # add jet ID for calo jets. This should be of type ak4JetID, ak7JetID, ...
0077     addJetID = False,
0078     jetIDMap = "ak4JetID",
0079     # mc matching
0080     addGenPartonMatch   = True,                ## switch on/off matching to quarks from hard scatterin
0081     embedGenPartonMatch = True,                ## switch on/off embedding of the GenParticle parton for this jet
0082     genPartonMatch      = "patJetPartonMatch", ## particles source to be used for the matching
0083     addGenJetMatch      = True,                ## switch on/off matching to GenJet's
0084     embedGenJetMatch    = True,                ## switch on/off embedding of matched genJet's
0085     genJetMatch         = "patJetGenJetMatch", ## GenJet source to be used for the matching
0086     addPartonJetMatch   = False,               ## switch on/off matching to PartonJet's (not implemented yet)
0087     partonJetSource     = "NOT_IMPLEMENTED",   ## ParticleJet source to be used for the matching
0088     # jet flavour idetification configurables
0089     getJetMCFlavour       = True,
0090     useLegacyJetMCFlavour = False,
0091     addJetFlavourInfo     = True,
0092     JetPartonMapSource    = "patJetFlavourAssociationLegacy",
0093     JetFlavourInfoSource  = "patJetFlavourAssociation",
0094     # efficiencies
0095     addEfficiencies = False,
0096     efficiencies    = dict(),
0097     # resolution
0098     addResolutions  = False,
0099     resolutions     = dict()
0100 )
0101 
0102 from Configuration.Eras.Modifier_pp_on_AA_2018_cff import pp_on_AA_2018
0103 pp_on_AA_2018.toModify(_patJets, 
0104                        jetSource = "akCs4PFJets",
0105                        genJetMatch = "patJetGenJetMatch",
0106                        genPartonMatch = "patJetPartonMatch",
0107                        JetFlavourInfoSource = "patJetFlavourAssociation",
0108                        JetPartonMapSource = "patJetFlavourAssociationLegacy",
0109                        jetCorrFactorsSource = ["patJetCorrFactors"],
0110                        trackAssociationSource = "ak5JetTracksAssociatorAtVertex",
0111                        useLegacyJetMCFlavour = True,
0112                        discriminatorSources = [
0113                            "simpleSecondaryVertexHighEffBJetTags",
0114                            "simpleSecondaryVertexHighPurBJetTags",
0115                            "combinedSecondaryVertexV2BJetTags",
0116                            "jetBProbabilityBJetTags",
0117                            "jetProbabilityBJetTags",
0118                            "trackCountingHighEffBJetTags",
0119                            "trackCountingHighPurBJetTags",
0120                        ],
0121                     addJetCharge = False,
0122 )
0123 
0124 from Configuration.Eras.Modifier_pp_on_PbPb_run3_cff import pp_on_PbPb_run3
0125 pp_on_PbPb_run3.toModify(_patJets, 
0126                          jetSource = "akCs4PFJets",
0127                          genJetMatch = "patJetGenJetMatch",
0128                          genPartonMatch = "patJetPartonMatch",
0129                          JetFlavourInfoSource = "patJetFlavourAssociation",
0130                          JetPartonMapSource = "patJetFlavourAssociationLegacy",
0131                          jetCorrFactorsSource = ["patJetCorrFactors"],
0132                          trackAssociationSource = "",
0133                          useLegacyJetMCFlavour = True,
0134                          discriminatorSources = [],
0135                          tagInfoSources = [],
0136                          addJetCharge = False,
0137                          addTagInfos = False,
0138                          addDiscriminators = False,
0139                          addAssociatedTracks    = False,
0140 )
0141 
0142 patJets = _patJets.clone()