CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
config_test.ConfigTestCase Class Reference
Inheritance diagram for config_test.ConfigTestCase:

Public Member Functions

def test_analyzer
 
def test_config
 
def test_MCComponent
 

Detailed Description

Definition at line 7 of file config_test.py.

Member Function Documentation

def config_test.ConfigTestCase.test_analyzer (   self)

Definition at line 9 of file config_test.py.

References dbtoconf.object.

9 
10  def test_analyzer(self):
11  class Ana1(object):
12  pass
13  ana1 = Analyzer(
14  Ana1,
15  toto = '1',
16  tata = 'a'
17  )
18  # checking that the analyzer name does not contain a slash,
19  # to make sure the output directory name does not contain a subdirectory
20  self.assertTrue( '/' not in ana1.name )
list object
Definition: dbtoconf.py:77
def config_test.ConfigTestCase.test_config (   self)

Definition at line 32 of file config_test.py.

References dbtoconf.object.

32 
33  def test_config(self):
34  class Ana1(object):
35  pass
36  ana1 = Analyzer(
37  Ana1,
38  toto = '1',
39  tata = 'a'
40  )
41  comp1 = Component(
42  'comp1',
43  files='*.root',
44  triggers='HLT_stuff'
45  )
46  from PhysicsTools.HeppyCore.framework.chain import Chain as Events
47  config = Config( components = [comp1],
48  sequence = [ana1],
49  services = [],
50  events_class = Events )
51 
52 
53 
list object
Definition: dbtoconf.py:77
Definition: Config.py:1
def config_test.ConfigTestCase.test_MCComponent (   self)

Definition at line 21 of file config_test.py.

21 
22  def test_MCComponent(self):
23  DYJets = MCComponent(
24  name = 'DYJets',
25  files ='blah_mc.root',
26  xSection = 3048.,
27  nGenEvents = 34915945,
28  triggers = ['HLT_MC'],
29  vertexWeight = 1.,
30  effCorrFactor = 1 )
31  self.assertTrue(True)