parameters: (self)
docstring: Initialize elements of the class. Note that the tool needs to be derived from ConfigToolBase to be usable in the configEditor.
docstring_summary: Initialize elements of the class. Note that the tool needs to be derived from ConfigToolBase to be usable in the configEditor.
docstring_tokens: Initialize elements of the class . Note that the tool needs to be derived from ConfigToolBase to be usable in the configEditor .
function: def __init__(self):
          """
          Initialize elements of the class. Note that the tool needs to be derived from ConfigToolBase to be usable in the configEditor.
          """
          ## initialization of the base class
          ConfigToolBase.__init__(self)
          ## add all parameters that should be known to the class
          self.addParameter(self._defaultParameters,'postfix','', "postfix from usePF2PAT")
          self.addParameter(self._defaultParameters,'btagPrefix','', "Prefix to be added to b-tag discriminator and TagInfo names", str)
          self.addParameter(self._defaultParameters,'jetSource','', "Label of the input collection from which the new patJet collection should be created", cms.InputTag)
          self.addParameter(self._defaultParameters,'pfCandidates',cms.InputTag('particleFlow'), "Label of the input collection for candidatecandidatese used in b-tagging", cms.InputTag)
          self.addParameter(self._defaultParameters,'explicitJTA', False, "Use explicit jet-track association")
          self.addParameter(self._defaultParameters,'pvSource',cms.InputTag('offlinePrimaryVertices'), "Label of the input collection for primary vertices used in b-tagging", cms.InputTag)
          self.addParameter(self._defaultParameters,'svSource',cms.InputTag('inclusiveCandidateSecondaryVertices'), "Label of the input collection for IVF vertices used in b-tagging", cms.InputTag)
          self.addParameter(self._defaultParameters,'elSource',cms.InputTag('gedGsfElectrons'), "Label of the input collection for electrons used in b-tagging", cms.InputTag)
          self.addParameter(self._defaultParameters,'muSource',cms.InputTag('muons'), "Label of the input collection for muons used in b-tagging", cms.InputTag)
          self.addParameter(self._defaultParameters,'runIVF', False, "Re-run IVF secondary vertex reconstruction")
          self.addParameter(self._defaultParameters,'tightBTagNTkHits', False, "Enable legacy tight b-tag track selection")
          self.addParameter(self._defaultParameters,'loadStdRecoBTag', False, "Load the standard reconstruction b-tagging modules")
          self.addParameter(self._defaultParameters,'svClustering', False, "Secondary vertices ghost-associated to jets using jet clustering (mostly intended for subjets)")
          self.addParameter(self._defaultParameters,'fatJets', cms.InputTag(''), "Fat jet collection used for secondary vertex clustering", cms.InputTag)
          self.addParameter(self._defaultParameters,'groomedFatJets', cms.InputTag(''), "Groomed fat jet collection used for secondary vertex clustering", cms.InputTag)
          self.addParameter(self._defaultParameters,'algo', 'AK', "Jet algorithm of the input collection from which the new patJet collection should be created")
          self.addParameter(self._defaultParameters,'rParam', 0.4, "Jet size (distance parameter R used in jet clustering)")
          self.addParameter(self._defaultParameters,'getJetMCFlavour', True, "Get jet MC truth flavour")
          self.addParameter(self._defaultParameters,'genJetCollection', cms.InputTag("ak4GenJets"), "GenJet collection to match to")
          self.addParameter(self._defaultParameters,'genParticles', cms.InputTag("genParticles"), "GenParticle collection to be used", cms.InputTag)
          self.addParameter(self._defaultParameters,'jetCorrections',None, "Add all relevant information about jet energy corrections that you want to be added to your new patJet \
          collection. The format is to be passed on in a python tuple: e.g. (\'AK4Calo\',[\'L2Relative\', \'L3Absolute\'], patMet). The first argument corresponds to the payload \
          in the CMS Conditions database for the given jet collection; the second argument corresponds to the jet energy correction level that you want to be embedded into your \
          new patJet collection. This should be given as a list of strings. Available values are L1Offset, L1FastJet, L1JPTOffset, L2Relative, L3Absolute, L5Falvour, L7Parton; the \
          third argument indicates whether MET(Type1) corrections should be applied corresponding to the new patJetCollection. If so a new patMet collection will be added to your PAT \
          Tuple in addition to the raw patMet with the MET(Type1) corrections applied. The argument corresponds to the patMet collection to which the MET(Type1) corrections should be \
          applied. If you are not interested in MET(Type1) corrections to this new patJet collection pass None as third argument of the python tuple.", tuple, acceptNoneValue=True)
          self.addParameter(self._defaultParameters,'btagDiscriminators',['None'], "If you are interested in btagging in general the btag discriminators is all relevant \
          information that you need for a high level analysis. Add here all btag discriminators, that you are interested in as a list of strings. If this list is empty no btag \
          discriminator information will be added to your new patJet collection.", allowedValues=(list(set().union(supportedBtagDiscr.keys(),supportedMetaDiscr.keys()))),Type=list)
          self.addParameter(self._defaultParameters,'btagInfos',['None'], "The btagInfos objects conatin all relevant information from which all discriminators of a certain \
          type have been calculated. Note that this information on the one hand can be very space consuming and on the other hand is not necessary to access the btag discriminator \
          information that has been derived from it. Only in very special cases the btagInfos might really be needed in your analysis. Add here all btagInfos, that you are interested \
          in as a list of strings. If this list is empty no btagInfos will be added to your new patJet collection.", allowedValues=supportedBtagInfos,Type=list)
          self.addParameter(self._defaultParameters,'jetTrackAssociation',False, "Add JetTrackAssociation and JetCharge from reconstructed tracks to your new patJet collection. This \
          switch is only of relevance if you don\'t add any btag information to your new patJet collection (btagDiscriminators or btagInfos) and still want this information added to \
          your new patJetCollection. If btag information is added to the new patJet collection this information will be added automatically.")
          self.addParameter(self._defaultParameters,'outputModules',['out'],"Output module labels. Add a list of all output modules to which you would like the new jet collection to \
          be added, in case you use more than one output module.")
          ## set defaults
          self._parameters=copy.deepcopy(self._defaultParameters)
          ## add comments
          self._comment = "This is a tool to add more patJet collectinos to your PAT Tuple. You can add and embed additional information like jet energy correction factors, btag \
          information and generator match information to the new patJet collection depending on the parameters that you pass on to this function. Consult the descriptions of each \
          parameter for more information."
function_tokens: def __init__ ( self ) : ## initialization of the base class ConfigToolBase . __init__ ( self ) ## add all parameters that should be known to the class self . addParameter ( self . _defaultParameters , 'postfix' , '' , "postfix from usePF2PAT" ) self . addParameter ( self . _defaultParameters , 'btagPrefix' , '' , "Prefix to be added to b-tag discriminator and TagInfo names" , str ) self . addParameter ( self . _defaultParameters , 'jetSource' , '' , "Label of the input collection from which the new patJet collection should be created" , cms . InputTag ) self . addParameter ( self . _defaultParameters , 'pfCandidates' , cms . InputTag ( 'particleFlow' ) , "Label of the input collection for candidatecandidatese used in b-tagging" , cms . InputTag ) self . addParameter ( self . _defaultParameters , 'explicitJTA' , False , "Use explicit jet-track association" ) self . addParameter ( self . _defaultParameters , 'pvSource' , cms . InputTag ( 'offlinePrimaryVertices' ) , "Label of the input collection for primary vertices used in b-tagging" , cms . InputTag ) self . addParameter ( self . _defaultParameters , 'svSource' , cms . InputTag ( 'inclusiveCandidateSecondaryVertices' ) , "Label of the input collection for IVF vertices used in b-tagging" , cms . InputTag ) self . addParameter ( self . _defaultParameters , 'elSource' , cms . InputTag ( 'gedGsfElectrons' ) , "Label of the input collection for electrons used in b-tagging" , cms . InputTag ) self . addParameter ( self . _defaultParameters , 'muSource' , cms . InputTag ( 'muons' ) , "Label of the input collection for muons used in b-tagging" , cms . InputTag ) self . addParameter ( self . _defaultParameters , 'runIVF' , False , "Re-run IVF secondary vertex reconstruction" ) self . addParameter ( self . _defaultParameters , 'tightBTagNTkHits' , False , "Enable legacy tight b-tag track selection" ) self . addParameter ( self . _defaultParameters , 'loadStdRecoBTag' , False , "Load the standard reconstruction b-tagging modules" ) self . addParameter ( self . _defaultParameters , 'svClustering' , False , "Secondary vertices ghost-associated to jets using jet clustering (mostly intended for subjets)" ) self . addParameter ( self . _defaultParameters , 'fatJets' , cms . InputTag ( '' ) , "Fat jet collection used for secondary vertex clustering" , cms . InputTag ) self . addParameter ( self . _defaultParameters , 'groomedFatJets' , cms . InputTag ( '' ) , "Groomed fat jet collection used for secondary vertex clustering" , cms . InputTag ) self . addParameter ( self . _defaultParameters , 'algo' , 'AK' , "Jet algorithm of the input collection from which the new patJet collection should be created" ) self . addParameter ( self . _defaultParameters , 'rParam' , 0.4 , "Jet size (distance parameter R used in jet clustering)" ) self . addParameter ( self . _defaultParameters , 'getJetMCFlavour' , True , "Get jet MC truth flavour" ) self . addParameter ( self . _defaultParameters , 'genJetCollection' , cms . InputTag ( "ak4GenJets" ) , "GenJet collection to match to" ) self . addParameter ( self . _defaultParameters , 'genParticles' , cms . InputTag ( "genParticles" ) , "GenParticle collection to be used" , cms . InputTag ) self . addParameter ( self . _defaultParameters , 'jetCorrections' , None , "Add all relevant information about jet energy corrections that you want to be added to your new patJet \
          collection. The format is to be passed on in a python tuple: e.g. (\'AK4Calo\',[\'L2Relative\', \'L3Absolute\'], patMet). The first argument corresponds to the payload \
          in the CMS Conditions database for the given jet collection; the second argument corresponds to the jet energy correction level that you want to be embedded into your \
          new patJet collection. This should be given as a list of strings. Available values are L1Offset, L1FastJet, L1JPTOffset, L2Relative, L3Absolute, L5Falvour, L7Parton; the \
          third argument indicates whether MET(Type1) corrections should be applied corresponding to the new patJetCollection. If so a new patMet collection will be added to your PAT \
          Tuple in addition to the raw patMet with the MET(Type1) corrections applied. The argument corresponds to the patMet collection to which the MET(Type1) corrections should be \
          applied. If you are not interested in MET(Type1) corrections to this new patJet collection pass None as third argument of the python tuple." , tuple , acceptNoneValue = True ) self . addParameter ( self . _defaultParameters , 'btagDiscriminators' , [ 'None' ] , "If you are interested in btagging in general the btag discriminators is all relevant \
          information that you need for a high level analysis. Add here all btag discriminators, that you are interested in as a list of strings. If this list is empty no btag \
          discriminator information will be added to your new patJet collection." , allowedValues = ( list ( set ( ) . union ( supportedBtagDiscr . keys ( ) , supportedMetaDiscr . keys ( ) ) ) ) , Type = list ) self . addParameter ( self . _defaultParameters , 'btagInfos' , [ 'None' ] , "The btagInfos objects conatin all relevant information from which all discriminators of a certain \
          type have been calculated. Note that this information on the one hand can be very space consuming and on the other hand is not necessary to access the btag discriminator \
          information that has been derived from it. Only in very special cases the btagInfos might really be needed in your analysis. Add here all btagInfos, that you are interested \
          in as a list of strings. If this list is empty no btagInfos will be added to your new patJet collection." , allowedValues = supportedBtagInfos , Type = list ) self . addParameter ( self . _defaultParameters , 'jetTrackAssociation' , False , "Add JetTrackAssociation and JetCharge from reconstructed tracks to your new patJet collection. This \
          switch is only of relevance if you don\'t add any btag information to your new patJet collection (btagDiscriminators or btagInfos) and still want this information added to \
          your new patJetCollection. If btag information is added to the new patJet collection this information will be added automatically." ) self . addParameter ( self . _defaultParameters , 'outputModules' , [ 'out' ] , "Output module labels. Add a list of all output modules to which you would like the new jet collection to \
          be added, in case you use more than one output module." ) ## set defaults self . _parameters = copy . deepcopy ( self . _defaultParameters ) ## add comments self . _comment = "This is a tool to add more patJet collectinos to your PAT Tuple. You can add and embed additional information like jet energy correction factors, btag \
          information and generator match information to the new patJet collection depending on the parameters that you pass on to this function. Consult the descriptions of each \
          parameter for more information."