CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Public Attributes
jetCollectionTools.GenJetInfo Class Reference
Inheritance diagram for jetCollectionTools.GenJetInfo:

Public Member Functions

def __init__
 

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

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.