CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CreateSqliteForCondDB_cfg.py
Go to the documentation of this file.
2 
3 process = cms.Process( "CREATE" )
4 
5 Triggers = cms.VPSet(
6  cms.PSet(
7  listName = cms.string( 'TauTriggerForMuDataset' ),
8  hltPaths = cms.vstring('HLT_IsoMu24_eta2p1_v*'),
9  dataTypeToInclude = cms.vstring('RealData','RealMuonsData'),
10  ),
11  ## cms.PSet(
12  ## listName = cms.string( 'TauTriggerForSingleMuDataset' ),
13  ## hltPaths = cms.vstring('HLT_IsoMu24_eta2p1_v*'),
14  ## dataTypeToInclude = cms.vstring('RealData','RealMuonsData'),
15  ## ),
16  cms.PSet(
17  listName = cms.string( 'TauTriggerForJetDataset' ),
18  hltPaths = cms.vstring('HLT_Jet30_L1FastJet_v*'),
19  dataTypeToInclude = cms.vstring('RealData'),
20  ),
21  cms.PSet(
22  listName = cms.string( 'TauTriggerForMultiJetDataset' ),
23  hltPaths = cms.vstring('HLT_Jet30_L1FastJet_v*'),
24  dataTypeToInclude = cms.vstring('RealData'),
25  ),
26  cms.PSet(
27  listName = cms.string( 'TauTriggerForDoubleElectronDataset' ),
28  hltPaths = cms.vstring('HLT_Ele20_CaloIdVT_CaloIsoVT_TrkIdT_TrkIsoVT_SC4_Mass50_v*'),
29  dataTypeToInclude = cms.vstring('RealElectronsData'),
30  ),
31  cms.PSet(
32  listName = cms.string( 'TauTriggerForTauPlusXDataset' ),
33  hltPaths = cms.vstring('HLT_Ele20_CaloIdVT_CaloIsoRhoT_TrkIdT_TrkIsoT_LooseIsoPFTau20_v*'),
34  dataTypeToInclude = cms.vstring('RealElectronsData'),
35  ),
36  )
37 
38 usedQCDTriggers = []
39 usedMuTriggers = []
40 usedEleTriggers = []
41 for trigger in Triggers:
42  if 'RealData' in trigger.dataTypeToInclude.value():
43  usedQCDTriggers.extend(trigger.hltPaths.value())
44  if 'RealMuonsData' in trigger.dataTypeToInclude.value():
45  usedMuTriggers.extend(trigger.hltPaths.value())
46  if 'RealElectronsData' in trigger.dataTypeToInclude.value():
47  usedEleTriggers.extend(trigger.hltPaths.value())
48 
49 Triggers.append(
50  cms.PSet(
51  listName = cms.string( 'TauTriggerForALLQCDDataset' ),
52  hltPaths = cms.vstring(list(set(usedQCDTriggers))),
53  )
54  )
55 
56 Triggers.append(
57  cms.PSet(
58  listName = cms.string( 'TauTriggerForALLMuDataset' ),
59  hltPaths = cms.vstring(list(set(usedMuTriggers))),
60  )
61  )
62 
63 Triggers.append(
64  cms.PSet(
65  listName = cms.string( 'TauTriggerForALLEleDataset' ),
66  hltPaths = cms.vstring(list(set(usedEleTriggers))),
67  )
68  )
69 
70 process.load( "FWCore.MessageLogger.MessageLogger_cfi" )
71 process.MessageLogger.cerr = cms.untracked.PSet(
72  placeholder = cms.untracked.bool( True )
73 )
74 process.MessageLogger.cout = cms.untracked.PSet(
75  INFO = cms.untracked.PSet(
76  reportEvery = cms.untracked.int32( 1 )
77  )
78 )
79 
80 process.source = cms.Source( "EmptySource")
81 process.maxEvents = cms.untracked.PSet(
82  input = cms.untracked.int32( 1 )
83 )
84 
85 process.AlCaRecoTriggerBitsRcdCreate = cms.EDAnalyzer(
86  "AlCaRecoTriggerBitsRcdUpdate",
87  firstRunIOV = cms.uint32( 1 ),
88  lastRunIOV = cms.int32( -1 ),
89  startEmpty = cms.bool( True ),
90  listNamesRemove = cms.vstring(),
91  # parameter sets to define lists of logical expressions
92  triggerListsAdd = Triggers,
93 )
94 
96 process.PoolDBOutputService = cms.Service(
97  "PoolDBOutputService",
98  CondCore.DBCommon.CondDBSetup_cfi.CondDBSetup,
99  timetype = cms.untracked.string( 'runnumber' ),
100  connect = cms.string( 'sqlite_file:GenericTriggerEventFlag_AlCaRecoTriggerBits.db' ),
101  toPut = cms.VPSet(
102  cms.PSet(
103  record = cms.string( 'AlCaRecoTriggerBitsRcd' ),
104  tag = cms.string( 'PFTauDQMTrigger_v0' ),
105  label = cms.untracked.string("PFTauDQMTrigger")
106  ),
107  ),
108  )
109 
110 process.p = cms.Path(
111  process.AlCaRecoTriggerBitsRcdCreate
112 )
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger list("!*","!HLTx*"if it matches 2 triggers or more) will accept the event if all the matching triggers are FAIL.It will reject the event if any of the triggers are PASS or EXCEPTION(this matches the behavior of"!*"before the partial wildcard feature was incorporated).Triggers which are in the READY state are completely ignored.(READY should never be returned since the trigger paths have been run