CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions | Variables
confdb Namespace Reference

Classes

class  HLTProcess
 

Functions

def _fix_parameter
 
def addGlobalOptions
 untracked parameters with NO default in the code if 'hltHcalDataIntegrityMonitor' in %(dict)s: %(process)shltHcalDataIntegrityMonitor.RawDataLabel = cms.untracked.InputTag("rawDataCollector") if 'hltDt4DSegments' in %(dict)s: %(process)shltDt4DSegments.debug = cms.untracked.bool( False ) """ More...
 
def build_source
 
def buildOptions
 
def buildPathList
 
def dumppaths
 
def fixForFastSim
 
def fixForMC
 
def fixPrescales
 
def instrumentErrorEventType
 
def instrumentOpenMode
 
def instrumentTiming
 
def loadAdditionalConditions
 
def loadCff
 
def overrideGlobalTag
 
def overrideL1MenuXml
 
def overrideOutput
 
def overrideParameters
 
def overrideProcessName
 
def runL1Emulator
 
def runL1EmulatorGT
 
def splitter
 
def updateMessageLogger
 

Variables

 all_paths
 
 data
 
 source
 

Function Documentation

def confdb._fix_parameter (   self,
  args 
)
private
arguments:
    name:     parameter name (optional)
    type:     parameter type (look for tracked and untracked variants)
    value:    original value
    replace:  replacement value

Definition at line 330 of file confdb.py.

331  def _fix_parameter(self, **args):
332  """arguments:
333  name: parameter name (optional)
334  type: parameter type (look for tracked and untracked variants)
335  value: original value
336  replace: replacement value
337  """
338  if 'name' in args:
339  self.data = re.sub(
340  r'%(name)s = cms(?P<tracked>(?:\.untracked)?)\.%(type)s\( (?P<quote>["\']?)%(value)s(?P=quote)' % args,
341  r'%(name)s = cms\g<tracked>.%(type)s( \g<quote>%(replace)s\g<quote>' % args,
342  self.data)
343  else:
344  self.data = re.sub(
345  r'cms(?P<tracked>(?:\.untracked)?)\.%(type)s\( (?P<quote>["\']?)%(value)s(?P=quote)' % args,
346  r'cms\g<tracked>.%(type)s( \g<quote>%(replace)s\g<quote>' % args,
347  self.data)
348 
def _fix_parameter
Definition: confdb.py:330
def confdb.addGlobalOptions (   self)

untracked parameters with NO default in the code if 'hltHcalDataIntegrityMonitor' in %(dict)s: %(process)shltHcalDataIntegrityMonitor.RawDataLabel = cms.untracked.InputTag("rawDataCollector") if 'hltDt4DSegments' in %(dict)s: %(process)shltDt4DSegments.debug = cms.untracked.bool( False ) """

dummyfy hltGetConditions in cff's if 'hltGetConditions' in %(dict)s and 'HLTriggerFirstPath' in %(dict)s : %(process)shltDummyConditions = cms.EDFilter( "HLTBool", result = cms.bool( True ) ) %(process)sHLTriggerFirstPath.replace(%(process)shltGetConditions,%(process)shltDummyConditions) """

Definition at line 312 of file confdb.py.

313  def addGlobalOptions(self):
314  # add global options
315  self.data += """
316 # limit the number of events to be processed
317 %%(process)smaxEvents = cms.untracked.PSet(
318  input = cms.untracked.int32( %d )
319 )
320 """ % self.config.events
321 
322  if not self.config.profiling:
323  self.data += """
324 # enable the TrigReport and TimeReport
325 %(process)soptions = cms.untracked.PSet(
326  wantSummary = cms.untracked.bool( True )
327 )
328 """
329 
def addGlobalOptions
untracked parameters with NO default in the code if &#39;hltHcalDataIntegrityMonitor&#39; in %(dict)s: %(proc...
Definition: confdb.py:312
def confdb.build_source (   self)

Definition at line 1135 of file confdb.py.

1136  def build_source(self):
1137  if self.config.input:
1138  # if a dataset or a list of input files was given, use it
1139  if self.config.input[0:8] == 'dataset:':
1140  from dbsFileQuery import dbsFileQuery
1141  # extract the dataset name, and use DBS to fine the list of LFNs
1142  dataset = self.config.input[8:]
1143  query = 'find file where dataset=' + dataset
1144  files = dbsFileQuery(query)
1145  self.source = files
1146  else:
1147  # assume a list of input files
1148  self.source = self.config.input.split(',')
1149  elif self.config.online:
1150  # online we always run on data
1151  self.source = [ "file:/tmp/InputCollection.root" ]
1152  elif self.config.data:
1153  # offline we can run on data...
1154  self.source = [ "file:RelVal_Raw_%s_DATA.root" % self.config.type ]
1155  else:
1156  # ...or on mc
1157  self.source = [ "file:RelVal_Raw_%s_STARTUP.root" % self.config.type ]
1158 
1159  self.data += """
1160 %(process)ssource = cms.Source( "PoolSource",
1161  fileNames = cms.untracked.vstring(
1162 """
1163  if self.source:
1164  for line in self.source:
1165  self.data += " '%s',\n" % line
1166  self.data += """ ),
1167  secondaryFileNames = cms.untracked.vstring(
1168 """
1169  if self.parent:
1170  for line in self.parent:
1171  self.data += " '%s',\n" % line
1172  self.data += """ ),
1173  inputCommands = cms.untracked.vstring(
1174  'keep *'
1175  )
1176 )
1177 """
def build_source
Definition: confdb.py:1135
def confdb.buildOptions (   self)

Definition at line 882 of file confdb.py.

References python.multivaluedict.append().

883  def buildOptions(self):
884  # common configuration for all scenarios
885  self.options['services'].append( "-FUShmDQMOutputService" )
886  self.options['services'].append( "-DQM" )
887 
888  if self.config.fragment:
889  # extract a configuration file fragment
890  self.options['essources'].append( "-GlobalTag" )
891  self.options['essources'].append( "-HepPDTESSource" )
892  self.options['essources'].append( "-XMLIdealGeometryESSource" )
893  self.options['essources'].append( "-eegeom" )
894  self.options['essources'].append( "-es_hardcode" )
895  self.options['essources'].append( "-magfield" )
896 
897  self.options['esmodules'].append( "-AutoMagneticFieldESProducer" )
898  self.options['esmodules'].append( "-SlaveField0" )
899  self.options['esmodules'].append( "-SlaveField20" )
900  self.options['esmodules'].append( "-SlaveField30" )
901  self.options['esmodules'].append( "-SlaveField35" )
902  self.options['esmodules'].append( "-SlaveField38" )
903  self.options['esmodules'].append( "-SlaveField40" )
904  self.options['esmodules'].append( "-VBF0" )
905  self.options['esmodules'].append( "-VBF20" )
906  self.options['esmodules'].append( "-VBF30" )
907  self.options['esmodules'].append( "-VBF35" )
908  self.options['esmodules'].append( "-VBF38" )
909  self.options['esmodules'].append( "-VBF40" )
910  self.options['esmodules'].append( "-CSCGeometryESModule" )
911  self.options['esmodules'].append( "-CaloGeometryBuilder" )
912  self.options['esmodules'].append( "-CaloTowerHardcodeGeometryEP" )
913  self.options['esmodules'].append( "-CastorHardcodeGeometryEP" )
914  self.options['esmodules'].append( "-DTGeometryESModule" )
915  self.options['esmodules'].append( "-EcalBarrelGeometryEP" )
916  self.options['esmodules'].append( "-EcalElectronicsMappingBuilder" )
917  self.options['esmodules'].append( "-EcalEndcapGeometryEP" )
918  self.options['esmodules'].append( "-EcalLaserCorrectionService" )
919  self.options['esmodules'].append( "-EcalPreshowerGeometryEP" )
920  self.options['esmodules'].append( "-HcalHardcodeGeometryEP" )
921  self.options['esmodules'].append( "-HcalTopologyIdealEP" )
922  self.options['esmodules'].append( "-MuonNumberingInitialization" )
923  self.options['esmodules'].append( "-ParametrizedMagneticFieldProducer" )
924  self.options['esmodules'].append( "-RPCGeometryESModule" )
925  self.options['esmodules'].append( "-SiStripGainESProducer" )
926  self.options['esmodules'].append( "-SiStripRecHitMatcherESProducer" )
927  self.options['esmodules'].append( "-SiStripQualityESProducer" )
928  self.options['esmodules'].append( "-StripCPEfromTrackAngleESProducer" )
929  self.options['esmodules'].append( "-TrackerDigiGeometryESModule" )
930  self.options['esmodules'].append( "-TrackerGeometricDetESModule" )
931  self.options['esmodules'].append( "-VolumeBasedMagneticFieldESProducer" )
932  self.options['esmodules'].append( "-ZdcHardcodeGeometryEP" )
933  self.options['esmodules'].append( "-hcal_db_producer" )
934  self.options['esmodules'].append( "-L1GtTriggerMaskAlgoTrigTrivialProducer" )
935  self.options['esmodules'].append( "-L1GtTriggerMaskTechTrigTrivialProducer" )
936  self.options['esmodules'].append( "-hltESPEcalTrigTowerConstituentsMapBuilder" )
937  self.options['esmodules'].append( "-hltESPGlobalTrackingGeometryESProducer" )
938  self.options['esmodules'].append( "-hltESPMuonDetLayerGeometryESProducer" )
939  self.options['esmodules'].append( "-hltESPTrackerRecoGeometryESProducer" )
940  if not self.config.fastsim:
941  self.options['esmodules'].append( "-CaloTowerGeometryFromDBEP" )
942  self.options['esmodules'].append( "-CastorGeometryFromDBEP" )
943  self.options['esmodules'].append( "-EcalBarrelGeometryFromDBEP" )
944  self.options['esmodules'].append( "-EcalEndcapGeometryFromDBEP" )
945  self.options['esmodules'].append( "-EcalPreshowerGeometryFromDBEP" )
946  self.options['esmodules'].append( "-HcalGeometryFromDBEP" )
947  self.options['esmodules'].append( "-ZdcGeometryFromDBEP" )
948  self.options['esmodules'].append( "-XMLFromDBSource" )
949  self.options['esmodules'].append( "-sistripconn" )
950 
951  self.options['services'].append( "-MessageLogger" )
952  self.options['services'].append( "-DQMStore" )
953  self.options['services'].append( "-MicroStateService" )
954  self.options['services'].append( "-ModuleWebRegistry" )
955  self.options['services'].append( "-TimeProfilerService" )
956 
957  self.options['psets'].append( "-maxEvents" )
958  self.options['psets'].append( "-options" )
959 
960  if self.config.fragment or (self.config.prescale and (self.config.prescale.lower() == 'none')):
961  self.options['services'].append( "-PrescaleService" )
962 
963  if self.config.fragment or self.config.timing:
964  self.options['services'].append( "-FastTimerService" )
965 
966  if self.config.fastsim:
967  # remove components not supported or needed by fastsim
968  self.options['esmodules'].append( "-navigationSchoolESProducer" )
969  self.options['esmodules'].append( "-TransientTrackBuilderESProducer" )
970  self.options['esmodules'].append( "-SteppingHelixPropagatorAny" )
971  self.options['esmodules'].append( "-OppositeMaterialPropagator" )
972  self.options['esmodules'].append( "-MaterialPropagator" )
973  self.options['esmodules'].append( "-CaloTowerConstituentsMapBuilder" )
974  self.options['esmodules'].append( "-CaloTopologyBuilder" )
975 
976  self.options['modules'].append( "hltL3MuonIsolations" )
977  self.options['modules'].append( "hltPixelVertices" )
978  self.options['modules'].append( "-hltCkfL1SeededTrackCandidates" )
979  self.options['modules'].append( "-hltCtfL1SeededithMaterialTracks" )
980  self.options['modules'].append( "-hltCkf3HitL1SeededTrackCandidates" )
981  self.options['modules'].append( "-hltCtf3HitL1SeededWithMaterialTracks" )
982  self.options['modules'].append( "-hltCkf3HitActivityTrackCandidates" )
983  self.options['modules'].append( "-hltCtf3HitActivityWithMaterialTracks" )
984  self.options['modules'].append( "-hltActivityCkfTrackCandidatesForGSF" )
985  self.options['modules'].append( "-hltL1SeededCkfTrackCandidatesForGSF" )
986  self.options['modules'].append( "-hltMuCkfTrackCandidates" )
987  self.options['modules'].append( "-hltMuCtfTracks" )
988  self.options['modules'].append( "-hltTau3MuCkfTrackCandidates" )
989  self.options['modules'].append( "-hltTau3MuCtfWithMaterialTracks" )
990  self.options['modules'].append( "-hltMuTrackJpsiCkfTrackCandidates" )
991  self.options['modules'].append( "-hltMuTrackJpsiCtfTracks" )
992  self.options['modules'].append( "-hltMuTrackJpsiEffCkfTrackCandidates" )
993  self.options['modules'].append( "-hltMuTrackJpsiEffCtfTracks" )
994  self.options['modules'].append( "-hltJpsiTkPixelSeedFromL3Candidate" )
995  self.options['modules'].append( "-hltCkfTrackCandidatesJpsiTk" )
996  self.options['modules'].append( "-hltCtfWithMaterialTracksJpsiTk" )
997  self.options['modules'].append( "-hltMuTrackCkfTrackCandidatesOnia" )
998  self.options['modules'].append( "-hltMuTrackCtfTracksOnia" )
999 
1000  self.options['modules'].append( "-hltESRegionalEgammaRecHit" )
1001  self.options['modules'].append( "-hltEcalRegionalJetsFEDs" )
1002  self.options['modules'].append( "-hltEcalRegionalMuonsFEDs" )
1003  self.options['modules'].append( "-hltEcalRegionalEgammaFEDs" )
1004  self.options['modules'].append( "-hltFEDSelector" )
1005  self.options['modules'].append( "-hltL3TrajSeedOIHit" )
1006  self.options['modules'].append( "-hltL3TrajSeedIOHit" )
1007  self.options['modules'].append( "-hltL3TrackCandidateFromL2OIState" )
1008  self.options['modules'].append( "-hltL3TrackCandidateFromL2OIHit" )
1009  self.options['modules'].append( "-hltL3TrackCandidateFromL2IOHit" )
1010  self.options['modules'].append( "-hltL3TrackCandidateFromL2NoVtx" )
1011  self.options['modules'].append( "-hltHcalDigis" )
1012  self.options['modules'].append( "-hltHoreco" )
1013  self.options['modules'].append( "-hltHfreco" )
1014  self.options['modules'].append( "-hltHbhereco" )
1015  self.options['modules'].append( "-hltEcalRegionalRestFEDs" )
1016  self.options['modules'].append( "-hltEcalRegionalESRestFEDs" )
1017  self.options['modules'].append( "-hltEcalRawToRecHitFacility" )
1018  self.options['modules'].append( "-hltESRawToRecHitFacility" )
1019  self.options['modules'].append( "-hltEcalRegionalJetsRecHit" )
1020  self.options['modules'].append( "-hltEcalRegionalMuonsRecHit" )
1021  self.options['modules'].append( "-hltEcalRegionalEgammaRecHit" )
1022  self.options['modules'].append( "-hltEcalRecHitAll" )
1023  self.options['modules'].append( "-hltESRecHitAll" )
1024  # === hltPF
1025  self.options['modules'].append( "-hltPFJetCkfTrackCandidates" )
1026  self.options['modules'].append( "-hltPFJetCtfWithMaterialTracks" )
1027  self.options['modules'].append( "-hltPFlowTrackSelectionHighPurity" )
1028  # === hltFastJet
1029  self.options['modules'].append( "-hltDisplacedHT250L1FastJetRegionalPixelSeedGenerator" )
1030  self.options['modules'].append( "-hltDisplacedHT250L1FastJetRegionalCkfTrackCandidates" )
1031  self.options['modules'].append( "-hltDisplacedHT250L1FastJetRegionalCtfWithMaterialTracks" )
1032  self.options['modules'].append( "-hltDisplacedHT300L1FastJetRegionalPixelSeedGenerator" )
1033  self.options['modules'].append( "-hltDisplacedHT300L1FastJetRegionalCkfTrackCandidates" )
1034  self.options['modules'].append( "-hltDisplacedHT300L1FastJetRegionalCtfWithMaterialTracks" )
1035  self.options['modules'].append( "-hltBLifetimeRegionalPixelSeedGeneratorbbPhiL1FastJet" )
1036  self.options['modules'].append( "-hltBLifetimeRegionalCkfTrackCandidatesbbPhiL1FastJet" )
1037  self.options['modules'].append( "-hltBLifetimeRegionalCtfWithMaterialTracksbbPhiL1FastJet" )
1038  self.options['modules'].append( "-hltBLifetimeRegionalPixelSeedGeneratorHbbVBF" )
1039  self.options['modules'].append( "-hltBLifetimeRegionalCkfTrackCandidatesHbbVBF" )
1040  self.options['modules'].append( "-hltBLifetimeRegionalCtfWithMaterialTracksHbbVBF" )
1041  self.options['modules'].append( "-hltBLifetimeBTagIP3D1stTrkRegionalPixelSeedGeneratorJet20HbbL1FastJet" )
1042  self.options['modules'].append( "-hltBLifetimeBTagIP3D1stTrkRegionalCkfTrackCandidatesJet20HbbL1FastJet" )
1043  self.options['modules'].append( "-hltBLifetimeBTagIP3D1stTrkRegionalCtfWithMaterialTracksJet20HbbL1FastJet" )
1044  self.options['modules'].append( "-hltBLifetimeDiBTagIP3D1stTrkRegionalPixelSeedGeneratorJet20HbbL1FastJet" )
1045  self.options['modules'].append( "-hltBLifetimeDiBTagIP3D1stTrkRegionalCkfTrackCandidatesJet20HbbL1FastJet" )
1046  self.options['modules'].append( "-hltBLifetimeDiBTagIP3D1stTrkRegionalCtfWithMaterialTracksJet20HbbL1FastJet" )
1047  # === hltBLifetimeRegional
1048  self.options['modules'].append( "-hltBLifetimeRegionalPixelSeedGeneratorHbb" )
1049  self.options['modules'].append( "-hltBLifetimeRegionalCkfTrackCandidatesHbb" )
1050  self.options['modules'].append( "-hltBLifetimeRegionalCtfWithMaterialTracksHbb" )
1051  self.options['modules'].append( "-hltBLifetimeRegionalPixelSeedGeneratorbbPhi" )
1052  self.options['modules'].append( "-hltBLifetimeRegionalCkfTrackCandidatesbbPhi" )
1053  self.options['modules'].append( "-hltBLifetimeRegionalCtfWithMaterialTracksbbPhi" )
1054  self.options['modules'].append( "-hltBLifetimeBTagIP3D1stTrkRegionalPixelSeedGeneratorJet20Hbb" )
1055  self.options['modules'].append( "-hltBLifetimeBTagIP3D1stTrkRegionalCkfTrackCandidatesJet20Hbb" )
1056  self.options['modules'].append( "-hltBLifetimeBTagIP3D1stTrkRegionalCtfWithMaterialTracksJet20Hbb" )
1057  self.options['modules'].append( "-hltBLifetimeDiBTagIP3D1stTrkRegionalPixelSeedGeneratorJet20Hbb" )
1058  self.options['modules'].append( "-hltBLifetimeDiBTagIP3D1stTrkRegionalCkfTrackCandidatesJet20Hbb" )
1059  self.options['modules'].append( "-hltBLifetimeDiBTagIP3D1stTrkRegionalCtfWithMaterialTracksJet20Hbb" )
1060  self.options['modules'].append( "-hltBLifetimeFastRegionalPixelSeedGeneratorHbbVBF" )
1061  self.options['modules'].append( "-hltBLifetimeFastRegionalCkfTrackCandidatesHbbVBF" )
1062  self.options['modules'].append( "-hltBLifetimeFastRegionalCtfWithMaterialTracksHbbVBF" )
1063  self.options['modules'].append( "-hltBLifetimeRegionalPixelSeedGeneratorbbPhiL1FastJetFastPV" )
1064  self.options['modules'].append( "-hltBLifetimeRegionalCkfTrackCandidatesbbPhiL1FastJetFastPV" )
1065  self.options['modules'].append( "-hltBLifetimeRegionalCtfWithMaterialTracksbbPhiL1FastJetFastPV" )
1066  self.options['modules'].append( "-hltFastPixelBLifetimeRegionalPixelSeedGeneratorHbb" )
1067  self.options['modules'].append( "-hltFastPixelBLifetimeRegionalCkfTrackCandidatesHbb" )
1068  self.options['modules'].append( "-hltFastPixelBLifetimeRegionalCtfWithMaterialTracksHbb" )
1069 
1070  self.options['modules'].append( "-hltPixelTracksForMinBias" )
1071  self.options['modules'].append( "-hltPixelTracksForHighMult" )
1072  self.options['modules'].append( "-hltRegionalPixelTracks" )
1073  self.options['modules'].append( "-hltPixelTracksReg" )
1074  self.options['modules'].append( "-hltIter4Merged" )
1075  self.options['modules'].append( "-hltFastPixelHitsVertex" )
1076  self.options['modules'].append( "-hltFastPixelTracks")
1077  self.options['modules'].append( "-hltFastPixelTracksRecover")
1078 
1079  self.options['modules'].append( "-hltPixelLayerPairs" )
1080  self.options['modules'].append( "-hltPixelLayerTriplets" )
1081  self.options['modules'].append( "-hltPixelLayerTripletsReg" )
1082  self.options['modules'].append( "-hltPixelLayerTripletsHITHB" )
1083  self.options['modules'].append( "-hltPixelLayerTripletsHITHE" )
1084  self.options['modules'].append( "-hltMixedLayerPairs" )
1085 
1086  self.options['modules'].append( "-hltFastPrimaryVertexbbPhi")
1087  self.options['modules'].append( "-hltPixelTracksFastPVbbPhi")
1088  self.options['modules'].append( "-hltPixelTracksRecoverbbPhi" )
1089  self.options['modules'].append( "-hltFastPixelHitsVertexVHbb" )
1090  self.options['modules'].append( "-hltFastPixelTracksVHbb" )
1091  self.options['modules'].append( "-hltFastPixelTracksRecoverVHbb" )
1092 
1093  self.options['modules'].append( "-hltFastPrimaryVertex")
1094  self.options['modules'].append( "-hltFastPVPixelTracks")
1095  self.options['modules'].append( "-hltFastPVPixelTracksRecover" )
1096 
1097  self.options['modules'].append( "-hltIter4Tau3MuMerged" )
1098  self.options['modules'].append( "hltPixelMatchElectronsActivity" )
1099 
1100  self.options['modules'].append( "-hltMuonCSCDigis" )
1101  self.options['modules'].append( "-hltMuonDTDigis" )
1102  self.options['modules'].append( "-hltMuonRPCDigis" )
1103  self.options['modules'].append( "-hltGtDigis" )
1104  self.options['modules'].append( "-hltL1GtTrigReport" )
1105  self.options['modules'].append( "hltCsc2DRecHits" )
1106  self.options['modules'].append( "hltDt1DRecHits" )
1107  self.options['modules'].append( "hltRpcRecHits" )
1108  self.options['modules'].append( "-hltScalersRawToDigi" )
1109 
1110  self.options['sequences'].append( "-HLTL1SeededEgammaRegionalRecoTrackerSequence" )
1111  self.options['sequences'].append( "-HLTEcalActivityEgammaRegionalRecoTrackerSequence" )
1112  self.options['sequences'].append( "-HLTPixelMatchElectronActivityTrackingSequence" )
1113  self.options['sequences'].append( "-HLTDoLocalStripSequence" )
1114  self.options['sequences'].append( "-HLTDoLocalPixelSequence" )
1115  self.options['sequences'].append( "-HLTDoLocalPixelSequenceRegL2Tau" )
1116  self.options['sequences'].append( "-hltSiPixelDigis" )
1117  self.options['sequences'].append( "-hltSiPixelClusters" )
1118  self.options['sequences'].append( "-hltSiPixelRecHits" )
1119  self.options['sequences'].append( "-HLTRecopixelvertexingSequence" )
1120  self.options['sequences'].append( "-HLTEndSequence" )
1121  self.options['sequences'].append( "-HLTBeginSequence" )
1122  self.options['sequences'].append( "-HLTBeginSequenceNZS" )
1123  self.options['sequences'].append( "-HLTBeginSequenceBPTX" )
1124  self.options['sequences'].append( "-HLTBeginSequenceAntiBPTX" )
1125  self.options['sequences'].append( "-HLTHBHENoiseSequence" )
1126  self.options['sequences'].append( "-HLTIterativeTracking" )
1127  self.options['sequences'].append( "-HLTIterativeTrackingTau3Mu" )
1128  self.options['sequences'].append( "-HLTRegionalCKFTracksForL3Isolation" )
1129  self.options['sequences'].append( "-HLTHBHENoiseCleanerSequence" )
1130 
1131  # remove HLTAnalyzerEndpath from fastsim cff's
1132  if self.config.fragment:
1133  self.options['paths'].append( "-HLTAnalyzerEndpath" )
1134 
def buildOptions
Definition: confdb.py:882
def confdb.buildPathList (   self)

Definition at line 825 of file confdb.py.

826  def buildPathList(self):
827  self.all_paths = self.getPathList()
828 
829  if self.config.paths:
830  # no path list was requested, dump the full table, minus unsupported / unwanted paths
831  paths = self.config.paths.split(',')
832  else:
833  # dump only the requested paths, plus the eventual output endpaths
834  paths = []
835 
836  if self.config.fragment or self.config.output in ('none', 'full'):
837  # 'full' removes all outputs (same as 'none') and then adds a single "keep *" output (see the overrideOutput method)
838  if self.config.paths:
839  # paths are removed by default
840  pass
841  else:
842  # drop all output endpaths
843  paths.append( "-*Output" )
844  elif self.config.output == 'minimal':
845  # drop all output endpaths but HLTDQMResultsOutput
846  if self.config.paths:
847  paths.append( "HLTDQMResultsOutput" )
848  else:
849  paths.append( "-*Output" )
850  paths.append( "HLTDQMResultsOutput" )
851  else:
852  # keep / add back all output endpaths
853  if self.config.paths:
854  paths.append( "*Output" )
855  else:
856  pass # paths are kepy by default
857 
858  # drop paths unsupported by fastsim
859  if self.config.fastsim:
860  paths.extend( "-%s" % path for path in self.fastsimUnsupportedPaths )
861 
862  # drop unwanted paths for profiling (and timing studies)
863  if self.config.profiling:
864  paths.append( "-HLTriggerFirstPath" )
865  paths.append( "-HLTAnalyzerEndpath" )
866 
867  # this should never be in any dump (nor online menu)
868  paths.append( "-OfflineOutput" )
869 
870  # expand all wildcards
871  paths = self.expandWildcards(paths, self.all_paths)
872 
873  if self.config.paths:
874  # do an "additive" consolidation
875  self.options['paths'] = self.consolidatePositiveList(paths)
876  if not self.options['paths']:
877  raise RuntimeError('Error: option "--paths %s" does not select any valid paths' % self.config.paths)
878  else:
879  # do a "subtractive" consolidation
880  self.options['paths'] = self.consolidateNegativeList(paths)
881 
def buildPathList
Definition: confdb.py:825
def confdb.dumppaths (   paths)
static

Definition at line 819 of file confdb.py.

820  def dumppaths(paths):
821  sys.stderr.write('Path selection:\n')
822  for path in paths:
823  sys.stderr.write('\t%s\n' % path)
824  sys.stderr.write('\n\n')
def dumppaths
Definition: confdb.py:819
def confdb.fixForFastSim (   self)

Definition at line 360 of file confdb.py.

361  def fixForFastSim(self):
362  if self.config.fastsim:
363  # adapt the hle configuration (fragment) to run under fastsim
364  self.data = re.sub( r'import FWCore.ParameterSet.Config as cms', r'\g<0>\nfrom FastSimulation.HighLevelTrigger.HLTSetup_cff import *', self.data)
365 
366  # remove the definition of streams and datasets
367  self.data = re.compile( r'^streams.*\n(.*\n)*?^\)\s*\n', re.MULTILINE ).sub( '', self.data )
368  self.data = re.compile( r'^datasets.*\n(.*\n)*?^\)\s*\n', re.MULTILINE ).sub( '', self.data )
369 
370  # fix the definition of module
371  # FIXME: this should be updated to take into accout the --l1-emulator option
372  self._fix_parameter( type = 'InputTag', value = 'hltL1extraParticles', replace = 'l1extraParticles')
373  self._fix_parameter(name = 'GMTReadoutCollection', type = 'InputTag', value = 'hltGtDigis', replace = 'gmtDigis')
374  self._fix_parameter( type = 'InputTag', value = 'hltGtDigis', replace = 'gtDigis')
375  self._fix_parameter( type = 'InputTag', value = 'hltL1GtObjectMap', replace = 'gtDigis')
376  self._fix_parameter(name = 'initialSeeds', type = 'InputTag', value = 'noSeedsHere', replace = 'globalPixelSeeds:GlobalPixel')
377  self._fix_parameter(name = 'preFilteredSeeds', type = 'bool', value = 'True', replace = 'False')
378  self._fix_parameter( type = 'InputTag', value = 'hltOfflineBeamSpot', replace = 'offlineBeamSpot')
379  self._fix_parameter( type = 'InputTag', value = 'hltOnlineBeamSpot', replace = 'offlineBeamSpot')
380  self._fix_parameter( type = 'InputTag', value = 'hltMuonCSCDigis', replace = 'simMuonCSCDigis')
381  self._fix_parameter( type = 'InputTag', value = 'hltMuonDTDigis', replace = 'simMuonDTDigis')
382  self._fix_parameter( type = 'InputTag', value = 'hltMuonRPCDigis', replace = 'simMuonRPCDigis')
383  self._fix_parameter( type = 'InputTag', value = 'hltRegionalTracksForL3MuonIsolation', replace = 'hltPixelTracks')
384  self._fix_parameter(name = 'src', type = 'InputTag', value = 'hltHcalTowerNoiseCleaner', replace = 'hltTowerMakerForAll')
385  self._fix_parameter(name = 'src', type = 'InputTag', value = 'hltIter4Tau3MuMerged', replace = 'hltIter4Merged')
386 
387  # MeasurementTrackerEvent
388  self._fix_parameter( type = 'InputTag', value = 'hltSiStripClusters', replace = 'MeasurementTrackerEvent')
389 
390  # fix the definition of sequences and paths
391  self.data = re.sub( r'hltMuonCSCDigis', r'cms.SequencePlaceholder( "simMuonCSCDigis" )', self.data )
392  self.data = re.sub( r'hltMuonDTDigis', r'cms.SequencePlaceholder( "simMuonDTDigis" )', self.data )
393  self.data = re.sub( r'hltMuonRPCDigis', r'cms.SequencePlaceholder( "simMuonRPCDigis" )', self.data )
394  self.data = re.sub( r'HLTEndSequence', r'cms.SequencePlaceholder( "HLTEndSequence" )', self.data )
395  self.data = re.sub( r'hltGtDigis', r'HLTBeginSequence', self.data )
396 
def fixForFastSim
Definition: confdb.py:360
def confdb.fixForMC (   self)

Definition at line 349 of file confdb.py.

350  def fixForMC(self):
351  if not self.config.data:
352  # customise the HLT menu for running on MC
353  if not self.config.fragment:
354  self.data += """
355 # customise the HLT menu for running on MC
356 from HLTrigger.Configuration.customizeHLTforMC import customizeHLTforMC
357 process = customizeHLTforMC(process)
358 """
359 
def fixForMC
Definition: confdb.py:349
def confdb.fixPrescales (   self)

Definition at line 397 of file confdb.py.

398  def fixPrescales(self):
399  # update the PrescaleService to match the new list of paths
400  if self.options['paths']:
401  if self.options['paths'][0][0] == '-':
402  # drop requested paths
403  for minuspath in self.options['paths']:
404  path = minuspath[1:]
405  self.data = re.sub(r' cms.PSet\( pathName = cms.string\( "%s" \),\n prescales = cms.vuint32\( .* \)\n \),?\n' % path, '', self.data)
406  else:
407  # keep requested paths
408  for path in self.all_paths:
409  if path not in self.options['paths']:
410  self.data = re.sub(r' cms.PSet\( pathName = cms.string\( "%s" \),\n prescales = cms.vuint32\( .* \)\n \),?\n' % path, '', self.data)
411 
412  if self.config.prescale and (self.config.prescale.lower() != 'none'):
413  # TO DO: check that the requested prescale column is valid
414  self.data += """
415 # force the use of a specific HLT prescale column
416 if 'PrescaleService' in %(dict)s:
417  %(process)sPrescaleService.forceDefault = True
418  %(process)sPrescaleService.lvl1DefaultLabel = '%(prescale)s'
419 """
420 
def fixPrescales
Definition: confdb.py:397
def confdb.instrumentErrorEventType (   self)

Definition at line 435 of file confdb.py.

436  def instrumentErrorEventType(self):
437  if self.config.errortype:
438  # change all HLTTriggerTypeFilter EDFilters to accept only error events (SelectedTriggerType = 0)
439  self._fix_parameter(name = 'SelectedTriggerType', type ='int32', value = '1', replace = '0')
440  self._fix_parameter(name = 'SelectedTriggerType', type ='int32', value = '2', replace = '0')
441  self._fix_parameter(name = 'SelectedTriggerType', type ='int32', value = '3', replace = '0')
442 
def instrumentErrorEventType
Definition: confdb.py:435
def confdb.instrumentOpenMode (   self)

Definition at line 421 of file confdb.py.

References join().

422  def instrumentOpenMode(self):
423  if self.config.open:
424  # find all EDfilters
425  filters = [ match[1] for match in re.findall(r'(process\.)?\b(\w+) = cms.EDFilter', self.data) ]
426  re_sequence = re.compile( r'cms\.(Path|Sequence)\((.*)\)' )
427  # remove existing 'cms.ignore' and '~' modifiers
428  self.data = re_sequence.sub( lambda line: re.sub( r'cms\.ignore *\( *((process\.)?\b(\w+)) *\)', r'\1', line.group(0) ), self.data )
429  self.data = re_sequence.sub( lambda line: re.sub( r'~', '', line.group(0) ), self.data )
430  # wrap all EDfilters with "cms.ignore( ... )", 1000 at a time (python 2.6 complains for too-big regular expressions)
431  for some in splitter(filters, 1000):
432  re_filters = re.compile( r'\b((process\.)?(' + r'|'.join(some) + r'))\b' )
433  self.data = re_sequence.sub( lambda line: re_filters.sub( r'cms.ignore( \1 )', line.group(0) ), self.data )
434 
static std::string join(char **cmd)
Definition: RemoteFile.cc:18
def instrumentOpenMode
Definition: confdb.py:421
def confdb.instrumentTiming (   self)

Definition at line 710 of file confdb.py.

711  def instrumentTiming(self):
712  if self.config.profiling:
713  # instrument the menu for profiling: remove the HLTAnalyzerEndpath, add/override the HLTriggerFirstPath, with hltGetRaw and hltGetConditions
714  text = ''
715 
716  if not 'hltGetRaw' in self.data:
717  # add hltGetRaw
718  text += """
719 %(process)shltGetRaw = cms.EDAnalyzer( "HLTGetRaw",
720  RawDataCollection = cms.InputTag( "rawDataCollector" )
721 )
722 """
723 
724  if not 'hltGetConditions' in self.data:
725  # add hltGetConditions
726  text += """
727 %(process)shltGetConditions = cms.EDAnalyzer( 'EventSetupRecordDataGetter',
728  verbose = cms.untracked.bool( False ),
729  toGet = cms.VPSet( )
730 )
731 """
732 
733  if not 'hltBoolFalse' in self.data:
734  # add hltBoolFalse
735  text += """
736 %(process)shltBoolFalse = cms.EDFilter( "HLTBool",
737  result = cms.bool( False )
738 )
739 """
740 
741  # add the definition of HLTriggerFirstPath
742  # FIXME in a cff, should also update the HLTSchedule
743  text += """
744 %(process)sHLTriggerFirstPath = cms.Path( %(process)shltGetRaw + %(process)shltGetConditions + %(process)shltBoolFalse )
745 """
746  self.data = re.sub(r'.*cms\.(End)?Path.*', text + r'\g<0>', self.data, 1)
747 
748 
749  # instrument the menu with the Service, EDProducer and EndPath needed for timing studies
750  # FIXME in a cff, should also update the HLTSchedule
751  if self.config.timing:
752  self.data += """
753 # instrument the menu with the modules and EndPath needed for timing studies
754 """
755 
756  hasFST = False
757  if 'FastTimerService' in self.data:
758  hasFST = True
759 
760  self.data += '\n# configure the FastTimerService\n'
761  if not hasFST:
762  self.loadCff('HLTrigger.Timer.FastTimerService_cfi')
763  self.data += """%(process)sFastTimerService.useRealTimeClock = False
764 %(process)sFastTimerService.enableTimingPaths = True
765 %(process)sFastTimerService.enableTimingModules = True
766 %(process)sFastTimerService.enableTimingExclusive = True
767 %(process)sFastTimerService.enableTimingSummary = True
768 %(process)sFastTimerService.skipFirstPath = True
769 %(process)sFastTimerService.enableDQM = True
770 %(process)sFastTimerService.enableDQMbyPathActive = True
771 %(process)sFastTimerService.enableDQMbyPathTotal = True
772 %(process)sFastTimerService.enableDQMbyPathOverhead = True
773 %(process)sFastTimerService.enableDQMbyPathDetails = True
774 %(process)sFastTimerService.enableDQMbyPathCounters = True
775 %(process)sFastTimerService.enableDQMbyPathExclusive = True
776 %(process)sFastTimerService.enableDQMbyModule = True
777 %(process)sFastTimerService.enableDQMbyModuleType = True
778 %(process)sFastTimerService.enableDQMSummary = True
779 %(process)sFastTimerService.enableDQMbyLuminosity = True
780 %(process)sFastTimerService.enableDQMbyLumiSection = True
781 %(process)sFastTimerService.enableDQMbyProcesses = False
782 %(process)sFastTimerService.dqmTimeRange = 1000.
783 %(process)sFastTimerService.dqmTimeResolution = 5.
784 %(process)sFastTimerService.dqmPathTimeRange = 100.
785 %(process)sFastTimerService.dqmPathTimeResolution = 0.5
786 %(process)sFastTimerService.dqmModuleTimeRange = 40.
787 %(process)sFastTimerService.dqmModuleTimeResolution = 0.2
788 %(process)sFastTimerService.dqmLuminosityRange = 1e+34
789 %(process)sFastTimerService.dqmLuminosityResolution = 1e+31
790 %(process)sFastTimerService.dqmLumiSectionsRange = 2500
791 %(process)sFastTimerService.dqmPath = 'HLT/TimerService'
792 %(process)sFastTimerService.luminosityProduct = cms.untracked.InputTag( 'hltScalersRawToDigi' )
793 %(process)sFastTimerService.supportedProcesses = cms.untracked.vuint32( )
794 """
795 
796  self.data += """
797 # FastTimerServiceClient
798 %(process)sfastTimerServiceClient = cms.EDAnalyzer( "FastTimerServiceClient",
799  dqmPath = cms.untracked.string( "HLT/TimerService" )
800 )
801 
802 # DQM file saver
803 %(process)sdqmFileSaver = cms.EDAnalyzer( "DQMFileSaver",
804  convention = cms.untracked.string( "Offline" ),
805  workflow = cms.untracked.string( "/HLT/FastTimerService/All" ),
806  dirName = cms.untracked.string( "." ),
807  saveByRun = cms.untracked.int32(1),
808  saveByLumiSection = cms.untracked.int32(-1),
809  saveByEvent = cms.untracked.int32(-1),
810  saveByTime = cms.untracked.int32(-1),
811  saveByMinute = cms.untracked.int32(-1),
812  saveAtJobEnd = cms.untracked.bool(False),
813  forceRunNumber = cms.untracked.int32(-1),
814 )
815 
816 %(process)sTimingOutput = cms.EndPath( %(process)sfastTimerServiceClient + %(process)sdqmFileSaver )
817 """
def instrumentTiming
Definition: confdb.py:710
def confdb.loadAdditionalConditions (   self,
  comment,
  conditions 
)

Definition at line 676 of file confdb.py.

677  def loadAdditionalConditions(self, comment, *conditions):
678  # load additional conditions
679  self.data += """
680 # %s
681 if 'GlobalTag' in %%(dict)s:
682 """ % comment
683  for condition in conditions:
684  self.data += """ %%(process)sGlobalTag.toGet.append(
685  cms.PSet(
686  record = cms.string( '%(record)s' ),
687  tag = cms.string( '%(tag)s' ),
688  label = cms.untracked.string( '%(label)s' ),
689  connect = cms.untracked.string( '%(connect)s' )
690  )
691  )
692 """ % condition
693 
def loadAdditionalConditions
Definition: confdb.py:676
def confdb.loadCff (   self,
  module 
)

Definition at line 694 of file confdb.py.

695  def loadCff(self, module):
696  # load a cfi or cff module
697  if self.config.fragment:
698  self.data += 'from %s import *\n' % module
699  else:
700  self.data += 'process.load( "%s" )\n' % module
701 
def loadCff
Definition: confdb.py:694
def confdb.overrideGlobalTag (   self)

Definition at line 443 of file confdb.py.

444  def overrideGlobalTag(self):
445  # overwrite GlobalTag
446  # the logic is:
447  # - always set the correct connection string and pfnPrefix
448  # - if a GlobalTag is specified on the command line:
449  # - override the global tag
450  # - if the GT is "auto:...", insert the code to read it from Configuration.AlCa.autoCond
451  # - if a GlobalTag is NOT specified on the command line:
452  # - when running on data, do nothing, and keep the global tag in the menu
453  # - when running on mc, take the GT from the configuration.type
454 
455  # override the GlobalTag connection string and pfnPrefix
456  text = """
457 # override the GlobalTag, connection string and pfnPrefix
458 if 'GlobalTag' in %(dict)s:
459 """
460 
461  # when running on MC, override the global tag even if not specified on the command line
462  if not self.config.data and not self.config.globaltag:
463  if self.config.type in globalTag:
464  self.config.globaltag = globalTag[self.config.type]
465  else:
466  self.config.globaltag = globalTag['GRun']
467 
468  # if requested, override the L1 menu from the GlobalTag (using the same connect as the GlobalTag itself)
469  if self.config.l1.override:
470  self.config.l1.record = 'L1GtTriggerMenuRcd'
471  self.config.l1.label = ''
472  self.config.l1.tag = self.config.l1.override
473  if not self.config.l1.connect:
474  self.config.l1.connect = '%(connect)s/CMS_COND_31X_L1T'
475  self.config.l1cond = '%(tag)s,%(record)s,%(connect)s' % self.config.l1.__dict__
476  else:
477  self.config.l1cond = None
478 
479  if self.config.globaltag or self.config.l1cond:
480  text += " from Configuration.AlCa.GlobalTag import GlobalTag as customiseGlobalTag\n"
481  text += " %(process)sGlobalTag = customiseGlobalTag(%(process)sGlobalTag"
482  if self.config.globaltag:
483  text += ", globaltag = %s" % repr(self.config.globaltag)
484  if self.config.l1cond:
485  text += ", conditions = %s" % repr(self.config.l1cond)
486  text += ")\n"
487 
488  text += """ %(process)sGlobalTag.connect = '%(connect)s/CMS_COND_31X_GLOBALTAG'
489  %(process)sGlobalTag.pfnPrefix = cms.untracked.string('%(connect)s/')
490  for pset in process.GlobalTag.toGet.value():
491  pset.connect = pset.connect.value().replace('frontier://FrontierProd/', '%(connect)s/')
492  # fix for multi-run processing
493  %(process)sGlobalTag.RefreshEachRun = cms.untracked.bool( False )
494  %(process)sGlobalTag.ReconnectEachRun = cms.untracked.bool( False )
495 """
496  self.data += text
def overrideGlobalTag
Definition: confdb.py:443
def confdb.overrideL1MenuXml (   self)

Definition at line 497 of file confdb.py.

498  def overrideL1MenuXml(self):
499  # if requested, override the L1 menu from the GlobalTag (Xml file)
500  if self.config.l1Xml.XmlFile:
501  text = """
502 # override the L1 menu from an Xml file
503 %%(process)sl1GtTriggerMenuXml = cms.ESProducer("L1GtTriggerMenuXmlProducer",
504  TriggerMenuLuminosity = cms.string('%(LumiDir)s'),
505  DefXmlFile = cms.string('%(XmlFile)s'),
506  VmeXmlFile = cms.string('')
507 )
508 %%(process)sL1GtTriggerMenuRcdSource = cms.ESSource("EmptyESSource",
509  recordName = cms.string('L1GtTriggerMenuRcd'),
510  iovIsRunNotTime = cms.bool(True),
511  firstValid = cms.vuint32(1)
512 )
513 %%(process)ses_prefer_l1GtParameters = cms.ESPrefer('L1GtTriggerMenuXmlProducer','l1GtTriggerMenuXml')
514 """
515  self.data += text % self.config.l1Xml.__dict__
def overrideL1MenuXml
Definition: confdb.py:497
def confdb.overrideOutput (   self)

Definition at line 595 of file confdb.py.

596  def overrideOutput(self):
597  # override the "online" ShmStreamConsumer output modules with "offline" PoolOutputModule's
598  self.data = re.sub(
599  r'\b(process\.)?hltOutput(\w+) *= *cms\.OutputModule\( *"ShmStreamConsumer" *,',
600  r'%(process)shltOutput\2 = cms.OutputModule( "PoolOutputModule",\n fileName = cms.untracked.string( "output\2.root" ),\n fastCloning = cms.untracked.bool( False ),\n dataset = cms.untracked.PSet(\n filterName = cms.untracked.string( "" ),\n dataTier = cms.untracked.string( "RAW" )\n ),',
601  self.data
602  )
603 
604  if not self.config.fragment and self.config.output == 'full':
605  # add a single "keep *" output
606  self.data += """
607 # add a single "keep *" output
608 %(process)shltOutputFULL = cms.OutputModule( "PoolOutputModule",
609  fileName = cms.untracked.string( "outputFULL.root" ),
610  fastCloning = cms.untracked.bool( False ),
611  dataset = cms.untracked.PSet(
612  dataTier = cms.untracked.string( 'RECO' ),
613  filterName = cms.untracked.string( '' )
614  ),
615  outputCommands = cms.untracked.vstring( 'keep *' )
616 )
617 %(process)sFULLOutput = cms.EndPath( %(process)shltOutputFULL )
618 """
619 
def overrideOutput
Definition: confdb.py:595
def confdb.overrideParameters (   self,
  module,
  parameters 
)

Definition at line 702 of file confdb.py.

703  def overrideParameters(self, module, parameters):
704  # override a module's parameter if the module is present in the configuration
705  self.data += "if '%s' in %%(dict)s:\n" % module
706  for (parameter, value) in parameters:
707  self.data += " %%(process)s%s.%s = %s\n" % (module, parameter, value)
708  self.data += "\n"
709 
def overrideParameters
Definition: confdb.py:702
def confdb.overrideProcessName (   self)

Definition at line 621 of file confdb.py.

622  def overrideProcessName(self):
623  if self.config.name is None:
624  return
625 
626  # override the process name
627  quote = '[\'\"]'
628  self.data = re.compile(r'^(process\s*=\s*cms\.Process\(\s*' + quote + r')\w+(' + quote + r'\s*\).*)$', re.MULTILINE).sub(r'\1%s\2' % self.config.name, self.data, 1)
629 
630  # the following was stolen and adapted from HLTrigger.Configuration.customL1THLT_Options
631  self.data += """
632 # adapt HLT modules to the correct process name
633 if 'hltTrigReport' in %%(dict)s:
634  %%(process)shltTrigReport.HLTriggerResults = cms.InputTag( 'TriggerResults', '', '%(name)s' )
635 
636 if 'hltPreExpressCosmicsOutputSmart' in %%(dict)s:
637  %%(process)shltPreExpressCosmicsOutputSmart.hltResults = cms.InputTag( 'TriggerResults', '', '%(name)s' )
638 
639 if 'hltPreExpressOutputSmart' in %%(dict)s:
640  %%(process)shltPreExpressOutputSmart.hltResults = cms.InputTag( 'TriggerResults', '', '%(name)s' )
641 
642 if 'hltPreDQMForHIOutputSmart' in %%(dict)s:
643  %%(process)shltPreDQMForHIOutputSmart.hltResults = cms.InputTag( 'TriggerResults', '', '%(name)s' )
644 
645 if 'hltPreDQMForPPOutputSmart' in %%(dict)s:
646  %%(process)shltPreDQMForPPOutputSmart.hltResults = cms.InputTag( 'TriggerResults', '', '%(name)s' )
647 
648 if 'hltPreHLTDQMResultsOutputSmart' in %%(dict)s:
649  %%(process)shltPreHLTDQMResultsOutputSmart.hltResults = cms.InputTag( 'TriggerResults', '', '%(name)s' )
650 
651 if 'hltPreHLTDQMOutputSmart' in %%(dict)s:
652  %%(process)shltPreHLTDQMOutputSmart.hltResults = cms.InputTag( 'TriggerResults', '', '%(name)s' )
653 
654 if 'hltPreHLTMONOutputSmart' in %%(dict)s:
655  %%(process)shltPreHLTMONOutputSmart.hltResults = cms.InputTag( 'TriggerResults', '', '%(name)s' )
656 
657 if 'hltDQMHLTScalers' in %%(dict)s:
658  %%(process)shltDQMHLTScalers.triggerResults = cms.InputTag( 'TriggerResults', '', '%(name)s' )
659  %%(process)shltDQMHLTScalers.processname = '%(name)s'
660 
661 if 'hltDQML1SeedLogicScalers' in %%(dict)s:
662  %%(process)shltDQML1SeedLogicScalers.processname = '%(name)s'
663 """ % self.config.__dict__
664 
def overrideProcessName
Definition: confdb.py:621
def confdb.runL1Emulator (   self)

Definition at line 547 of file confdb.py.

548  def runL1Emulator(self):
549  # if requested, run (part of) the L1 emulator
550  if self.config.emulator:
551  # FIXME this fragment used "process" explicitly
552  emulator = {
553  'RawToDigi': '',
554  'CustomL1T': '',
555  'CustomHLT': ''
556  }
557 
558  if self.config.data:
559  emulator['RawToDigi'] = 'RawToDigi_Data_cff'
560  else:
561  emulator['RawToDigi'] = 'RawToDigi_cff'
562 
563  if self.config.emulator == 'gt':
564  emulator['CustomL1T'] = 'customiseL1GtEmulatorFromRaw'
565  emulator['CustomHLT'] = 'switchToSimGtDigis'
566  elif self.config.emulator == 'gct,gt':
567  emulator['CustomL1T'] = 'customiseL1CaloAndGtEmulatorsFromRaw'
568  emulator['CustomHLT'] = 'switchToSimGctGtDigis'
569  elif self.config.emulator == 'gmt,gt':
570  # XXX currently unsupported
571  emulator['CustomL1T'] = 'customiseL1MuonAndGtEmulatorsFromRaw'
572  emulator['CustomHLT'] = 'switchToSimGmtGtDigis'
573  elif self.config.emulator in ('gmt,gct,gt', 'gct,gmt,gt', 'all'):
574  emulator['CustomL1T'] = 'customiseL1EmulatorFromRaw'
575  emulator['CustomHLT'] = 'switchToSimGmtGctGtDigis'
576  else:
577  # unsupported argument, default to running the whole emulator
578  emulator['CustomL1T'] = 'customiseL1EmulatorFromRaw'
579  emulator['CustomHLT'] = 'switchToSimGmtGctGtDigis'
580 
581  self.data += """
582 # customize the L1 emulator to run %(CustomL1T)s with HLT to %(CustomHLT)s
583 process.load( 'Configuration.StandardSequences.%(RawToDigi)s' )
584 process.load( 'Configuration.StandardSequences.SimL1Emulator_cff' )
585 import L1Trigger.Configuration.L1Trigger_custom
586 process = L1Trigger.Configuration.L1Trigger_custom.%(CustomL1T)s( process )
587 process = L1Trigger.Configuration.L1Trigger_custom.customiseResetPrescalesAndMasks( process )
588 
589 # customize the HLT to use the emulated results
590 import HLTrigger.Configuration.customizeHLTforL1Emulator
591 process = HLTrigger.Configuration.customizeHLTforL1Emulator.switchToL1Emulator( process )
592 process = HLTrigger.Configuration.customizeHLTforL1Emulator.%(CustomHLT)s( process )
593 """ % emulator
594 
def runL1Emulator
Definition: confdb.py:547
def confdb.runL1EmulatorGT (   self)

Definition at line 516 of file confdb.py.

517  def runL1EmulatorGT(self):
518  # if requested, run (part of) the L1 emulator, then repack the data into a new RAW collection, to be used by the HLT
519  if not self.config.emulator:
520  return
521 
522  if self.config.emulator != 'gt':
523  # only the GT emulator is currently supported
524  return
525 
526  # run the L1 GT emulator, then repack the data into a new RAW collection, to be used by the HLT
527  text = """
528 # run the L1 GT emulator, then repack the data into a new RAW collection, to be used by the HLT
529 """
530  if self.config.fragment:
531  # FIXME in a cff, should also update the HLTSchedule
532  text += "import Configuration.StandardSequences.SimL1EmulatorRepack_GT_cff\n"
533  else:
534  text += "process.load( 'Configuration.StandardSequences.SimL1EmulatorRepack_GT_cff' )\n"
535 
536  if not 'hltBoolFalse' in self.data:
537  # add hltBoolFalse
538  text += """
539 %(process)shltBoolFalse = cms.EDFilter( "HLTBool",
540  result = cms.bool( False )
541 )
542 """
543  text += "process.L1Emulator = cms.Path( process.SimL1Emulator + process.hltBoolFalse )\n\n"
544 
545  self.data = re.sub(r'.*cms\.(End)?Path.*', text + r'\g<0>', self.data, 1)
546 
def runL1EmulatorGT
Definition: confdb.py:516
def confdb.splitter (   iterator,
  n 
)

Definition at line 11 of file confdb.py.

References list().

Referenced by TotemT1Organization._FromUnitIDToData(), SplittingConfigurableHisto.fill(), HLTLogMonitorFilter.filter(), FWTriggerTableView.saveImageTo(), FWTableView.saveImageTo(), and SplittingConfigurableHisto.SplittingConfigurableHisto().

11 
12 def splitter(iterator, n):
13  i = iterator.__iter__()
14  while True:
15  l = list(islice(i, n))
16  if l:
17  yield l
18  else:
19  break
20 
def splitter
Definition: confdb.py:11
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
def confdb.updateMessageLogger (   self)

Definition at line 665 of file confdb.py.

666  def updateMessageLogger(self):
667  # request summary informations from the MessageLogger
668  self.data += """
669 if 'MessageLogger' in %(dict)s:
670  %(process)sMessageLogger.categories.append('TriggerSummaryProducerAOD')
671  %(process)sMessageLogger.categories.append('L1GtTrigReport')
672  %(process)sMessageLogger.categories.append('HLTrigReport')
673  %(process)sMessageLogger.categories.append('FastReport')
674 """
675 
def updateMessageLogger
Definition: confdb.py:665

Variable Documentation

confdb.all_paths

Definition at line 826 of file confdb.py.

confdb.data

Definition at line 338 of file confdb.py.

confdb.source

Definition at line 1144 of file confdb.py.