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 221 of file config.py.

Constructor & Destructor Documentation

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

Definition at line 224 of file config.py.

224  effCorrFactor=None, **kwargs ):
225  super( MCComponent, self).__init__( name = name,
226  files = files,
227  triggers = triggers, **kwargs )
228  self.xSection = xSection
229  self.nGenEvents = nGenEvents
230  self.effCorrFactor = effCorrFactor
231  self.isMC = True
232  self.intLumi = 1.
233  self.addWeight = 1.
234 
def __init__(self, name, files, triggers=[], xSection=1, nGenEvents=None, effCorrFactor=None, kwargs)
Definition: config.py:224

Member Function Documentation

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

Definition at line 235 of file config.py.

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

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

Member Data Documentation

config.MCComponent.addWeight
config.MCComponent.effCorrFactor

Definition at line 230 of file config.py.

Referenced by config.MCComponent.getWeight().

config.MCComponent.intLumi
config.MCComponent.isMC

Definition at line 231 of file config.py.

config.MCComponent.nGenEvents

Definition at line 229 of file config.py.

Referenced by config.MCComponent.getWeight().

config.MCComponent.xSection