CMS 3D CMS Logo

testProducerWithPsetDescEmpty_cfi.py
Go to the documentation of this file.
1 
2 # The main purpose of this cfi is test that the validation will insert
3 # missing parameters that are required by the ParameterSetDescription.
4 
5 # It also tests many other things that cannot be tested in an
6 # autogenerated cfi file that are related to the ParameterSetDescription
7 # infrastructure.
8 
9 import FWCore.ParameterSet.Config as cms
10 
11 testProducerWithPsetDesc = cms.EDProducer('ProducerWithPSetDesc',
12  testingAutoGeneratedCfi = cms.untracked.bool(False),
13  p_int_opt_nd = cms.int32(11),
14  p_int_optuntracked_nd = cms.untracked.int32(12),
15  wildcardPset = cms.PSet(
16  a = cms.int32(1)
17  , b = cms.untracked.double(1.0)
18  ),
19  switchPset = cms.PSet(
20  iswitch = cms.int32(2),
21  ivalue = cms.string('102'),
22  addTeVRefits = cms.bool(False)
23  ),
24  xorPset = cms.PSet(
25  name = cms.uint32(11)
26  ),
27  orPset = cms.PSet(
28  x2 = cms.uint32(11),
29  y1 = cms.string('11'),
30  y2 = cms.uint32(11)
31  ),
32  andPset = cms.PSet(
33  x1 = cms.string('11'),
34  y2 = cms.uint32(11),
35  a2 = cms.uint32(11),
36  b3 = cms.uint32(11)
37  ),
38  ifExistsPset = cms.PSet(
39  x1 = cms.uint32(11),
40  y1 = cms.uint32(11),
41  z2 = cms.string('11')
42  ),
43  allowedLabelsPset = cms.PSet(
44  testAllowedLabels = cms.vstring('i1', 'i2', 'i3'),
45  i1 = cms.int32(1),
46  i2 = cms.int32(2),
47  i3 = cms.int32(3),
48  testAllowedLabelsUntracked = cms.untracked.vstring('u1', 'u2', 'u3'),
49  u1 = cms.untracked.uint32(1),
50  u3 = cms.untracked.uint32(3),
51  testOptAllowedLabels = cms.vstring('oi1', 'oi2', 'oi3'),
52  oi1 = cms.int32(1),
53  oi2 = cms.int32(2),
54  oi3 = cms.int32(3),
55  testOptAllowedLabelsUntracked = cms.untracked.vstring('ou1', 'ou2', 'ou3'),
56  ou1 = cms.untracked.uint32(1),
57  ou2 = cms.untracked.uint32(2)
58  )
59  #, bars = cms.VPSet(
60  # cms.PSet(
61  # ndouDrinks = cms.untracked.uint32(5)
62  # ),
63  # cms.PSet(
64  # )
65  #)
66 )