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

◆ __init__()

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 #============================================

Member Data Documentation

◆ inputCollection

jetCollectionTools.GenJetInfo.inputCollection

Definition at line 39 of file jetCollectionTools.py.

◆ jet

jetCollectionTools.GenJetInfo.jet

Definition at line 35 of file jetCollectionTools.py.

◆ jetAlgo

jetCollectionTools.GenJetInfo.jetAlgo

Definition at line 53 of file jetCollectionTools.py.

◆ jetLower

jetCollectionTools.GenJetInfo.jetLower

Definition at line 36 of file jetCollectionTools.py.

◆ jetSize

jetCollectionTools.GenJetInfo.jetSize

Definition at line 54 of file jetCollectionTools.py.

◆ jetSizeNr

jetCollectionTools.GenJetInfo.jetSizeNr

Definition at line 55 of file jetCollectionTools.py.

◆ jetTagName

jetCollectionTools.GenJetInfo.jetTagName

Definition at line 38 of file jetCollectionTools.py.

◆ jetUpper

jetCollectionTools.GenJetInfo.jetUpper

Definition at line 37 of file jetCollectionTools.py.

dqmMemoryStats.float
float
Definition: dqmMemoryStats.py:127
join
static std::string join(char **cmd)
Definition: RemoteFile.cc:17
format