CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
config.MCComponent Class Reference
Inheritance diagram for config.MCComponent:
config.Component config.CFG

Public Member Functions

def __init__ (self, name, files, triggers=[], xSection=1, nGenEvents=None, effCorrFactor=None, kwargs)
 
def getWeight (self, intLumi=None)
 
- Public Member Functions inherited from config.Component
def __init__ (self, name, files, tree_name=None, triggers=None, kwargs)
 
- Public Member Functions inherited from config.CFG
def __init__ (self, kwargs)
 
def __str__ (self)
 
def clone (self, kwargs)
 

Public Attributes

 addWeight
 
 effCorrFactor
 
 intLumi
 
 isMC
 
 nGenEvents
 
 xSection
 
- Public Attributes inherited from config.Component
 dataset_entries
 
 isData
 
 isEmbed
 
 isMC
 

Detailed Description

Definition at line 223 of file config.py.

Constructor & Destructor Documentation

◆ __init__()

def config.MCComponent.__init__ (   self,
  name,
  files,
  triggers = [],
  xSection = 1,
  nGenEvents = None,
  effCorrFactor = None,
  kwargs 
)

Definition at line 226 of file config.py.

226  effCorrFactor=None, **kwargs ):
227  super( MCComponent, self).__init__( name = name,
228  files = files,
229  triggers = triggers, **kwargs )
230  self.xSection = xSection
231  self.nGenEvents = nGenEvents
232  self.effCorrFactor = effCorrFactor
233  self.isMC = True
234  self.intLumi = 1.
235  self.addWeight = 1.
236 
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)

Member Function Documentation

◆ getWeight()

def config.MCComponent.getWeight (   self,
  intLumi = None 
)

Definition at line 237 of file config.py.

References config.MCComponent.addWeight, config.MCComponent.effCorrFactor, config.DataComponent.intLumi, config.MCComponent.intLumi, config.MCComponent.nGenEvents, and config.MCComponent.xSection.

237  def getWeight( self, intLumi = None):
238  # if intLumi is None:
239  # intLumi = Weight.FBINV
240  #COLIN THIS WEIGHT STUFF IS REALLY BAD!!
241  # use the existing Weight class or not? guess so...
242  return Weight( genNEvents = self.nGenEvents,
243  xSection = self.xSection,
244  intLumi = self.intLumi,
245  genEff = 1/self.effCorrFactor,
246  addWeight = self.addWeight )
247 

Member Data Documentation

◆ addWeight

config.MCComponent.addWeight

◆ effCorrFactor

config.MCComponent.effCorrFactor

Definition at line 232 of file config.py.

Referenced by config.MCComponent.getWeight().

◆ intLumi

config.MCComponent.intLumi

◆ isMC

config.MCComponent.isMC

Definition at line 233 of file config.py.

◆ nGenEvents

config.MCComponent.nGenEvents

Definition at line 231 of file config.py.

Referenced by config.MCComponent.getWeight().

◆ xSection

config.MCComponent.xSection