CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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__
 
def getWeight
 
- Public Member Functions inherited from config.Component
def __init__
 
- Public Member Functions inherited from config.CFG
def __init__
 
def __str__
 

Public Attributes

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

Detailed Description

Definition at line 174 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 177 of file config.py.

178  effCorrFactor=None, **kwargs ):
179  super( MCComponent, self).__init__( name = name,
180  files = files,
181  triggers = triggers, **kwargs )
182  self.xSection = xSection
183  self.nGenEvents = nGenEvents
184  self.effCorrFactor = effCorrFactor
185  self.isMC = True
186  self.intLumi = 1.
187  self.addWeight = 1.

Member Function Documentation

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

Definition at line 188 of file config.py.

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

189  def getWeight( self, intLumi = None):
190  # if intLumi is None:
191  # intLumi = Weight.FBINV
192  #COLIN THIS WEIGHT STUFF IS REALLY BAD!!
193  # use the existing Weight class or not? guess so...
194  return Weight( genNEvents = self.nGenEvents,
195  xSection = self.xSection,
196  intLumi = self.intLumi,
197  genEff = 1/self.effCorrFactor,
198  addWeight = self.addWeight )

Member Data Documentation

config.MCComponent.addWeight

Definition at line 186 of file config.py.

Referenced by weight.Weight.__str__(), weight.Weight.GetWeight(), and config.MCComponent.getWeight().

config.MCComponent.effCorrFactor

Definition at line 183 of file config.py.

Referenced by config.MCComponent.getWeight().

config.MCComponent.intLumi

Definition at line 185 of file config.py.

Referenced by weight.Weight.__str__(), weight.Weight.GetWeight(), and config.MCComponent.getWeight().

config.MCComponent.isMC

Definition at line 184 of file config.py.

config.MCComponent.nGenEvents

Definition at line 182 of file config.py.

Referenced by config.MCComponent.getWeight().

config.MCComponent.xSection

Definition at line 181 of file config.py.

Referenced by weight.Weight.__str__(), weight.Weight.GetWeight(), and config.MCComponent.getWeight().