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 31 of file jetCollectionTools.py.

Constructor & Destructor Documentation

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

Definition at line 35 of file jetCollectionTools.py.

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

Member Data Documentation

jetCollectionTools.GenJetInfo.inputCollection

Definition at line 40 of file jetCollectionTools.py.

jetCollectionTools.GenJetInfo.jet

Definition at line 36 of file jetCollectionTools.py.

jetCollectionTools.GenJetInfo.jetAlgo

Definition at line 54 of file jetCollectionTools.py.

jetCollectionTools.GenJetInfo.jetLower

Definition at line 37 of file jetCollectionTools.py.

jetCollectionTools.GenJetInfo.jetSize

Definition at line 55 of file jetCollectionTools.py.

jetCollectionTools.GenJetInfo.jetSizeNr

Definition at line 56 of file jetCollectionTools.py.

jetCollectionTools.GenJetInfo.jetTagName

Definition at line 39 of file jetCollectionTools.py.

jetCollectionTools.GenJetInfo.jetUpper

Definition at line 38 of file jetCollectionTools.py.