CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
jetCollectionTools.GenJetInfo Class Reference
Inheritance diagram for jetCollectionTools.GenJetInfo:

Public Member Functions

def __init__ (self, jet, inputCollection)
 

Public Attributes

 inputCollection
 
 jet
 
 jetAlgo
 
 jetLower
 
 jetSize
 
 jetSizeNr
 
 jetTagName
 
 jetUpper
 

Detailed Description

Class to hold information of a genjet collection

Definition at line 30 of file jetCollectionTools.py.

Constructor & Destructor Documentation

def jetCollectionTools.GenJetInfo.__init__ (   self,
  jet,
  inputCollection 
)

Definition at line 34 of file jetCollectionTools.py.

34  def __init__(self, jet, inputCollection):
35  self.jet = jet
36  self.jetLower = jet.lower()
37  self.jetUpper = jet.upper()
38  self.jetTagName = self.jetUpper
39  self.inputCollection = inputCollection
40  algoKey = 'algo'
41  sizeKey = 'size'
42  recoKey = 'reco'
43  jetRegex = re.compile(
44  r'(?P<{algo}>({algoList}))(?P<{size}>[0-9]+)gen'.format(
45  algo = algoKey,
46  algoList = '|'.join(supportedJetAlgos.keys()),
47  size = sizeKey,
48  )
49  )
50  jetMatch = jetRegex.match(jet.lower())
51  if not jetMatch:
52  raise RuntimeError('Invalid jet collection: %s' % jet)
53  self.jetAlgo = jetMatch.group(algoKey)
54  self.jetSize = jetMatch.group(sizeKey)
55  self.jetSizeNr = float(self.jetSize) / 10.
56 
57 #============================================
58 #
59 # GenJetAdder
60 #
61 #============================================
def __init__(self, jet, inputCollection)
static std::string join(char **cmd)
Definition: RemoteFile.cc:18

Member Data Documentation

jetCollectionTools.GenJetInfo.inputCollection

Definition at line 39 of file jetCollectionTools.py.

jetCollectionTools.GenJetInfo.jet

Definition at line 35 of file jetCollectionTools.py.

jetCollectionTools.GenJetInfo.jetAlgo

Definition at line 53 of file jetCollectionTools.py.

jetCollectionTools.GenJetInfo.jetLower

Definition at line 36 of file jetCollectionTools.py.

jetCollectionTools.GenJetInfo.jetSize

Definition at line 54 of file jetCollectionTools.py.

jetCollectionTools.GenJetInfo.jetSizeNr

Definition at line 55 of file jetCollectionTools.py.

jetCollectionTools.GenJetInfo.jetTagName

Definition at line 38 of file jetCollectionTools.py.

jetCollectionTools.GenJetInfo.jetUpper

Definition at line 37 of file jetCollectionTools.py.