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 = 'addJetID' |
Compute jet id for process
Definition at line 657 of file jetTools.py.
def jetTools::AddJetID::__init__ | ( | self | ) |
Definition at line 663 of file jetTools.py.
00664 : 00665 ConfigToolBase.__init__(self) 00666 self.addParameter(self._defaultParameters,'jetSrc',self._defaultValue, "", Type=cms.InputTag) 00667 self.addParameter(self._defaultParameters,'jetIdTag',self._defaultValue, "Tag to append to jet id map", Type=str) 00668 self._parameters=copy.deepcopy(self._defaultParameters) 00669 self._comment = ""
def jetTools::AddJetID::__call__ | ( | self, | |
process, | |||
jetSrc = None , |
|||
jetIdTag = None |
|||
) |
Definition at line 673 of file jetTools.py.
def jetTools::AddJetID::getDefaultParameters | ( | self | ) |
Definition at line 670 of file jetTools.py.
def jetTools::AddJetID::toolCode | ( | self, | |
process | |||
) |
Definition at line 684 of file jetTools.py.
00684 : 00685 jetSrc=self._parameters['jetSrc'].value 00686 jetIdTag=self._parameters['jetIdTag'].value 00687 00688 jetIdLabel = jetIdTag + 'JetID' 00689 print "Making new jet ID label with label " + jetIdTag 00690 00691 ## replace jet id sequence 00692 process.load("RecoJets.JetProducers.ak5JetID_cfi") 00693 setattr( process, jetIdLabel, process.ak5JetID.clone(src = jetSrc)) 00694 process.makePatJets.replace( process.patJets, getattr(process,jetIdLabel) + process.patJets ) 00695 00696 addJetID=AddJetID() 00697 00698
jetTools::AddJetID::_comment [private] |
Definition at line 663 of file jetTools.py.
tuple jetTools::AddJetID::_defaultParameters = dicttypes.SortedKeysDict() [static, private] |
Definition at line 662 of file jetTools.py.
string jetTools::AddJetID::_label = 'addJetID' [static, private] |
Definition at line 661 of file jetTools.py.
jetTools::AddJetID::_parameters [private] |
Definition at line 663 of file jetTools.py.