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

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 37 of file jetCollectionTools.py.

37  def __init__(self, jet, inputCollection):
38  self.jet = jet
39  self.jetLower = jet.lower()
40  self.jetUpper = jet.upper()
41  self.jetTagName = self.jetUpper
42  self.inputCollection = inputCollection
43  algoKey = 'algo'
44  sizeKey = 'size'
45  recoKey = 'reco'
46  jetRegex = re.compile(
47  r'(?P<{algo}>({algoList}))(?P<{size}>[0-9]+)gen'.format(
48  algo = algoKey,
49  algoList = '|'.join(supportedJetAlgos.keys()),
50  size = sizeKey,
51  )
52  )
53  jetMatch = jetRegex.match(jet.lower())
54  if not jetMatch:
55  raise RuntimeError('Invalid jet collection: %s' % jet)
56  self.jetAlgo = jetMatch.group(algoKey)
57  self.jetSize = jetMatch.group(sizeKey)
58  self.jetSizeNr = float(self.jetSize) / 10.
59 
60 #============================================
61 #
62 # GenJetAdder
63 #
64 #============================================
def __init__(self, dataset, job_number, job_id, job_name, isDA, isMC, applyBOWS, applyEXTRACOND, extraconditions, runboundary, lumilist, intlumi, maxevents, gt, allFromGT, alignmentDB, alignmentTAG, apeDB, apeTAG, bowDB, bowTAG, vertextype, tracktype, refittertype, ttrhtype, applyruncontrol, ptcut, CMSSW_dir, the_dir)
static std::string join(char **cmd)
Definition: RemoteFile.cc:21

Member Data Documentation

◆ inputCollection

jetCollectionTools.GenJetInfo.inputCollection

Definition at line 42 of file jetCollectionTools.py.

◆ jet

jetCollectionTools.GenJetInfo.jet

Definition at line 38 of file jetCollectionTools.py.

◆ jetAlgo

jetCollectionTools.GenJetInfo.jetAlgo

Definition at line 56 of file jetCollectionTools.py.

◆ jetLower

jetCollectionTools.GenJetInfo.jetLower

Definition at line 39 of file jetCollectionTools.py.

◆ jetSize

jetCollectionTools.GenJetInfo.jetSize

Definition at line 57 of file jetCollectionTools.py.

◆ jetSizeNr

jetCollectionTools.GenJetInfo.jetSizeNr

Definition at line 58 of file jetCollectionTools.py.

◆ jetTagName

jetCollectionTools.GenJetInfo.jetTagName

Definition at line 41 of file jetCollectionTools.py.

◆ jetUpper

jetCollectionTools.GenJetInfo.jetUpper

Definition at line 40 of file jetCollectionTools.py.