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

497  def _fix_parameter(self, **args):
498  """arguments:
499  name: parameter name (optional)
500  type: parameter type (look for tracked and untracked variants)
501  value: original value
502  replace: replacement value
503  """
504  if 'name' in args:
505  self.data = re.sub(
506  r'%(name)s = cms(?P<tracked>(?:\.untracked)?)\.%(type)s\( (?P<quote>["\']?)%(value)s(?P=quote)' % args,
507  r'%(name)s = cms\g<tracked>.%(type)s( \g<quote>%(replace)s\g<quote>' % args,
508  self.data)
509  else:
510  self.data = re.sub(
511  r'cms(?P<tracked>(?:\.untracked)?)\.%(type)s\( (?P<quote>["\']?)%(value)s(?P=quote)' % args,
512  r'cms\g<tracked>.%(type)s( \g<quote>%(replace)s\g<quote>' % args,
513  self.data)
514 
def _fix_parameter
Definition: confdb.py:496
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 478 of file confdb.py.

479  def addGlobalOptions(self):
480  # add global options
481  self.data += """
482 # limit the number of events to be processed
483 %%(process)smaxEvents = cms.untracked.PSet(
484  input = cms.untracked.int32( %d )
485 )
486 """ % self.config.events
487 
488  if not self.config.profiling:
489  self.data += """
490 # enable the TrigReport and TimeReport
491 %(process)soptions = cms.untracked.PSet(
492  wantSummary = cms.untracked.bool( True )
493 )
494 """
495 
def addGlobalOptions
untracked parameters with NO default in the code if &#39;hltHcalDataIntegrityMonitor&#39; in %(dict)s: %(proc...
Definition: confdb.py:478
def confdb.build_source (   self)

Definition at line 1325 of file confdb.py.

1326  def build_source(self):
1327  if self.config.input:
1328  # if a dataset or a list of input files was given, use it
1329  if self.config.input[0:8] == 'dataset:':
1330  from dbsFileQuery import dbsFileQuery
1331  # extract the dataset name, and use DBS to fine the list of LFNs
1332  dataset = self.config.input[8:]
1333  query = 'find file where dataset=' + dataset
1334  files = dbsFileQuery(query)
1335  self.source = files
1336  else:
1337  # assume a list of input files
1338  self.source = self.config.input.split(',')
1339  elif self.config.online:
1340  # online we always run on data
1341  self.source = [ "file:/tmp/InputCollection.root" ]
1342  elif self.config.data:
1343  # offline we can run on data...
1344  self.source = [ "file:RelVal_Raw_%s_DATA.root" % self.config.type ]
1345  else:
1346  # ...or on mc
1347  self.source = [ "file:RelVal_Raw_%s_STARTUP.root" % self.config.type ]
1348 
1349  self.data += """
1350 %(process)ssource = cms.Source( "PoolSource",
1351  fileNames = cms.untracked.vstring(
1352 """
1353  if self.source:
1354  for line in self.source:
1355  self.data += " '%s',\n" % line
1356  self.data += """ ),
1357  secondaryFileNames = cms.untracked.vstring(
1358 """
1359  if self.parent:
1360  for line in self.parent:
1361  self.data += " '%s',\n" % line
1362  self.data += """ ),
1363  inputCommands = cms.untracked.vstring(
1364  'keep *'
1365  )
1366 )
1367 """
def build_source
Definition: confdb.py:1325
def confdb.buildOptions (   self)

Definition at line 1041 of file confdb.py.

References python.multivaluedict.append().

1042  def buildOptions(self):
1043  # common configuration for all scenarios
1044  self.options['services'].append( "-FUShmDQMOutputService" )
1045 
1046  if self.config.fragment:
1047  # extract a configuration file fragment
1048  self.options['essources'].append( "-GlobalTag" )
1049  self.options['essources'].append( "-HepPDTESSource" )
1050  self.options['essources'].append( "-XMLIdealGeometryESSource" )
1051  self.options['essources'].append( "-eegeom" )
1052  self.options['essources'].append( "-es_hardcode" )
1053  self.options['essources'].append( "-magfield" )
1054 
1055  self.options['esmodules'].append( "-AutoMagneticFieldESProducer" )
1056  self.options['esmodules'].append( "-SlaveField0" )
1057  self.options['esmodules'].append( "-SlaveField20" )
1058  self.options['esmodules'].append( "-SlaveField30" )
1059  self.options['esmodules'].append( "-SlaveField35" )
1060  self.options['esmodules'].append( "-SlaveField38" )
1061  self.options['esmodules'].append( "-SlaveField40" )
1062  self.options['esmodules'].append( "-VBF0" )
1063  self.options['esmodules'].append( "-VBF20" )
1064  self.options['esmodules'].append( "-VBF30" )
1065  self.options['esmodules'].append( "-VBF35" )
1066  self.options['esmodules'].append( "-VBF38" )
1067  self.options['esmodules'].append( "-VBF40" )
1068  self.options['esmodules'].append( "-CSCGeometryESModule" )
1069  self.options['esmodules'].append( "-CaloGeometryBuilder" )
1070  self.options['esmodules'].append( "-CaloTowerHardcodeGeometryEP" )
1071  self.options['esmodules'].append( "-CastorHardcodeGeometryEP" )
1072  self.options['esmodules'].append( "-DTGeometryESModule" )
1073  self.options['esmodules'].append( "-EcalBarrelGeometryEP" )
1074  self.options['esmodules'].append( "-EcalElectronicsMappingBuilder" )
1075  self.options['esmodules'].append( "-EcalEndcapGeometryEP" )
1076  self.options['esmodules'].append( "-EcalLaserCorrectionService" )
1077  self.options['esmodules'].append( "-EcalPreshowerGeometryEP" )
1078  self.options['esmodules'].append( "-HcalHardcodeGeometryEP" )
1079  self.options['esmodules'].append( "-HcalTopologyIdealEP" )
1080  self.options['esmodules'].append( "-MuonNumberingInitialization" )
1081  self.options['esmodules'].append( "-ParametrizedMagneticFieldProducer" )
1082  self.options['esmodules'].append( "-RPCGeometryESModule" )
1083  self.options['esmodules'].append( "-SiStripGainESProducer" )
1084  self.options['esmodules'].append( "-SiStripRecHitMatcherESProducer" )
1085  self.options['esmodules'].append( "-SiStripQualityESProducer" )
1086  self.options['esmodules'].append( "-StripCPEfromTrackAngleESProducer" )
1087  self.options['esmodules'].append( "-TrackerDigiGeometryESModule" )
1088  self.options['esmodules'].append( "-TrackerGeometricDetESModule" )
1089  self.options['esmodules'].append( "-VolumeBasedMagneticFieldESProducer" )
1090  self.options['esmodules'].append( "-ZdcHardcodeGeometryEP" )
1091  self.options['esmodules'].append( "-hcal_db_producer" )
1092  self.options['esmodules'].append( "-L1GtTriggerMaskAlgoTrigTrivialProducer" )
1093  self.options['esmodules'].append( "-L1GtTriggerMaskTechTrigTrivialProducer" )
1094  self.options['esmodules'].append( "-hltESPEcalTrigTowerConstituentsMapBuilder" )
1095  self.options['esmodules'].append( "-hltESPGlobalTrackingGeometryESProducer" )
1096  self.options['esmodules'].append( "-hltESPMuonDetLayerGeometryESProducer" )
1097  self.options['esmodules'].append( "-hltESPTrackerRecoGeometryESProducer" )
1098  if not self.config.fastsim:
1099  self.options['esmodules'].append( "-CaloTowerGeometryFromDBEP" )
1100  self.options['esmodules'].append( "-CastorGeometryFromDBEP" )
1101  self.options['esmodules'].append( "-EcalBarrelGeometryFromDBEP" )
1102  self.options['esmodules'].append( "-EcalEndcapGeometryFromDBEP" )
1103  self.options['esmodules'].append( "-EcalPreshowerGeometryFromDBEP" )
1104  self.options['esmodules'].append( "-HcalGeometryFromDBEP" )
1105  self.options['esmodules'].append( "-ZdcGeometryFromDBEP" )
1106  self.options['esmodules'].append( "-XMLFromDBSource" )
1107  self.options['esmodules'].append( "-sistripconn" )
1108 
1109  self.options['services'].append( "-PrescaleService" )
1110  self.options['services'].append( "-MessageLogger" )
1111  self.options['services'].append( "-DQM" )
1112  self.options['services'].append( "-DQMStore" )
1113  self.options['services'].append( "-MicroStateService" )
1114  self.options['services'].append( "-ModuleWebRegistry" )
1115  self.options['services'].append( "-TimeProfilerService" )
1116  self.options['services'].append( "-FastTimerService" )
1117 
1118  self.options['psets'].append( "-maxEvents" )
1119  self.options['psets'].append( "-options" )
1120 
1121  if self.config.fastsim:
1122  # remove components not supported or needed by fastsim
1123  self.options['esmodules'].append( "-navigationSchoolESProducer" )
1124  self.options['esmodules'].append( "-TransientTrackBuilderESProducer" )
1125  self.options['esmodules'].append( "-SteppingHelixPropagatorAny" )
1126  self.options['esmodules'].append( "-OppositeMaterialPropagator" )
1127  self.options['esmodules'].append( "-MaterialPropagator" )
1128  self.options['esmodules'].append( "-CaloTowerConstituentsMapBuilder" )
1129  self.options['esmodules'].append( "-CaloTopologyBuilder" )
1130 
1131  self.options['services'].append( "-UpdaterService" )
1132 
1133  self.options['modules'].append( "hltL3MuonIsolations" )
1134  self.options['modules'].append( "hltPixelVertices" )
1135  # 2011 start
1136  self.options['modules'].append( "-hltCkfL1IsoTrackCandidates" )
1137  self.options['modules'].append( "-hltCtfL1IsoWithMaterialTracks" )
1138  self.options['modules'].append( "-hltCkfL1NonIsoTrackCandidates" )
1139  self.options['modules'].append( "-hltCtfL1NonIsoWithMaterialTracks" )
1140  self.options['modules'].append( "-hltCkf3HitL1IsoTrackCandidates" )
1141  self.options['modules'].append( "-hltCtf3HitL1IsoWithMaterialTracks" )
1142  self.options['modules'].append( "-hltCkf3HitL1NonIsoTrackCandidates" )
1143  self.options['modules'].append( "-hltCtf3HitL1NonIsoWithMaterialTracks" )
1144  # 2011 stop
1145  self.options['modules'].append( "-hltCkfL1SeededTrackCandidates" )
1146  self.options['modules'].append( "-hltCtfL1SeededithMaterialTracks" )
1147  self.options['modules'].append( "-hltCkf3HitL1SeededTrackCandidates" )
1148  self.options['modules'].append( "-hltCtf3HitL1SeededWithMaterialTracks" )
1149  self.options['modules'].append( "-hltCkf3HitActivityTrackCandidates" )
1150  self.options['modules'].append( "-hltCtf3HitActivityWithMaterialTracks" )
1151  self.options['modules'].append( "-hltActivityCkfTrackCandidatesForGSF" )
1152  self.options['modules'].append( "-hltL1SeededCkfTrackCandidatesForGSF" )
1153  self.options['modules'].append( "-hltMuCkfTrackCandidates" )
1154  self.options['modules'].append( "-hltMuCtfTracks" )
1155  self.options['modules'].append( "-hltTau3MuCkfTrackCandidates" )
1156  self.options['modules'].append( "-hltTau3MuCtfWithMaterialTracks" )
1157  self.options['modules'].append( "-hltMuTrackJpsiCkfTrackCandidates" )
1158  self.options['modules'].append( "-hltMuTrackJpsiCtfTracks" )
1159  self.options['modules'].append( "-hltMuTrackJpsiEffCkfTrackCandidates" )
1160  self.options['modules'].append( "-hltMuTrackJpsiEffCtfTracks" )
1161  self.options['modules'].append( "-hltJpsiTkPixelSeedFromL3Candidate" )
1162  self.options['modules'].append( "-hltCkfTrackCandidatesJpsiTk" )
1163  self.options['modules'].append( "-hltCtfWithMaterialTracksJpsiTk" )
1164  self.options['modules'].append( "-hltMuTrackCkfTrackCandidatesOnia" )
1165  self.options['modules'].append( "-hltMuTrackCtfTracksOnia" )
1166 
1167  self.options['modules'].append( "-hltESRegionalEgammaRecHit" )
1168  self.options['modules'].append( "-hltEcalRegionalJetsFEDs" )
1169  self.options['modules'].append( "-hltEcalRegionalMuonsFEDs" )
1170  self.options['modules'].append( "-hltEcalRegionalEgammaFEDs" )
1171  self.options['modules'].append( "-hltFEDSelector" )
1172  self.options['modules'].append( "-hltL3TrajSeedOIHit" )
1173  self.options['modules'].append( "-hltL3TrajSeedIOHit" )
1174  self.options['modules'].append( "-hltL3TrackCandidateFromL2OIState" )
1175  self.options['modules'].append( "-hltL3TrackCandidateFromL2OIHit" )
1176  self.options['modules'].append( "-hltL3TrackCandidateFromL2IOHit" )
1177  self.options['modules'].append( "-hltL3TrackCandidateFromL2NoVtx" )
1178  self.options['modules'].append( "-hltHcalDigis" )
1179  self.options['modules'].append( "-hltHoreco" )
1180  self.options['modules'].append( "-hltHfreco" )
1181  self.options['modules'].append( "-hltHbhereco" )
1182  self.options['modules'].append( "-hltEcalRegionalRestFEDs" )
1183  self.options['modules'].append( "-hltEcalRegionalESRestFEDs" )
1184  self.options['modules'].append( "-hltEcalRawToRecHitFacility" )
1185  self.options['modules'].append( "-hltESRawToRecHitFacility" )
1186  self.options['modules'].append( "-hltEcalRegionalJetsRecHit" )
1187  self.options['modules'].append( "-hltEcalRegionalMuonsRecHit" )
1188  self.options['modules'].append( "-hltEcalRegionalEgammaRecHit" )
1189  self.options['modules'].append( "-hltEcalRecHitAll" )
1190  self.options['modules'].append( "-hltESRecHitAll" )
1191  # === hltPF
1192  self.options['modules'].append( "-hltPFJetCkfTrackCandidates" )
1193  self.options['modules'].append( "-hltPFJetCtfWithMaterialTracks" )
1194  self.options['modules'].append( "-hltPFlowTrackSelectionHighPurity" )
1195  # === hltFastJet
1196  self.options['modules'].append( "-hltDisplacedHT250L1FastJetRegionalPixelSeedGenerator" )
1197  self.options['modules'].append( "-hltDisplacedHT250L1FastJetRegionalCkfTrackCandidates" )
1198  self.options['modules'].append( "-hltDisplacedHT250L1FastJetRegionalCtfWithMaterialTracks" )
1199  self.options['modules'].append( "-hltDisplacedHT300L1FastJetRegionalPixelSeedGenerator" )
1200  self.options['modules'].append( "-hltDisplacedHT300L1FastJetRegionalCkfTrackCandidates" )
1201  self.options['modules'].append( "-hltDisplacedHT300L1FastJetRegionalCtfWithMaterialTracks" )
1202  self.options['modules'].append( "-hltBLifetimeRegionalPixelSeedGeneratorbbPhiL1FastJet" )
1203  self.options['modules'].append( "-hltBLifetimeRegionalCkfTrackCandidatesbbPhiL1FastJet" )
1204  self.options['modules'].append( "-hltBLifetimeRegionalCtfWithMaterialTracksbbPhiL1FastJet" )
1205  self.options['modules'].append( "-hltBLifetimeRegionalPixelSeedGeneratorHbbVBF" )
1206  self.options['modules'].append( "-hltBLifetimeRegionalCkfTrackCandidatesHbbVBF" )
1207  self.options['modules'].append( "-hltBLifetimeRegionalCtfWithMaterialTracksHbbVBF" )
1208  self.options['modules'].append( "-hltBLifetimeBTagIP3D1stTrkRegionalPixelSeedGeneratorJet20HbbL1FastJet" )
1209  self.options['modules'].append( "-hltBLifetimeBTagIP3D1stTrkRegionalCkfTrackCandidatesJet20HbbL1FastJet" )
1210  self.options['modules'].append( "-hltBLifetimeBTagIP3D1stTrkRegionalCtfWithMaterialTracksJet20HbbL1FastJet" )
1211  self.options['modules'].append( "-hltBLifetimeDiBTagIP3D1stTrkRegionalPixelSeedGeneratorJet20HbbL1FastJet" )
1212  self.options['modules'].append( "-hltBLifetimeDiBTagIP3D1stTrkRegionalCkfTrackCandidatesJet20HbbL1FastJet" )
1213  self.options['modules'].append( "-hltBLifetimeDiBTagIP3D1stTrkRegionalCtfWithMaterialTracksJet20HbbL1FastJet" )
1214 
1215  # === hltBLifetimeRegional
1216 
1217  # 2011 start
1218  self.options['modules'].append( "-hltBLifetimeRegionalPixelSeedGeneratorSingleTop" )
1219  self.options['modules'].append( "-hltBLifetimeRegionalCtfWithMaterialTracksSingleTop" )
1220  self.options['modules'].append( "-hltBLifetimeRegionalCkfTrackCandidatesSingleTop" )
1221  self.options['modules'].append( "-hltBLifetimeRegionalPixelSeedGeneratorEleJetSingleTop" )
1222  self.options['modules'].append( "-hltBLifetimeRegionalCkfTrackCandidatesEleJetSingleTop" )
1223  self.options['modules'].append( "-hltBLifetimeRegionalCtfWithMaterialTracksEleJetSingleTop" )
1224  self.options['modules'].append( "-hltBLifetimeRegionalPixelSeedGeneratorIsoEleJetSingleTop" )
1225  self.options['modules'].append( "-hltBLifetimeRegionalCkfTrackCandidatesIsoEleJetSingleTop" )
1226  self.options['modules'].append( "-hltBLifetimeRegionalCtfWithMaterialTracksIsoEleJetSingleTop" )
1227  self.options['modules'].append( "-hltBLifetimeRegionalPixelSeedGeneratorRA2b" )
1228  self.options['modules'].append( "-hltBLifetimeRegionalCkfTrackCandidatesRA2b" )
1229  self.options['modules'].append( "-hltBLifetimeRegionalCtfWithMaterialTracksRA2b" )
1230  self.options['modules'].append( "-hltBLifetimeRegionalPixelSeedGeneratorRAzr" )
1231  self.options['modules'].append( "-hltBLifetimeRegionalCkfTrackCandidatesRAzr" )
1232  self.options['modules'].append( "-hltBLifetimeRegionalCtfWithMaterialTracksRAzr" )
1233  self.options['modules'].append( "-hltBLifetimeRegionalPixel3DSeedGeneratorJet30Hbb" )
1234  self.options['modules'].append( "-hltBLifetimeRegional3DCkfTrackCandidatesJet30Hbb" )
1235  self.options['modules'].append( "-hltBLifetimeRegional3DCtfWithMaterialTracksJet30Hbb" )
1236  self.options['modules'].append( "-hltBLifetimeRegionalPixelSeedGeneratorGammaB" )
1237  self.options['modules'].append( "-hltBLifetimeRegionalCkfTrackCandidatesGammaB" )
1238  self.options['modules'].append( "-hltBLifetimeRegionalCtfWithMaterialTracksGammaB" )
1239  # 2011 stop
1240 
1241  self.options['modules'].append( "-hltBLifetimeRegionalPixelSeedGeneratorHbb" )
1242  self.options['modules'].append( "-hltBLifetimeRegionalCkfTrackCandidatesHbb" )
1243  self.options['modules'].append( "-hltBLifetimeRegionalCtfWithMaterialTracksHbb" )
1244  self.options['modules'].append( "-hltBLifetimeRegionalPixelSeedGeneratorbbPhi" )
1245  self.options['modules'].append( "-hltBLifetimeRegionalCkfTrackCandidatesbbPhi" )
1246  self.options['modules'].append( "-hltBLifetimeRegionalCtfWithMaterialTracksbbPhi" )
1247  self.options['modules'].append( "-hltBLifetimeBTagIP3D1stTrkRegionalPixelSeedGeneratorJet20Hbb" )
1248  self.options['modules'].append( "-hltBLifetimeBTagIP3D1stTrkRegionalCkfTrackCandidatesJet20Hbb" )
1249  self.options['modules'].append( "-hltBLifetimeBTagIP3D1stTrkRegionalCtfWithMaterialTracksJet20Hbb" )
1250  self.options['modules'].append( "-hltBLifetimeDiBTagIP3D1stTrkRegionalPixelSeedGeneratorJet20Hbb" )
1251  self.options['modules'].append( "-hltBLifetimeDiBTagIP3D1stTrkRegionalCkfTrackCandidatesJet20Hbb" )
1252  self.options['modules'].append( "-hltBLifetimeDiBTagIP3D1stTrkRegionalCtfWithMaterialTracksJet20Hbb" )
1253  self.options['modules'].append( "-hltBLifetimeFastRegionalPixelSeedGeneratorHbbVBF" )
1254  self.options['modules'].append( "-hltBLifetimeFastRegionalCkfTrackCandidatesHbbVBF" )
1255  self.options['modules'].append( "-hltBLifetimeFastRegionalCtfWithMaterialTracksHbbVBF" )
1256  self.options['modules'].append( "-hltBLifetimeRegionalPixelSeedGeneratorbbPhiL1FastJetFastPV" )
1257  self.options['modules'].append( "-hltBLifetimeRegionalCkfTrackCandidatesbbPhiL1FastJetFastPV" )
1258  self.options['modules'].append( "-hltBLifetimeRegionalCtfWithMaterialTracksbbPhiL1FastJetFastPV" )
1259  self.options['modules'].append( "-hltFastPixelBLifetimeRegionalPixelSeedGeneratorHbb" )
1260  self.options['modules'].append( "-hltFastPixelBLifetimeRegionalCkfTrackCandidatesHbb" )
1261  self.options['modules'].append( "-hltFastPixelBLifetimeRegionalCtfWithMaterialTracksHbb" )
1262 
1263  self.options['modules'].append( "-hltPixelTracksForMinBias" )
1264  self.options['modules'].append( "-hltPixelTracksForHighMult" )
1265  self.options['modules'].append( "-hltRegionalPixelTracks" )
1266  self.options['modules'].append( "-hltPixelTracksReg" )
1267  self.options['modules'].append( "-hltIter4Merged" )
1268  self.options['modules'].append( "-hltFastPixelHitsVertex" )
1269  self.options['modules'].append( "-hltFastPixelTracks")
1270  self.options['modules'].append( "-hltFastPixelTracksRecover")
1271 
1272  self.options['modules'].append( "-hltFastPrimaryVertexbbPhi")
1273  self.options['modules'].append( "-hltPixelTracksFastPVbbPhi")
1274  self.options['modules'].append( "-hltPixelTracksRecoverbbPhi" )
1275  self.options['modules'].append( "-hltFastPixelHitsVertexVHbb" )
1276  self.options['modules'].append( "-hltFastPixelTracksVHbb" )
1277  self.options['modules'].append( "-hltFastPixelTracksRecoverVHbb" )
1278 
1279  self.options['modules'].append( "-hltFastPrimaryVertex")
1280  self.options['modules'].append( "-hltFastPVPixelTracks")
1281  self.options['modules'].append( "-hltFastPVPixelTracksRecover" )
1282 
1283  self.options['modules'].append( "-hltIter4Tau3MuMerged" )
1284  self.options['modules'].append( "hltPixelMatchElectronsActivity" )
1285 
1286  self.options['modules'].append( "-hltMuonCSCDigis" )
1287  self.options['modules'].append( "-hltMuonDTDigis" )
1288  self.options['modules'].append( "-hltMuonRPCDigis" )
1289  self.options['modules'].append( "-hltGtDigis" )
1290  self.options['modules'].append( "-hltL1GtTrigReport" )
1291  self.options['modules'].append( "hltCsc2DRecHits" )
1292  self.options['modules'].append( "hltDt1DRecHits" )
1293  self.options['modules'].append( "hltRpcRecHits" )
1294  self.options['modules'].append( "-hltScalersRawToDigi" )
1295 
1296  # 2011 start
1297  self.options['sequences'].append( "-HLTL1IsoEgammaRegionalRecoTrackerSequence" )
1298  self.options['sequences'].append( "-HLTL1NonIsoEgammaRegionalRecoTrackerSequence" )
1299  # 2011 stop
1300  self.options['sequences'].append( "-HLTL1SeededEgammaRegionalRecoTrackerSequence" )
1301  self.options['sequences'].append( "-HLTEcalActivityEgammaRegionalRecoTrackerSequence" )
1302  self.options['sequences'].append( "-HLTPixelMatchElectronActivityTrackingSequence" )
1303  self.options['sequences'].append( "-HLTDoLocalStripSequence" )
1304  self.options['sequences'].append( "-HLTDoLocalPixelSequence" )
1305  self.options['sequences'].append( "-HLTDoLocalPixelSequenceRegL2Tau" )
1306  self.options['sequences'].append( "-hltSiPixelDigis" )
1307  self.options['sequences'].append( "-hltSiPixelClusters" )
1308  self.options['sequences'].append( "-hltSiPixelRecHits" )
1309  self.options['sequences'].append( "-HLTRecopixelvertexingSequence" )
1310  self.options['sequences'].append( "-HLTEndSequence" )
1311  self.options['sequences'].append( "-HLTBeginSequence" )
1312  self.options['sequences'].append( "-HLTBeginSequenceNZS" )
1313  self.options['sequences'].append( "-HLTBeginSequenceBPTX" )
1314  self.options['sequences'].append( "-HLTBeginSequenceAntiBPTX" )
1315  self.options['sequences'].append( "-HLTHBHENoiseSequence" )
1316  self.options['sequences'].append( "-HLTIterativeTracking" )
1317  self.options['sequences'].append( "-HLTIterativeTrackingTau3Mu" )
1318  self.options['sequences'].append( "-HLTRegionalCKFTracksForL3Isolation" )
1319  self.options['sequences'].append( "-HLTHBHENoiseCleanerSequence" )
1320 
1321  # remove HLTAnalyzerEndpath from fastsim cff's
1322  if self.config.fragment:
1323  self.options['paths'].append( "-HLTAnalyzerEndpath" )
1324 
def buildOptions
Definition: confdb.py:1041
def confdb.buildPathList (   self)

Definition at line 984 of file confdb.py.

985  def buildPathList(self):
986  self.all_paths = self.getPathList()
987 
988  if self.config.paths:
989  # no path list was requested, dump the full table, minus unsupported / unwanted paths
990  paths = self.config.paths.split(',')
991  else:
992  # dump only the requested paths, plus the eventual output endpaths
993  paths = []
994 
995  if self.config.fragment or self.config.output in ('none', 'full'):
996  # 'full' removes all outputs (same as 'none') and then adds a single "keep *" output (see the overrideOutput method)
997  if self.config.paths:
998  # paths are removed by default
999  pass
1000  else:
1001  # drop all output endpaths
1002  paths.append( "-*Output" )
1003  elif self.config.output == 'minimal':
1004  # drop all output endpaths but HLTDQMResultsOutput
1005  if self.config.paths:
1006  paths.append( "HLTDQMResultsOutput" )
1007  else:
1008  paths.append( "-*Output" )
1009  paths.append( "HLTDQMResultsOutput" )
1010  else:
1011  # keep / add back all output endpaths
1012  if self.config.paths:
1013  paths.append( "*Output" )
1014  else:
1015  pass # paths are kepy by default
1016 
1017  # drop paths unsupported by fastsim
1018  if self.config.fastsim:
1019  paths.extend( "-%s" % path for path in self.fastsimUnsupportedPaths )
1020 
1021  # drop unwanted paths for profiling (and timing studies)
1022  if self.config.profiling:
1023  paths.append( "-HLTriggerFirstPath" )
1024  paths.append( "-HLTAnalyzerEndpath" )
1025 
1026  # this should never be in any dump (nor online menu)
1027  paths.append( "-OfflineOutput" )
1028 
1029  # expand all wildcards
1030  paths = self.expandWildcards(paths, self.all_paths)
1031 
1032  if self.config.paths:
1033  # do an "additive" consolidation
1034  self.options['paths'] = self.consolidatePositiveList(paths)
1035  if not self.options['paths']:
1036  raise RuntimeError('Error: option "--paths %s" does not select any valid paths' % self.config.paths)
1037  else:
1038  # do a "subtractive" consolidation
1039  self.options['paths'] = self.consolidateNegativeList(paths)
1040 
def buildPathList
Definition: confdb.py:984
def confdb.dumppaths (   paths)
static

Definition at line 978 of file confdb.py.

979  def dumppaths(paths):
980  sys.stderr.write('Path selection:\n')
981  for path in paths:
982  sys.stderr.write('\t%s\n' % path)
983  sys.stderr.write('\n\n')
def dumppaths
Definition: confdb.py:978
def confdb.fixForFastSim (   self)

Definition at line 526 of file confdb.py.

527  def fixForFastSim(self):
528  if self.config.fastsim:
529  # adapt the hle configuration (fragment) to run under fastsim
530  self.data = re.sub( r'import FWCore.ParameterSet.Config as cms', r'\g<0>\nfrom FastSimulation.HighLevelTrigger.HLTSetup_cff import *', self.data)
531 
532  # remove the definition of streams and datasets
533  self.data = re.compile( r'^streams.*\n(.*\n)*?^\)\s*\n', re.MULTILINE ).sub( '', self.data )
534  self.data = re.compile( r'^datasets.*\n(.*\n)*?^\)\s*\n', re.MULTILINE ).sub( '', self.data )
535 
536  # fix the definition of module
537  # FIXME: this should be updated to take into accout the --l1-emulator option
538  self._fix_parameter( type = 'InputTag', value = 'hltL1extraParticles', replace = 'l1extraParticles')
539  self._fix_parameter(name = 'GMTReadoutCollection', type = 'InputTag', value = 'hltGtDigis', replace = 'gmtDigis')
540  self._fix_parameter( type = 'InputTag', value = 'hltGtDigis', replace = 'gtDigis')
541  self._fix_parameter( type = 'InputTag', value = 'hltL1GtObjectMap', replace = 'gtDigis')
542  self._fix_parameter(name = 'initialSeeds', type = 'InputTag', value = 'noSeedsHere', replace = 'globalPixelSeeds:GlobalPixel')
543  self._fix_parameter(name = 'preFilteredSeeds', type = 'bool', value = 'True', replace = 'False')
544  self._fix_parameter( type = 'InputTag', value = 'hltOfflineBeamSpot', replace = 'offlineBeamSpot')
545  self._fix_parameter( type = 'InputTag', value = 'hltOnlineBeamSpot', replace = 'offlineBeamSpot')
546  self._fix_parameter( type = 'InputTag', value = 'hltMuonCSCDigis', replace = 'simMuonCSCDigis')
547  self._fix_parameter( type = 'InputTag', value = 'hltMuonDTDigis', replace = 'simMuonDTDigis')
548  self._fix_parameter( type = 'InputTag', value = 'hltMuonRPCDigis', replace = 'simMuonRPCDigis')
549  self._fix_parameter( type = 'InputTag', value = 'hltRegionalTracksForL3MuonIsolation', replace = 'hltPixelTracks')
550  self._fix_parameter(name = 'src', type = 'InputTag', value = 'hltHcalTowerNoiseCleaner', replace = 'hltTowerMakerForAll')
551  self._fix_parameter(name = 'src', type = 'InputTag', value = 'hltIter4Tau3MuMerged', replace = 'hltIter4Merged')
552 
553  # fix the definition of sequences and paths
554  self.data = re.sub( r'hltMuonCSCDigis', r'cms.SequencePlaceholder( "simMuonCSCDigis" )', self.data )
555  self.data = re.sub( r'hltMuonDTDigis', r'cms.SequencePlaceholder( "simMuonDTDigis" )', self.data )
556  self.data = re.sub( r'hltMuonRPCDigis', r'cms.SequencePlaceholder( "simMuonRPCDigis" )', self.data )
557  self.data = re.sub( r'HLTEndSequence', r'cms.SequencePlaceholder( "HLTEndSequence" )', self.data )
558  self.data = re.sub( r'hltGtDigis', r'HLTBeginSequence', self.data )
559 
def fixForFastSim
Definition: confdb.py:526
def confdb.fixForMC (   self)

Definition at line 515 of file confdb.py.

516  def fixForMC(self):
517  if not self.config.data:
518  # customise the HLT menu for running on MC
519  if not self.config.fragment:
520  self.data += """
521 # customise the HLT menu for running on MC
522 from HLTrigger.Configuration.customizeHLTforMC import customizeHLTforMC
523 process = customizeHLTforMC(process)
524 """
525 
def fixForMC
Definition: confdb.py:515
def confdb.fixPrescales (   self)

Definition at line 560 of file confdb.py.

561  def fixPrescales(self):
562  # update the PrescaleService to match the new list of paths
563  if self.options['paths']:
564  if self.options['paths'][0][0] == '-':
565  # drop requested paths
566  for minuspath in self.options['paths']:
567  path = minuspath[1:]
568  self.data = re.sub(r' cms.PSet\( pathName = cms.string\( "%s" \),\n prescales = cms.vuint32\( .* \)\n \),?\n' % path, '', self.data)
569  else:
570  # keep requested paths
571  for path in self.all_paths:
572  if path not in self.options['paths']:
573  self.data = re.sub(r' cms.PSet\( pathName = cms.string\( "%s" \),\n prescales = cms.vuint32\( .* \)\n \),?\n' % path, '', self.data)
574 
575  if self.config.unprescale:
576  self.data += """
577 # remove the HLT prescales
578 if 'PrescaleService' in %(dict)s:
579  %(process)sPrescaleService.lvl1DefaultLabel = cms.string( '0' )
580  %(process)sPrescaleService.lvl1Labels = cms.vstring( '0', '1', '2', '3', '4', '5', '6', '7', '8', '9' )
581  %(process)sPrescaleService.prescaleTable = cms.VPSet( )
582 """
583 
def fixPrescales
Definition: confdb.py:560
def confdb.instrumentErrorEventType (   self)

Definition at line 598 of file confdb.py.

599  def instrumentErrorEventType(self):
600  if self.config.errortype:
601  # change all HLTTriggerTypeFilter EDFilters to accept only error events (SelectedTriggerType = 0)
602  self._fix_parameter(name = 'SelectedTriggerType', type ='int32', value = '1', replace = '0')
603  self._fix_parameter(name = 'SelectedTriggerType', type ='int32', value = '2', replace = '0')
604  self._fix_parameter(name = 'SelectedTriggerType', type ='int32', value = '3', replace = '0')
605 
def instrumentErrorEventType
Definition: confdb.py:598
def confdb.instrumentOpenMode (   self)

Definition at line 584 of file confdb.py.

References join().

585  def instrumentOpenMode(self):
586  if self.config.open:
587  # find all EDfilters
588  filters = [ match[1] for match in re.findall(r'(process\.)?\b(\w+) = cms.EDFilter', self.data) ]
589  re_sequence = re.compile( r'cms\.(Path|Sequence)\((.*)\)' )
590  # remove existing 'cms.ingore' and '~' modifiers
591  self.data = re_sequence.sub( lambda line: re.sub( r'cms\.ignore *\( *((process\.)?\b(\w+)) *\)', r'\1', line.group(0) ), self.data )
592  self.data = re_sequence.sub( lambda line: re.sub( r'~', '', line.group(0) ), self.data )
593  # wrap all EDfilters with "cms.ignore( ... )", 1000 at a time (python 2.6 complains for too-big regular expressions)
594  for some in splitter(filters, 1000):
595  re_filters = re.compile( r'\b((process\.)?(' + r'|'.join(some) + r'))\b' )
596  self.data = re_sequence.sub( lambda line: re_filters.sub( r'cms.ignore( \1 )', line.group(0) ), self.data )
597 
static std::string join(char **cmd)
Definition: RemoteFile.cc:18
def instrumentOpenMode
Definition: confdb.py:584
def confdb.instrumentTiming (   self)

Definition at line 870 of file confdb.py.

871  def instrumentTiming(self):
872  if self.config.profiling:
873  # instrument the menu for profiling: remove the HLTAnalyzerEndpath, add/override the HLTriggerFirstPath, with hltGetRaw and hltGetConditions
874  text = ''
875 
876  if not 'hltGetRaw' in self.data:
877  # add hltGetRaw
878  text += """
879 %(process)shltGetRaw = cms.EDAnalyzer( "HLTGetRaw",
880  RawDataCollection = cms.InputTag( "rawDataCollector" )
881 )
882 """
883 
884  if not 'hltGetConditions' in self.data:
885  # add hltGetConditions
886  text += """
887 %(process)shltGetConditions = cms.EDAnalyzer( 'EventSetupRecordDataGetter',
888  verbose = cms.untracked.bool( False ),
889  toGet = cms.VPSet( )
890 )
891 """
892 
893  if not 'hltBoolFalse' in self.data:
894  # add hltBoolFalse
895  text += """
896 %(process)shltBoolFalse = cms.EDFilter( "HLTBool",
897  result = cms.bool( False )
898 )
899 """
900 
901  # add the definition of HLTriggerFirstPath
902  # FIXME in a cff, should also update the HLTSchedule
903  text += """
904 %(process)sHLTriggerFirstPath = cms.Path( %(process)shltGetRaw + %(process)shltGetConditions + %(process)shltBoolFalse )
905 """
906  self.data = re.sub(r'.*cms\.(End)?Path.*', text + r'\g<0>', self.data, 1)
907 
908 
909  # instrument the menu with the Service, EDProducer and EndPath needed for timing studies
910  # FIXME in a cff, should also update the HLTSchedule
911  if self.config.timing:
912  self.data += """
913 # instrument the menu with the modules and EndPath needed for timing studies
914 """
915 
916  hasFST = False
917  if 'FastTimerService' in self.data:
918  hasFST = True
919 
920  self.data += '\n# configure the FastTimerService\n'
921  if not hasFST:
922  self.loadCff('HLTrigger.Timer.FastTimerService_cfi')
923  self.data += """%(process)sFastTimerService.useRealTimeClock = False
924 %(process)sFastTimerService.enableTimingPaths = True
925 %(process)sFastTimerService.enableTimingModules = True
926 %(process)sFastTimerService.enableTimingExclusive = True
927 %(process)sFastTimerService.enableTimingSummary = True
928 %(process)sFastTimerService.skipFirstPath = True
929 %(process)sFastTimerService.enableDQM = True
930 %(process)sFastTimerService.enableDQMbyPathActive = True
931 %(process)sFastTimerService.enableDQMbyPathTotal = True
932 %(process)sFastTimerService.enableDQMbyPathOverhead = True
933 %(process)sFastTimerService.enableDQMbyPathDetails = True
934 %(process)sFastTimerService.enableDQMbyPathCounters = True
935 %(process)sFastTimerService.enableDQMbyPathExclusive = True
936 %(process)sFastTimerService.enableDQMbyModule = True
937 %(process)sFastTimerService.enableDQMSummary = True
938 %(process)sFastTimerService.enableDQMbyLuminosity = True
939 %(process)sFastTimerService.enableDQMbyLumiSection = True
940 %(process)sFastTimerService.enableDQMbyProcesses = False
941 %(process)sFastTimerService.dqmTimeRange = 1000.
942 %(process)sFastTimerService.dqmTimeResolution = 5.
943 %(process)sFastTimerService.dqmPathTimeRange = 100.
944 %(process)sFastTimerService.dqmPathTimeResolution = 0.5
945 %(process)sFastTimerService.dqmModuleTimeRange = 40.
946 %(process)sFastTimerService.dqmModuleTimeResolution = 0.2
947 %(process)sFastTimerService.dqmLuminosityRange = 1e+34
948 %(process)sFastTimerService.dqmLuminosityResolution = 1e+31
949 %(process)sFastTimerService.dqmLumiSectionsRange = 2500
950 %(process)sFastTimerService.dqmPath = 'HLT/TimerService'
951 %(process)sFastTimerService.luminosityProduct = cms.untracked.InputTag( 'hltScalersRawToDigi' )
952 %(process)sFastTimerService.supportedProcesses = cms.untracked.vuint32( )
953 """
954 
955  self.data += """
956 # FastTimerServiceClient
957 %(process)sfastTimerServiceClient = cms.EDAnalyzer( "FastTimerServiceClient",
958  dqmPath = cms.untracked.string( "HLT/TimerService" )
959 )
960 
961 # DQM file saver
962 %(process)sdqmFileSaver = cms.EDAnalyzer( "DQMFileSaver",
963  convention = cms.untracked.string( "Offline" ),
964  workflow = cms.untracked.string( "/HLT/FastTimerService/All" ),
965  dirName = cms.untracked.string( "." ),
966  saveByRun = cms.untracked.int32(1),
967  saveByLumiSection = cms.untracked.int32(-1),
968  saveByEvent = cms.untracked.int32(-1),
969  saveByTime = cms.untracked.int32(-1),
970  saveByMinute = cms.untracked.int32(-1),
971  saveAtJobEnd = cms.untracked.bool(False),
972  forceRunNumber = cms.untracked.int32(-1),
973 )
974 
975 %(process)sTimingOutput = cms.EndPath( %(process)sfastTimerServiceClient + %(process)sdqmFileSaver )
976 """
def instrumentTiming
Definition: confdb.py:870
def confdb.loadAdditionalConditions (   self,
  comment,
  conditions 
)

Definition at line 836 of file confdb.py.

837  def loadAdditionalConditions(self, comment, *conditions):
838  # load additional conditions
839  self.data += """
840 # %s
841 if 'GlobalTag' in %%(dict)s:
842 """ % comment
843  for condition in conditions:
844  self.data += """ %%(process)sGlobalTag.toGet.append(
845  cms.PSet(
846  record = cms.string( '%(record)s' ),
847  tag = cms.string( '%(tag)s' ),
848  label = cms.untracked.string( '%(label)s' ),
849  connect = cms.untracked.string( '%(connect)s' )
850  )
851  )
852 """ % condition
853 
def loadAdditionalConditions
Definition: confdb.py:836
def confdb.loadCff (   self,
  module 
)

Definition at line 854 of file confdb.py.

855  def loadCff(self, module):
856  # load a cfi or cff module
857  if self.config.fragment:
858  self.data += 'from %s import *\n' % module
859  else:
860  self.data += 'process.load( "%s" )\n' % module
861 
def loadCff
Definition: confdb.py:854
def confdb.overrideGlobalTag (   self)

Definition at line 606 of file confdb.py.

607  def overrideGlobalTag(self):
608  # overwrite GlobalTag
609  # the logic is:
610  # - always set the correct connection string and pfnPrefix
611  # - if a GlobalTag is specified on the command line:
612  # - override the global tag
613  # - if the GT is "auto:...", insert the code to read it from Configuration.AlCa.autoCond
614  # - if a GlobalTag is NOT specified on the command line:
615  # - when running on data, do nothing, and keep the global tag in the menu
616  # - when running on mc, take the GT from the configuration.type
617 
618  # override the GlobalTag connection string and pfnPrefix
619  text = """
620 # override the GlobalTag, connection string and pfnPrefix
621 if 'GlobalTag' in %(dict)s:
622 """
623 
624  # when running on MC, override the global tag even if not specified on the command line
625  if not self.config.data and not self.config.globaltag:
626  if self.config.type in globalTag:
627  self.config.globaltag = globalTag[self.config.type]
628  else:
629  self.config.globaltag = globalTag['GRun']
630 
631  # if requested, override the L1 menu from the GlobalTag (using the same connect as the GlobalTag itself)
632  if self.config.l1.override:
633  self.config.l1.record = 'L1GtTriggerMenuRcd'
634  self.config.l1.label = ''
635  self.config.l1.tag = self.config.l1.override
636  if not self.config.l1.connect:
637  self.config.l1.connect = '%(connect)s/CMS_COND_31X_L1T'
638  self.config.l1cond = '%(tag)s,%(record)s,%(connect)s' % self.config.l1.__dict__
639  else:
640  self.config.l1cond = None
641 
642  if self.config.globaltag or self.config.l1cond:
643  text += " from Configuration.AlCa.GlobalTag import GlobalTag as customiseGlobalTag\n"
644  text += " %(process)sGlobalTag = customiseGlobalTag(%(process)sGlobalTag"
645  if self.config.globaltag:
646  text += ", globaltag = %s" % repr(self.config.globaltag)
647  if self.config.l1cond:
648  text += ", conditions = %s" % repr(self.config.l1cond)
649  text += ")\n"
650 
651  text += """ %(process)sGlobalTag.connect = '%(connect)s/CMS_COND_31X_GLOBALTAG'
652  %(process)sGlobalTag.pfnPrefix = cms.untracked.string('%(connect)s/')
653  for pset in process.GlobalTag.toGet.value():
654  pset.connect = pset.connect.value().replace('frontier://FrontierProd/', '%(connect)s/')
655 """
656  self.data += text
def overrideGlobalTag
Definition: confdb.py:606
def confdb.overrideL1MenuXml (   self)

Definition at line 657 of file confdb.py.

658  def overrideL1MenuXml(self):
659  # if requested, override the L1 menu from the GlobalTag (Xml file)
660  if self.config.l1Xml.XmlFile:
661  text = """
662 # override the L1 menu from an Xml file
663 %%(process)sl1GtTriggerMenuXml = cms.ESProducer("L1GtTriggerMenuXmlProducer",
664  TriggerMenuLuminosity = cms.string('%(LumiDir)s'),
665  DefXmlFile = cms.string('%(XmlFile)s'),
666  VmeXmlFile = cms.string('')
667 )
668 %%(process)sL1GtTriggerMenuRcdSource = cms.ESSource("EmptyESSource",
669  recordName = cms.string('L1GtTriggerMenuRcd'),
670  iovIsRunNotTime = cms.bool(True),
671  firstValid = cms.vuint32(1)
672 )
673 %%(process)ses_prefer_l1GtParameters = cms.ESPrefer('L1GtTriggerMenuXmlProducer','l1GtTriggerMenuXml')
674 """
675  self.data += text % self.config.l1Xml.__dict__
def overrideL1MenuXml
Definition: confdb.py:657
def confdb.overrideOutput (   self)

Definition at line 755 of file confdb.py.

756  def overrideOutput(self):
757  # override the "online" ShmStreamConsumer output modules with "offline" PoolOutputModule's
758  self.data = re.sub(
759  r'\b(process\.)?hltOutput(\w+) *= *cms\.OutputModule\( *"ShmStreamConsumer" *,',
760  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 ),',
761  self.data
762  )
763 
764  if not self.config.fragment and self.config.output == 'full':
765  # add a single "keep *" output
766  self.data += """
767 # add a single "keep *" output
768 %(process)shltOutputFULL = cms.OutputModule( "PoolOutputModule",
769  fileName = cms.untracked.string( "outputFULL.root" ),
770  fastCloning = cms.untracked.bool( False ),
771  dataset = cms.untracked.PSet(
772  dataTier = cms.untracked.string( 'RECO' ),
773  filterName = cms.untracked.string( '' )
774  ),
775  outputCommands = cms.untracked.vstring( 'keep *' )
776 )
777 %(process)sFULLOutput = cms.EndPath( %(process)shltOutputFULL )
778 """
779 
def overrideOutput
Definition: confdb.py:755
def confdb.overrideParameters (   self,
  module,
  parameters 
)

Definition at line 862 of file confdb.py.

863  def overrideParameters(self, module, parameters):
864  # override a module's parameter if the module is present in the configuration
865  self.data += "if '%s' in %%(dict)s:\n" % module
866  for (parameter, value) in parameters:
867  self.data += " %%(process)s%s.%s = %s\n" % (module, parameter, value)
868  self.data += "\n"
869 
def overrideParameters
Definition: confdb.py:862
def confdb.overrideProcessName (   self)

Definition at line 781 of file confdb.py.

782  def overrideProcessName(self):
783  if self.config.name is None:
784  return
785 
786  # override the process name
787  quote = '[\'\"]'
788  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)
789 
790  # the following was stolen and adapted from HLTrigger.Configuration.customL1THLT_Options
791  self.data += """
792 # adapt HLT modules to the correct process name
793 if 'hltTrigReport' in %%(dict)s:
794  %%(process)shltTrigReport.HLTriggerResults = cms.InputTag( 'TriggerResults', '', '%(name)s' )
795 
796 if 'hltPreExpressCosmicsOutputSmart' in %%(dict)s:
797  %%(process)shltPreExpressCosmicsOutputSmart.TriggerResultsTag = cms.InputTag( 'TriggerResults', '', '%(name)s' )
798 
799 if 'hltPreExpressOutputSmart' in %%(dict)s:
800  %%(process)shltPreExpressOutputSmart.TriggerResultsTag = cms.InputTag( 'TriggerResults', '', '%(name)s' )
801 
802 if 'hltPreDQMForHIOutputSmart' in %%(dict)s:
803  %%(process)shltPreDQMForHIOutputSmart.TriggerResultsTag = cms.InputTag( 'TriggerResults', '', '%(name)s' )
804 
805 if 'hltPreDQMForPPOutputSmart' in %%(dict)s:
806  %%(process)shltPreDQMForPPOutputSmart.TriggerResultsTag = cms.InputTag( 'TriggerResults', '', '%(name)s' )
807 
808 if 'hltPreHLTDQMResultsOutputSmart' in %%(dict)s:
809  %%(process)shltPreHLTDQMResultsOutputSmart.TriggerResultsTag = cms.InputTag( 'TriggerResults', '', '%(name)s' )
810 
811 if 'hltPreHLTDQMOutputSmart' in %%(dict)s:
812  %%(process)shltPreHLTDQMOutputSmart.TriggerResultsTag = cms.InputTag( 'TriggerResults', '', '%(name)s' )
813 
814 if 'hltPreHLTMONOutputSmart' in %%(dict)s:
815  %%(process)shltPreHLTMONOutputSmart.TriggerResultsTag = cms.InputTag( 'TriggerResults', '', '%(name)s' )
816 
817 if 'hltDQMHLTScalers' in %%(dict)s:
818  %%(process)shltDQMHLTScalers.triggerResults = cms.InputTag( 'TriggerResults', '', '%(name)s' )
819  %%(process)shltDQMHLTScalers.processname = '%(name)s'
820 
821 if 'hltDQML1SeedLogicScalers' in %%(dict)s:
822  %%(process)shltDQML1SeedLogicScalers.processname = '%(name)s'
823 """ % self.config.__dict__
824 
def overrideProcessName
Definition: confdb.py:781
def confdb.runL1Emulator (   self)

Definition at line 707 of file confdb.py.

708  def runL1Emulator(self):
709  # if requested, run (part of) the L1 emulator
710  if self.config.emulator:
711  # FIXME this fragment used "process" explicitly
712  emulator = {
713  'RawToDigi': '',
714  'CustomL1T': '',
715  'CustomHLT': ''
716  }
717 
718  if self.config.data:
719  emulator['RawToDigi'] = 'RawToDigi_Data_cff'
720  else:
721  emulator['RawToDigi'] = 'RawToDigi_cff'
722 
723  if self.config.emulator == 'gt':
724  emulator['CustomL1T'] = 'customiseL1GtEmulatorFromRaw'
725  emulator['CustomHLT'] = 'switchToSimGtDigis'
726  elif self.config.emulator == 'gct,gt':
727  emulator['CustomL1T'] = 'customiseL1CaloAndGtEmulatorsFromRaw'
728  emulator['CustomHLT'] = 'switchToSimGctGtDigis'
729  elif self.config.emulator == 'gmt,gt':
730  # XXX currently unsupported
731  emulator['CustomL1T'] = 'customiseL1MuonAndGtEmulatorsFromRaw'
732  emulator['CustomHLT'] = 'switchToSimGmtGtDigis'
733  elif self.config.emulator in ('gmt,gct,gt', 'gct,gmt,gt', 'all'):
734  emulator['CustomL1T'] = 'customiseL1EmulatorFromRaw'
735  emulator['CustomHLT'] = 'switchToSimGmtGctGtDigis'
736  else:
737  # unsupported argument, default to running the whole emulator
738  emulator['CustomL1T'] = 'customiseL1EmulatorFromRaw'
739  emulator['CustomHLT'] = 'switchToSimGmtGctGtDigis'
740 
741  self.data += """
742 # customize the L1 emulator to run %(CustomL1T)s with HLT to %(CustomHLT)s
743 process.load( 'Configuration.StandardSequences.%(RawToDigi)s' )
744 process.load( 'Configuration.StandardSequences.SimL1Emulator_cff' )
745 import L1Trigger.Configuration.L1Trigger_custom
746 process = L1Trigger.Configuration.L1Trigger_custom.%(CustomL1T)s( process )
747 process = L1Trigger.Configuration.L1Trigger_custom.customiseResetPrescalesAndMasks( process )
748 
749 # customize the HLT to use the emulated results
750 import HLTrigger.Configuration.customizeHLTforL1Emulator
751 process = HLTrigger.Configuration.customizeHLTforL1Emulator.switchToL1Emulator( process )
752 process = HLTrigger.Configuration.customizeHLTforL1Emulator.%(CustomHLT)s( process )
753 """ % emulator
754 
def runL1Emulator
Definition: confdb.py:707
def confdb.runL1EmulatorGT (   self)

Definition at line 676 of file confdb.py.

677  def runL1EmulatorGT(self):
678  # if requested, run (part of) the L1 emulator, then repack the data into a new RAW collection, to be used by the HLT
679  if not self.config.emulator:
680  return
681 
682  if self.config.emulator != 'gt':
683  # only the GT emulator is currently supported
684  return
685 
686  # run the L1 GT emulator, then repack the data into a new RAW collection, to be used by the HLT
687  text = """
688 # run the L1 GT emulator, then repack the data into a new RAW collection, to be used by the HLT
689 """
690  if self.config.fragment:
691  # FIXME in a cff, should also update the HLTSchedule
692  text += "import Configuration.StandardSequences.SimL1EmulatorRepack_GT_cff\n"
693  else:
694  text += "process.load( 'Configuration.StandardSequences.SimL1EmulatorRepack_GT_cff' )\n"
695 
696  if not 'hltBoolFalse' in self.data:
697  # add hltBoolFalse
698  text += """
699 %(process)shltBoolFalse = cms.EDFilter( "HLTBool",
700  result = cms.bool( False )
701 )
702 """
703  text += "process.L1Emulator = cms.Path( process.SimL1Emulator + process.hltBoolFalse )\n\n"
704 
705  self.data = re.sub(r'.*cms\.(End)?Path.*', text + r'\g<0>', self.data, 1)
706 
def runL1EmulatorGT
Definition: confdb.py:676
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 825 of file confdb.py.

826  def updateMessageLogger(self):
827  # request summary informations from the MessageLogger
828  self.data += """
829 if 'MessageLogger' in %(dict)s:
830  %(process)sMessageLogger.categories.append('TriggerSummaryProducerAOD')
831  %(process)sMessageLogger.categories.append('L1GtTrigReport')
832  %(process)sMessageLogger.categories.append('HLTrigReport')
833  %(process)sMessageLogger.categories.append('FastReport')
834 """
835 
def updateMessageLogger
Definition: confdb.py:825

Variable Documentation

confdb.all_paths

Definition at line 985 of file confdb.py.

confdb.data

Definition at line 504 of file confdb.py.

confdb.source

Definition at line 1334 of file confdb.py.