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 317 of file confdb.py.

318  def _fix_parameter(self, **args):
319  """arguments:
320  name: parameter name (optional)
321  type: parameter type (look for tracked and untracked variants)
322  value: original value
323  replace: replacement value
324  """
325  if 'name' in args:
326  self.data = re.sub(
327  r'%(name)s = cms(?P<tracked>(?:\.untracked)?)\.%(type)s\( (?P<quote>["\']?)%(value)s(?P=quote)' % args,
328  r'%(name)s = cms\g<tracked>.%(type)s( \g<quote>%(replace)s\g<quote>' % args,
329  self.data)
330  else:
331  self.data = re.sub(
332  r'cms(?P<tracked>(?:\.untracked)?)\.%(type)s\( (?P<quote>["\']?)%(value)s(?P=quote)' % args,
333  r'cms\g<tracked>.%(type)s( \g<quote>%(replace)s\g<quote>' % args,
334  self.data)
335 
def _fix_parameter
Definition: confdb.py:317
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 299 of file confdb.py.

300  def addGlobalOptions(self):
301  # add global options
302  self.data += """
303 # limit the number of events to be processed
304 %%(process)smaxEvents = cms.untracked.PSet(
305  input = cms.untracked.int32( %d )
306 )
307 """ % self.config.events
308 
309  if not self.config.profiling:
310  self.data += """
311 # enable the TrigReport and TimeReport
312 %(process)soptions = cms.untracked.PSet(
313  wantSummary = cms.untracked.bool( True )
314 )
315 """
316 
def addGlobalOptions
untracked parameters with NO default in the code if &#39;hltHcalDataIntegrityMonitor&#39; in %(dict)s: %(proc...
Definition: confdb.py:299
def confdb.build_source (   self)

Definition at line 1142 of file confdb.py.

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

Definition at line 869 of file confdb.py.

References python.multivaluedict.append().

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

Definition at line 812 of file confdb.py.

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

Definition at line 806 of file confdb.py.

807  def dumppaths(paths):
808  sys.stderr.write('Path selection:\n')
809  for path in paths:
810  sys.stderr.write('\t%s\n' % path)
811  sys.stderr.write('\n\n')
def dumppaths
Definition: confdb.py:806
def confdb.fixForFastSim (   self)

Definition at line 347 of file confdb.py.

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

Definition at line 336 of file confdb.py.

337  def fixForMC(self):
338  if not self.config.data:
339  # customise the HLT menu for running on MC
340  if not self.config.fragment:
341  self.data += """
342 # customise the HLT menu for running on MC
343 from HLTrigger.Configuration.customizeHLTforMC import customizeHLTforMC
344 process = customizeHLTforMC(process)
345 """
346 
def fixForMC
Definition: confdb.py:336
def confdb.fixPrescales (   self)

Definition at line 384 of file confdb.py.

385  def fixPrescales(self):
386  # update the PrescaleService to match the new list of paths
387  if self.options['paths']:
388  if self.options['paths'][0][0] == '-':
389  # drop requested paths
390  for minuspath in self.options['paths']:
391  path = minuspath[1:]
392  self.data = re.sub(r' cms.PSet\( pathName = cms.string\( "%s" \),\n prescales = cms.vuint32\( .* \)\n \),?\n' % path, '', self.data)
393  else:
394  # keep requested paths
395  for path in self.all_paths:
396  if path not in self.options['paths']:
397  self.data = re.sub(r' cms.PSet\( pathName = cms.string\( "%s" \),\n prescales = cms.vuint32\( .* \)\n \),?\n' % path, '', self.data)
398 
399  if self.config.prescale and (self.config.prescale.lower() != 'none'):
400  # TO DO: check that the requested prescale column is valid
401  self.data += """
402 # force the use of a specific HLT prescale column
403 if 'PrescaleService' in %(dict)s:
404  %(process)sPrescaleService.forceDefault = True
405  %(process)sPrescaleService.lvl1DefaultLabel = '%(prescale)s'
406 """
407 
def fixPrescales
Definition: confdb.py:384
def confdb.instrumentErrorEventType (   self)

Definition at line 422 of file confdb.py.

423  def instrumentErrorEventType(self):
424  if self.config.errortype:
425  # change all HLTTriggerTypeFilter EDFilters to accept only error events (SelectedTriggerType = 0)
426  self._fix_parameter(name = 'SelectedTriggerType', type ='int32', value = '1', replace = '0')
427  self._fix_parameter(name = 'SelectedTriggerType', type ='int32', value = '2', replace = '0')
428  self._fix_parameter(name = 'SelectedTriggerType', type ='int32', value = '3', replace = '0')
429 
def instrumentErrorEventType
Definition: confdb.py:422
def confdb.instrumentOpenMode (   self)

Definition at line 408 of file confdb.py.

References join().

409  def instrumentOpenMode(self):
410  if self.config.open:
411  # find all EDfilters
412  filters = [ match[1] for match in re.findall(r'(process\.)?\b(\w+) = cms.EDFilter', self.data) ]
413  re_sequence = re.compile( r'cms\.(Path|Sequence)\((.*)\)' )
414  # remove existing 'cms.ignore' and '~' modifiers
415  self.data = re_sequence.sub( lambda line: re.sub( r'cms\.ignore *\( *((process\.)?\b(\w+)) *\)', r'\1', line.group(0) ), self.data )
416  self.data = re_sequence.sub( lambda line: re.sub( r'~', '', line.group(0) ), self.data )
417  # wrap all EDfilters with "cms.ignore( ... )", 1000 at a time (python 2.6 complains for too-big regular expressions)
418  for some in splitter(filters, 1000):
419  re_filters = re.compile( r'\b((process\.)?(' + r'|'.join(some) + r'))\b' )
420  self.data = re_sequence.sub( lambda line: re_filters.sub( r'cms.ignore( \1 )', line.group(0) ), self.data )
421 
static std::string join(char **cmd)
Definition: RemoteFile.cc:18
def instrumentOpenMode
Definition: confdb.py:408
def confdb.instrumentTiming (   self)

Definition at line 697 of file confdb.py.

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

Definition at line 663 of file confdb.py.

664  def loadAdditionalConditions(self, comment, *conditions):
665  # load additional conditions
666  self.data += """
667 # %s
668 if 'GlobalTag' in %%(dict)s:
669 """ % comment
670  for condition in conditions:
671  self.data += """ %%(process)sGlobalTag.toGet.append(
672  cms.PSet(
673  record = cms.string( '%(record)s' ),
674  tag = cms.string( '%(tag)s' ),
675  label = cms.untracked.string( '%(label)s' ),
676  connect = cms.untracked.string( '%(connect)s' )
677  )
678  )
679 """ % condition
680 
def loadAdditionalConditions
Definition: confdb.py:663
def confdb.loadCff (   self,
  module 
)

Definition at line 681 of file confdb.py.

682  def loadCff(self, module):
683  # load a cfi or cff module
684  if self.config.fragment:
685  self.data += 'from %s import *\n' % module
686  else:
687  self.data += 'process.load( "%s" )\n' % module
688 
def loadCff
Definition: confdb.py:681
def confdb.overrideGlobalTag (   self)

Definition at line 430 of file confdb.py.

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

Definition at line 484 of file confdb.py.

485  def overrideL1MenuXml(self):
486  # if requested, override the L1 menu from the GlobalTag (Xml file)
487  if self.config.l1Xml.XmlFile:
488  text = """
489 # override the L1 menu from an Xml file
490 %%(process)sl1GtTriggerMenuXml = cms.ESProducer("L1GtTriggerMenuXmlProducer",
491  TriggerMenuLuminosity = cms.string('%(LumiDir)s'),
492  DefXmlFile = cms.string('%(XmlFile)s'),
493  VmeXmlFile = cms.string('')
494 )
495 %%(process)sL1GtTriggerMenuRcdSource = cms.ESSource("EmptyESSource",
496  recordName = cms.string('L1GtTriggerMenuRcd'),
497  iovIsRunNotTime = cms.bool(True),
498  firstValid = cms.vuint32(1)
499 )
500 %%(process)ses_prefer_l1GtParameters = cms.ESPrefer('L1GtTriggerMenuXmlProducer','l1GtTriggerMenuXml')
501 """
502  self.data += text % self.config.l1Xml.__dict__
def overrideL1MenuXml
Definition: confdb.py:484
def confdb.overrideOutput (   self)

Definition at line 582 of file confdb.py.

583  def overrideOutput(self):
584  # override the "online" ShmStreamConsumer output modules with "offline" PoolOutputModule's
585  self.data = re.sub(
586  r'\b(process\.)?hltOutput(\w+) *= *cms\.OutputModule\( *"ShmStreamConsumer" *,',
587  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 ),',
588  self.data
589  )
590 
591  if not self.config.fragment and self.config.output == 'full':
592  # add a single "keep *" output
593  self.data += """
594 # add a single "keep *" output
595 %(process)shltOutputFULL = cms.OutputModule( "PoolOutputModule",
596  fileName = cms.untracked.string( "outputFULL.root" ),
597  fastCloning = cms.untracked.bool( False ),
598  dataset = cms.untracked.PSet(
599  dataTier = cms.untracked.string( 'RECO' ),
600  filterName = cms.untracked.string( '' )
601  ),
602  outputCommands = cms.untracked.vstring( 'keep *' )
603 )
604 %(process)sFULLOutput = cms.EndPath( %(process)shltOutputFULL )
605 """
606 
def overrideOutput
Definition: confdb.py:582
def confdb.overrideParameters (   self,
  module,
  parameters 
)

Definition at line 689 of file confdb.py.

690  def overrideParameters(self, module, parameters):
691  # override a module's parameter if the module is present in the configuration
692  self.data += "if '%s' in %%(dict)s:\n" % module
693  for (parameter, value) in parameters:
694  self.data += " %%(process)s%s.%s = %s\n" % (module, parameter, value)
695  self.data += "\n"
696 
def overrideParameters
Definition: confdb.py:689
def confdb.overrideProcessName (   self)

Definition at line 608 of file confdb.py.

609  def overrideProcessName(self):
610  if self.config.name is None:
611  return
612 
613  # override the process name
614  quote = '[\'\"]'
615  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)
616 
617  # the following was stolen and adapted from HLTrigger.Configuration.customL1THLT_Options
618  self.data += """
619 # adapt HLT modules to the correct process name
620 if 'hltTrigReport' in %%(dict)s:
621  %%(process)shltTrigReport.HLTriggerResults = cms.InputTag( 'TriggerResults', '', '%(name)s' )
622 
623 if 'hltPreExpressCosmicsOutputSmart' in %%(dict)s:
624  %%(process)shltPreExpressCosmicsOutputSmart.hltResults = cms.InputTag( 'TriggerResults', '', '%(name)s' )
625 
626 if 'hltPreExpressOutputSmart' in %%(dict)s:
627  %%(process)shltPreExpressOutputSmart.hltResults = cms.InputTag( 'TriggerResults', '', '%(name)s' )
628 
629 if 'hltPreDQMForHIOutputSmart' in %%(dict)s:
630  %%(process)shltPreDQMForHIOutputSmart.hltResults = cms.InputTag( 'TriggerResults', '', '%(name)s' )
631 
632 if 'hltPreDQMForPPOutputSmart' in %%(dict)s:
633  %%(process)shltPreDQMForPPOutputSmart.hltResults = cms.InputTag( 'TriggerResults', '', '%(name)s' )
634 
635 if 'hltPreHLTDQMResultsOutputSmart' in %%(dict)s:
636  %%(process)shltPreHLTDQMResultsOutputSmart.hltResults = cms.InputTag( 'TriggerResults', '', '%(name)s' )
637 
638 if 'hltPreHLTDQMOutputSmart' in %%(dict)s:
639  %%(process)shltPreHLTDQMOutputSmart.hltResults = cms.InputTag( 'TriggerResults', '', '%(name)s' )
640 
641 if 'hltPreHLTMONOutputSmart' in %%(dict)s:
642  %%(process)shltPreHLTMONOutputSmart.hltResults = cms.InputTag( 'TriggerResults', '', '%(name)s' )
643 
644 if 'hltDQMHLTScalers' in %%(dict)s:
645  %%(process)shltDQMHLTScalers.triggerResults = cms.InputTag( 'TriggerResults', '', '%(name)s' )
646  %%(process)shltDQMHLTScalers.processname = '%(name)s'
647 
648 if 'hltDQML1SeedLogicScalers' in %%(dict)s:
649  %%(process)shltDQML1SeedLogicScalers.processname = '%(name)s'
650 """ % self.config.__dict__
651 
def overrideProcessName
Definition: confdb.py:608
def confdb.runL1Emulator (   self)

Definition at line 534 of file confdb.py.

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

Definition at line 503 of file confdb.py.

504  def runL1EmulatorGT(self):
505  # if requested, run (part of) the L1 emulator, then repack the data into a new RAW collection, to be used by the HLT
506  if not self.config.emulator:
507  return
508 
509  if self.config.emulator != 'gt':
510  # only the GT emulator is currently supported
511  return
512 
513  # run the L1 GT emulator, then repack the data into a new RAW collection, to be used by the HLT
514  text = """
515 # run the L1 GT emulator, then repack the data into a new RAW collection, to be used by the HLT
516 """
517  if self.config.fragment:
518  # FIXME in a cff, should also update the HLTSchedule
519  text += "import Configuration.StandardSequences.SimL1EmulatorRepack_GT_cff\n"
520  else:
521  text += "process.load( 'Configuration.StandardSequences.SimL1EmulatorRepack_GT_cff' )\n"
522 
523  if not 'hltBoolFalse' in self.data:
524  # add hltBoolFalse
525  text += """
526 %(process)shltBoolFalse = cms.EDFilter( "HLTBool",
527  result = cms.bool( False )
528 )
529 """
530  text += "process.L1Emulator = cms.Path( process.SimL1Emulator + process.hltBoolFalse )\n\n"
531 
532  self.data = re.sub(r'.*cms\.(End)?Path.*', text + r'\g<0>', self.data, 1)
533 
def runL1EmulatorGT
Definition: confdb.py:503
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 652 of file confdb.py.

653  def updateMessageLogger(self):
654  # request summary informations from the MessageLogger
655  self.data += """
656 if 'MessageLogger' in %(dict)s:
657  %(process)sMessageLogger.categories.append('TriggerSummaryProducerAOD')
658  %(process)sMessageLogger.categories.append('L1GtTrigReport')
659  %(process)sMessageLogger.categories.append('HLTrigReport')
660  %(process)sMessageLogger.categories.append('FastReport')
661 """
662 
def updateMessageLogger
Definition: confdb.py:652

Variable Documentation

confdb.all_paths

Definition at line 813 of file confdb.py.

confdb.data

Definition at line 325 of file confdb.py.

confdb.source

Definition at line 1151 of file confdb.py.