CMS 3D CMS Logo

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 ) """
def build_source
def buildOptions
def buildPathList
def dumppaths
def fixForFastSim
def fixForMC
def fixPrescales
def instrumentErrorEventType
def instrumentOpenMode
def instrumentTiming
def loadAdditionalConditions
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 336 of file confdb.py.

00337                                   :
00338     """arguments:
00339         name:     parameter name (optional)
00340         type:     parameter type (look for tracked and untracked variants)
00341         value:    original value
00342         replace:  replacement value
00343     """
00344     if 'name' in args:
00345       self.data = re.sub(
00346           r'%(name)s = cms(?P<tracked>(?:\.untracked)?)\.%(type)s\( (?P<quote>["\']?)%(value)s(?P=quote)' % args,
00347           r'%(name)s = cms\g<tracked>.%(type)s( \g<quote>%(replace)s\g<quote>' % args,
00348           self.data)
00349     else:
00350       self.data = re.sub(
00351           r'cms(?P<tracked>(?:\.untracked)?)\.%(type)s\( (?P<quote>["\']?)%(value)s(?P=quote)' % args,
00352           r'cms\g<tracked>.%(type)s( \g<quote>%(replace)s\g<quote>' % args,
00353           self.data)
00354 

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

00320                             :
00321     # add global options
00322     self.data += """
00323 # limit the number of events to be processed
00324 %(process)smaxEvents = cms.untracked.PSet(
00325     input = cms.untracked.int32( 100 )
00326 )
00327 """
00328     if not self.config.profiling:
00329       self.data += """
00330 # enable the TrigReport and TimeReport
00331 %(process)soptions = cms.untracked.PSet(
00332     wantSummary = cms.untracked.bool( True )
00333 )
00334 """
00335 

def confdb::build_source (   self)

Definition at line 1075 of file confdb.py.

01076                         :
01077     if self.config.input:
01078       # if a dataset or a list of input files was given, use it
01079       if self.config.input[0:8] == 'dataset:':
01080         from dbsFileQuery import dbsFileQuery
01081         # extract the dataset name, and use DBS to fine the list of LFNs
01082         dataset = self.config.input[8:]
01083         query   = 'find file where dataset=' + dataset
01084         files   = dbsFileQuery(query)
01085         self.source = files
01086       else:
01087         # assume a list of input files
01088         self.source = self.config.input.split(',')
01089     elif self.config.online:
01090       # online we always run on data
01091       self.source = [ "file:/tmp/InputCollection.root" ]
01092     elif self.config.data:
01093       # offline we can run on data...
01094       self.source = [ "file:RelVal_Raw_%s_DATA.root" % self.config.type ]
01095     else:
01096       # ...or on mc
01097       self.source = [ "file:RelVal_Raw_%s_STARTUP.root" % self.config.type ]
01098 
01099     self.data += """
01100 %(process)ssource = cms.Source( "PoolSource",
01101     fileNames = cms.untracked.vstring(
01102 """
01103     if self.source: 
01104       for line in self.source:
01105         self.data += "        '%s',\n" % line
01106     self.data += """    ),
01107     secondaryFileNames = cms.untracked.vstring(
01108 """
01109     if self.parent: 
01110       for line in self.parent:
01111         self.data += "        '%s',\n" % line
01112     self.data += """    ),
01113     inputCommands = cms.untracked.vstring(
01114         'keep *'
01115     )
01116 )
01117 """
01118 
def confdb::buildOptions (   self)

Definition at line 832 of file confdb.py.

00833                         :
00834     # common configuration for all scenarios
00835     self.options['services'].append( "-FUShmDQMOutputService" )
00836 
00837     if self.config.fragment:
00838       # extract a configuration file fragment
00839       self.options['essources'].append( "-GlobalTag" )
00840       self.options['essources'].append( "-HepPDTESSource" )
00841       self.options['essources'].append( "-XMLIdealGeometryESSource" )
00842       self.options['essources'].append( "-eegeom" )
00843       self.options['essources'].append( "-es_hardcode" )
00844       self.options['essources'].append( "-magfield" )
00845 
00846       self.options['esmodules'].append( "-AutoMagneticFieldESProducer" )
00847       self.options['esmodules'].append( "-SlaveField0" )
00848       self.options['esmodules'].append( "-SlaveField20" )
00849       self.options['esmodules'].append( "-SlaveField30" )
00850       self.options['esmodules'].append( "-SlaveField35" )
00851       self.options['esmodules'].append( "-SlaveField38" )
00852       self.options['esmodules'].append( "-SlaveField40" )
00853       self.options['esmodules'].append( "-VBF0" )
00854       self.options['esmodules'].append( "-VBF20" )
00855       self.options['esmodules'].append( "-VBF30" )
00856       self.options['esmodules'].append( "-VBF35" )
00857       self.options['esmodules'].append( "-VBF38" )
00858       self.options['esmodules'].append( "-VBF40" )
00859       self.options['esmodules'].append( "-CSCGeometryESModule" )
00860       self.options['esmodules'].append( "-CaloGeometryBuilder" )
00861       self.options['esmodules'].append( "-CaloTowerHardcodeGeometryEP" )
00862       self.options['esmodules'].append( "-CastorHardcodeGeometryEP" )
00863       self.options['esmodules'].append( "-DTGeometryESModule" )
00864       self.options['esmodules'].append( "-EcalBarrelGeometryEP" )
00865       self.options['esmodules'].append( "-EcalElectronicsMappingBuilder" )
00866       self.options['esmodules'].append( "-EcalEndcapGeometryEP" )
00867       self.options['esmodules'].append( "-EcalLaserCorrectionService" )
00868       self.options['esmodules'].append( "-EcalPreshowerGeometryEP" )
00869       self.options['esmodules'].append( "-HcalHardcodeGeometryEP" )
00870       self.options['esmodules'].append( "-HcalTopologyIdealEP" )
00871       self.options['esmodules'].append( "-MuonNumberingInitialization" )
00872       self.options['esmodules'].append( "-ParametrizedMagneticFieldProducer" )
00873       self.options['esmodules'].append( "-RPCGeometryESModule" )
00874       self.options['esmodules'].append( "-SiStripGainESProducer" )
00875       self.options['esmodules'].append( "-SiStripRecHitMatcherESProducer" )
00876       self.options['esmodules'].append( "-SiStripQualityESProducer" )
00877       self.options['esmodules'].append( "-StripCPEfromTrackAngleESProducer" )
00878       self.options['esmodules'].append( "-TrackerDigiGeometryESModule" )
00879       self.options['esmodules'].append( "-TrackerGeometricDetESModule" )
00880       self.options['esmodules'].append( "-VolumeBasedMagneticFieldESProducer" )
00881       self.options['esmodules'].append( "-ZdcHardcodeGeometryEP" )
00882       self.options['esmodules'].append( "-hcal_db_producer" )
00883       self.options['esmodules'].append( "-L1GtTriggerMaskAlgoTrigTrivialProducer" )
00884       self.options['esmodules'].append( "-L1GtTriggerMaskTechTrigTrivialProducer" )
00885       self.options['esmodules'].append( "-hltESPEcalTrigTowerConstituentsMapBuilder" )
00886       self.options['esmodules'].append( "-hltESPGlobalTrackingGeometryESProducer" )
00887       self.options['esmodules'].append( "-hltESPMuonDetLayerGeometryESProducer" )
00888       self.options['esmodules'].append( "-hltESPTrackerRecoGeometryESProducer" )
00889       if not self.config.fastsim:
00890         self.options['esmodules'].append( "-CaloTowerGeometryFromDBEP" )
00891         self.options['esmodules'].append( "-CastorGeometryFromDBEP" )
00892         self.options['esmodules'].append( "-EcalBarrelGeometryFromDBEP" )
00893         self.options['esmodules'].append( "-EcalEndcapGeometryFromDBEP" )
00894         self.options['esmodules'].append( "-EcalPreshowerGeometryFromDBEP" )
00895         self.options['esmodules'].append( "-HcalGeometryFromDBEP" )
00896         self.options['esmodules'].append( "-ZdcGeometryFromDBEP" )
00897         self.options['esmodules'].append( "-XMLFromDBSource" )
00898         self.options['esmodules'].append( "-sistripconn" )
00899 
00900       self.options['services'].append( "-PrescaleService" )
00901       self.options['services'].append( "-MessageLogger" )
00902       self.options['services'].append( "-DQM" )
00903       self.options['services'].append( "-DQMStore" )
00904       self.options['services'].append( "-MicroStateService" )
00905       self.options['services'].append( "-ModuleWebRegistry" )
00906       self.options['services'].append( "-TimeProfilerService" )
00907       self.options['services'].append( "-FastTimerService" )
00908 
00909       self.options['psets'].append( "-maxEvents" )
00910       self.options['psets'].append( "-options" )
00911 
00912     if self.config.fastsim:
00913       # remove components not supported or needed by fastsim
00914       self.options['esmodules'].append( "-navigationSchoolESProducer" )
00915       self.options['esmodules'].append( "-TransientTrackBuilderESProducer" )
00916       self.options['esmodules'].append( "-SteppingHelixPropagatorAny" )
00917       self.options['esmodules'].append( "-OppositeMaterialPropagator" )
00918       self.options['esmodules'].append( "-MaterialPropagator" )
00919       self.options['esmodules'].append( "-CaloTowerConstituentsMapBuilder" )
00920       self.options['esmodules'].append( "-CaloTopologyBuilder" )
00921 
00922       self.options['services'].append( "-UpdaterService" )
00923 
00924       self.options['modules'].append( "hltL3MuonIsolations" )
00925       self.options['modules'].append( "hltPixelVertices" )
00926       self.options['modules'].append( "-hltCkfL1SeededTrackCandidates" )
00927       self.options['modules'].append( "-hltCtfL1SeededithMaterialTracks" )
00928       self.options['modules'].append( "-hltCkf3HitL1SeededTrackCandidates" )
00929       self.options['modules'].append( "-hltCtf3HitL1SeededWithMaterialTracks" )
00930       self.options['modules'].append( "-hltCkf3HitActivityTrackCandidates" )
00931       self.options['modules'].append( "-hltCtf3HitActivityWithMaterialTracks" )
00932       self.options['modules'].append( "-hltActivityCkfTrackCandidatesForGSF" )
00933       self.options['modules'].append( "-hltL1SeededCkfTrackCandidatesForGSF" )
00934       self.options['modules'].append( "-hltMuCkfTrackCandidates" )
00935       self.options['modules'].append( "-hltMuCtfTracks" )
00936       self.options['modules'].append( "-hltTau3MuCkfTrackCandidates" )
00937       self.options['modules'].append( "-hltTau3MuCtfWithMaterialTracks" )
00938       self.options['modules'].append( "-hltMuTrackJpsiCkfTrackCandidates" )
00939       self.options['modules'].append( "-hltMuTrackJpsiCtfTracks" )
00940       self.options['modules'].append( "-hltMuTrackJpsiEffCkfTrackCandidates" )
00941       self.options['modules'].append( "-hltMuTrackJpsiEffCtfTracks" )
00942       self.options['modules'].append( "-hltCkfTrackCandidatesJpsiTk" )
00943       self.options['modules'].append( "-hltCtfWithMaterialTracksJpsiTk" )
00944       self.options['modules'].append( "-hltMuTrackCkfTrackCandidatesOnia" )
00945       self.options['modules'].append( "-hltMuTrackCtfTracksOnia" )
00946       
00947       self.options['modules'].append( "-hltESRegionalEgammaRecHit" )
00948       self.options['modules'].append( "-hltEcalRegionalJetsFEDs" )
00949       self.options['modules'].append( "-hltEcalRegionalMuonsFEDs" )
00950       self.options['modules'].append( "-hltEcalRegionalEgammaFEDs" )
00951       self.options['modules'].append( "-hltFEDSelector" )
00952       self.options['modules'].append( "-hltL3TrajSeedOIHit" )
00953       self.options['modules'].append( "-hltL3TrajSeedIOHit" )
00954       self.options['modules'].append( "-hltL3TrackCandidateFromL2OIState" )
00955       self.options['modules'].append( "-hltL3TrackCandidateFromL2OIHit" )
00956       self.options['modules'].append( "-hltL3TrackCandidateFromL2IOHit" )
00957       self.options['modules'].append( "-hltL3TrackCandidateFromL2NoVtx" )
00958       self.options['modules'].append( "-hltHcalDigis" )
00959       self.options['modules'].append( "-hltHoreco" )
00960       self.options['modules'].append( "-hltHfreco" )
00961       self.options['modules'].append( "-hltHbhereco" )
00962       self.options['modules'].append( "-hltEcalRegionalRestFEDs" )
00963       self.options['modules'].append( "-hltEcalRegionalESRestFEDs" )
00964       self.options['modules'].append( "-hltEcalRawToRecHitFacility" )
00965       self.options['modules'].append( "-hltESRawToRecHitFacility" )
00966       self.options['modules'].append( "-hltEcalRegionalJetsRecHit" )
00967       self.options['modules'].append( "-hltEcalRegionalMuonsRecHit" )
00968       self.options['modules'].append( "-hltEcalRegionalEgammaRecHit" )
00969       self.options['modules'].append( "-hltEcalRecHitAll" )
00970       self.options['modules'].append( "-hltESRecHitAll" )
00971       # === hltPF
00972       self.options['modules'].append( "-hltPFJetCkfTrackCandidates" )
00973       self.options['modules'].append( "-hltPFJetCtfWithMaterialTracks" )
00974       self.options['modules'].append( "-hltPFlowTrackSelectionHighPurity" )
00975       # === hltFastJet
00976       self.options['modules'].append( "-hltDisplacedHT250L1FastJetRegionalPixelSeedGenerator" )
00977       self.options['modules'].append( "-hltDisplacedHT250L1FastJetRegionalCkfTrackCandidates" )
00978       self.options['modules'].append( "-hltDisplacedHT250L1FastJetRegionalCtfWithMaterialTracks" )     
00979       self.options['modules'].append( "-hltDisplacedHT300L1FastJetRegionalPixelSeedGenerator" )
00980       self.options['modules'].append( "-hltDisplacedHT300L1FastJetRegionalCkfTrackCandidates" )
00981       self.options['modules'].append( "-hltDisplacedHT300L1FastJetRegionalCtfWithMaterialTracks" )     
00982       self.options['modules'].append( "-hltBLifetimeRegionalPixelSeedGeneratorbbPhiL1FastJet" )
00983       self.options['modules'].append( "-hltBLifetimeRegionalCkfTrackCandidatesbbPhiL1FastJet" )
00984       self.options['modules'].append( "-hltBLifetimeRegionalCtfWithMaterialTracksbbPhiL1FastJet" )     
00985       self.options['modules'].append( "-hltBLifetimeRegionalPixelSeedGeneratorHbbVBF" )
00986       self.options['modules'].append( "-hltBLifetimeRegionalCkfTrackCandidatesHbbVBF" )
00987       self.options['modules'].append( "-hltBLifetimeRegionalCtfWithMaterialTracksHbbVBF" )
00988       self.options['modules'].append( "-hltBLifetimeBTagIP3D1stTrkRegionalPixelSeedGeneratorJet20HbbL1FastJet" )
00989       self.options['modules'].append( "-hltBLifetimeBTagIP3D1stTrkRegionalCkfTrackCandidatesJet20HbbL1FastJet" )
00990       self.options['modules'].append( "-hltBLifetimeBTagIP3D1stTrkRegionalCtfWithMaterialTracksJet20HbbL1FastJet" )
00991       self.options['modules'].append( "-hltBLifetimeDiBTagIP3D1stTrkRegionalPixelSeedGeneratorJet20HbbL1FastJet" )
00992       self.options['modules'].append( "-hltBLifetimeDiBTagIP3D1stTrkRegionalCkfTrackCandidatesJet20HbbL1FastJet" )
00993       self.options['modules'].append( "-hltBLifetimeDiBTagIP3D1stTrkRegionalCtfWithMaterialTracksJet20HbbL1FastJet" )
00994       # === hltBLifetimeRegional
00995       self.options['modules'].append( "-hltBLifetimeRegionalPixelSeedGeneratorHbb" )
00996       self.options['modules'].append( "-hltBLifetimeRegionalCkfTrackCandidatesHbb" )
00997       self.options['modules'].append( "-hltBLifetimeRegionalCtfWithMaterialTracksHbb" )
00998       self.options['modules'].append( "-hltBLifetimeRegionalPixelSeedGeneratorbbPhi" )
00999       self.options['modules'].append( "-hltBLifetimeRegionalCkfTrackCandidatesbbPhi" )
01000       self.options['modules'].append( "-hltBLifetimeRegionalCtfWithMaterialTracksbbPhi" )
01001       self.options['modules'].append( "-hltBLifetimeBTagIP3D1stTrkRegionalPixelSeedGeneratorJet20Hbb" )
01002       self.options['modules'].append( "-hltBLifetimeBTagIP3D1stTrkRegionalCkfTrackCandidatesJet20Hbb" )
01003       self.options['modules'].append( "-hltBLifetimeBTagIP3D1stTrkRegionalCtfWithMaterialTracksJet20Hbb" )
01004       self.options['modules'].append( "-hltBLifetimeDiBTagIP3D1stTrkRegionalPixelSeedGeneratorJet20Hbb" )
01005       self.options['modules'].append( "-hltBLifetimeDiBTagIP3D1stTrkRegionalCkfTrackCandidatesJet20Hbb" )
01006       self.options['modules'].append( "-hltBLifetimeDiBTagIP3D1stTrkRegionalCtfWithMaterialTracksJet20Hbb" )
01007       self.options['modules'].append( "-hltBLifetimeFastRegionalPixelSeedGeneratorHbbVBF" )
01008       self.options['modules'].append( "-hltBLifetimeFastRegionalCkfTrackCandidatesHbbVBF" )
01009       self.options['modules'].append( "-hltBLifetimeFastRegionalCtfWithMaterialTracksHbbVBF" )
01010       self.options['modules'].append( "-hltBLifetimeRegionalPixelSeedGeneratorbbPhiL1FastJetFastPV" )
01011       self.options['modules'].append( "-hltBLifetimeRegionalCkfTrackCandidatesbbPhiL1FastJetFastPV" )
01012       self.options['modules'].append( "-hltBLifetimeRegionalCtfWithMaterialTracksbbPhiL1FastJetFastPV" )
01013       self.options['modules'].append( "-hltFastPixelBLifetimeRegionalPixelSeedGeneratorHbb" )
01014       self.options['modules'].append( "-hltFastPixelBLifetimeRegionalCkfTrackCandidatesHbb" )
01015       self.options['modules'].append( "-hltFastPixelBLifetimeRegionalCtfWithMaterialTracksHbb" )
01016      
01017       self.options['modules'].append( "-hltPixelTracksForMinBias" )
01018       self.options['modules'].append( "-hltPixelTracksForHighMult" )
01019       self.options['modules'].append( "-hltRegionalPixelTracks" )
01020       self.options['modules'].append( "-hltPixelTracksReg" )
01021       self.options['modules'].append( "-hltIter4Merged" )
01022       self.options['modules'].append( "-hltFastPixelHitsVertex" )
01023       self.options['modules'].append( "-hltFastPixelTracks")
01024       self.options['modules'].append( "-hltFastPixelTracksRecover")
01025       
01026       self.options['modules'].append( "-hltFastPrimaryVertexbbPhi")
01027       self.options['modules'].append( "-hltPixelTracksFastPVbbPhi")
01028       self.options['modules'].append( "-hltPixelTracksRecoverbbPhi" )
01029       self.options['modules'].append( "-hltFastPixelHitsVertexVHbb" )
01030       self.options['modules'].append( "-hltFastPixelTracksVHbb" )
01031       self.options['modules'].append( "-hltFastPixelTracksRecoverVHbb" )
01032 
01033       self.options['modules'].append( "-hltFastPrimaryVertex")
01034       self.options['modules'].append( "-hltFastPVPixelTracks")
01035       self.options['modules'].append( "-hltFastPVPixelTracksRecover" )
01036 
01037       self.options['modules'].append( "-hltIter4Tau3MuMerged" )
01038       self.options['modules'].append( "hltPixelMatchElectronsActivity" )
01039 
01040       self.options['modules'].append( "-hltMuonCSCDigis" )
01041       self.options['modules'].append( "-hltMuonDTDigis" )
01042       self.options['modules'].append( "-hltMuonRPCDigis" )
01043       self.options['modules'].append( "-hltGtDigis" )
01044       self.options['modules'].append( "-hltL1GtTrigReport" )
01045       self.options['modules'].append( "hltCsc2DRecHits" )
01046       self.options['modules'].append( "hltDt1DRecHits" )
01047       self.options['modules'].append( "hltRpcRecHits" )
01048       self.options['modules'].append( "-hltScalersRawToDigi" )
01049 
01050       self.options['sequences'].append( "-HLTL1SeededEgammaRegionalRecoTrackerSequence" )
01051       self.options['sequences'].append( "-HLTEcalActivityEgammaRegionalRecoTrackerSequence" )
01052       self.options['sequences'].append( "-HLTPixelMatchElectronActivityTrackingSequence" )
01053       self.options['sequences'].append( "-HLTDoLocalStripSequence" )
01054       self.options['sequences'].append( "-HLTDoLocalPixelSequence" )
01055       self.options['sequences'].append( "-HLTDoLocalPixelSequenceRegL2Tau" )
01056       self.options['sequences'].append( "-hltSiPixelDigis" )
01057       self.options['sequences'].append( "-hltSiPixelClusters" )
01058       self.options['sequences'].append( "-hltSiPixelRecHits" )
01059       self.options['sequences'].append( "-HLTRecopixelvertexingSequence" )
01060       self.options['sequences'].append( "-HLTEndSequence" )
01061       self.options['sequences'].append( "-HLTBeginSequence" )
01062       self.options['sequences'].append( "-HLTBeginSequenceNZS" )
01063       self.options['sequences'].append( "-HLTBeginSequenceBPTX" )
01064       self.options['sequences'].append( "-HLTBeginSequenceAntiBPTX" )
01065       self.options['sequences'].append( "-HLTHBHENoiseSequence" )
01066       self.options['sequences'].append( "-HLTIterativeTracking" )
01067       self.options['sequences'].append( "-HLTIterativeTrackingTau3Mu" )
01068       self.options['sequences'].append( "-HLTRegionalCKFTracksForL3Isolation" )
01069       self.options['sequences'].append( "-HLTHBHENoiseCleanerSequence" )
01070 
01071       # remove HLTAnalyzerEndpath from fastsim cff's
01072       if self.config.fragment:
01073         self.options['paths'].append( "-HLTAnalyzerEndpath" )
01074 

def confdb::buildPathList (   self)

Definition at line 775 of file confdb.py.

00776                          :
00777     self.all_paths = self.getPathList()
00778 
00779     if self.config.paths:
00780       # no path list was requested, dump the full table, minus unsupported / unwanted paths
00781       paths = self.config.paths.split(',')
00782     else:
00783       # dump only the requested paths, plus the eventual output endpaths
00784       paths = []
00785 
00786     if self.config.fragment or self.config.output in ('none', 'full'):
00787       # 'full' removes all outputs (same as 'none') and then adds a single "keep *" output (see the overrideOutput method)
00788       if self.config.paths:
00789         # paths are removed by default
00790         pass    
00791       else:
00792         # drop all output endpaths
00793         paths.append( "-*Output" )
00794     elif self.config.output == 'minimal':
00795       # drop all output endpaths but HLTDQMResultsOutput
00796       if self.config.paths:
00797         paths.append( "HLTDQMResultsOutput" )
00798       else:
00799         paths.append( "-*Output" )
00800         paths.append( "HLTDQMResultsOutput" )
00801     else:
00802       # keep / add back all output endpaths
00803       if self.config.paths:
00804         paths.append( "*Output" )
00805       else:
00806         pass    # paths are kepy by default
00807 
00808     # drop paths unsupported by fastsim
00809     if self.config.fastsim:
00810       paths.extend( "-%s" % path for path in self.fastsimUnsupportedPaths )
00811 
00812     # drop unwanted paths for profiling (and timing studies)
00813     if self.config.profiling:
00814       paths.append( "-HLTriggerFirstPath" )
00815       paths.append( "-HLTAnalyzerEndpath" )
00816 
00817     # this should never be in any dump (nor online menu)
00818     paths.append( "-OfflineOutput" )
00819 
00820     # expand all wildcards
00821     paths = self.expandWildcards(paths, self.all_paths)
00822 
00823     if self.config.paths:
00824       # do an "additive" consolidation
00825       self.options['paths'] = self.consolidatePositiveList(paths)
00826       if not self.options['paths']:
00827         raise RuntimeError('Error: option "--paths %s" does not select any valid paths' % self.config.paths)
00828     else:
00829       # do a "subtractive" consolidation
00830       self.options['paths'] = self.consolidateNegativeList(paths)
00831 

def confdb::dumppaths (   paths)

Definition at line 769 of file confdb.py.

00770                       :
00771     sys.stderr.write('Path selection:\n')
00772     for path in paths:
00773       sys.stderr.write('\t%s\n' % path)
00774     sys.stderr.write('\n\n')

def confdb::fixForFastSim (   self)

Definition at line 366 of file confdb.py.

00367                          :
00368     if self.config.fastsim:
00369       # adapt the hle configuration (fragment) to run under fastsim
00370       self.data = re.sub( r'import FWCore.ParameterSet.Config as cms', r'\g<0>\nfrom FastSimulation.HighLevelTrigger.HLTSetup_cff import *', self.data)
00371 
00372       # remove the definition of streams and datasets
00373       self.data = re.compile( r'^streams.*\n(.*\n)*?^\)\s*\n',  re.MULTILINE ).sub( '', self.data )
00374       self.data = re.compile( r'^datasets.*\n(.*\n)*?^\)\s*\n', re.MULTILINE ).sub( '', self.data )
00375 
00376       # fix the definition of module
00377       # FIXME: this should be updated to take into accout the --l1-emulator option
00378       self._fix_parameter(                               type = 'InputTag', value = 'hltL1extraParticles',  replace = 'l1extraParticles')
00379       self._fix_parameter(name = 'GMTReadoutCollection', type = 'InputTag', value = 'hltGtDigis',           replace = 'gmtDigis')
00380       self._fix_parameter(                               type = 'InputTag', value = 'hltGtDigis',           replace = 'gtDigis')
00381       self._fix_parameter(                               type = 'InputTag', value = 'hltL1GtObjectMap',     replace = 'gtDigis')
00382       self._fix_parameter(name = 'initialSeeds',         type = 'InputTag', value = 'noSeedsHere',          replace = 'globalPixelSeeds:GlobalPixel')
00383       self._fix_parameter(name = 'preFilteredSeeds',     type = 'bool',     value = 'True',                 replace = 'False')
00384       self._fix_parameter(                               type = 'InputTag', value = 'hltOfflineBeamSpot',   replace = 'offlineBeamSpot')
00385       self._fix_parameter(                               type = 'InputTag', value = 'hltOnlineBeamSpot',    replace = 'offlineBeamSpot')
00386       self._fix_parameter(                               type = 'InputTag', value = 'hltMuonCSCDigis',      replace = 'simMuonCSCDigis')
00387       self._fix_parameter(                               type = 'InputTag', value = 'hltMuonDTDigis',       replace = 'simMuonDTDigis')
00388       self._fix_parameter(                               type = 'InputTag', value = 'hltMuonRPCDigis',      replace = 'simMuonRPCDigis')
00389       self._fix_parameter(                               type = 'InputTag', value = 'hltRegionalTracksForL3MuonIsolation', replace = 'hltPixelTracks')
00390       self._fix_parameter(name = 'src',                  type = 'InputTag', value = 'hltHcalTowerNoiseCleaner', replace = 'hltTowerMakerForAll')
00391       self._fix_parameter(name = 'src',                  type = 'InputTag', value = 'hltIter4Tau3MuMerged', replace = 'hltIter4Merged')
00392 
00393       # fix the definition of sequences and paths
00394       self.data = re.sub( r'hltMuonCSCDigis', r'cms.SequencePlaceholder( "simMuonCSCDigis" )',  self.data )
00395       self.data = re.sub( r'hltMuonDTDigis',  r'cms.SequencePlaceholder( "simMuonDTDigis" )',   self.data )
00396       self.data = re.sub( r'hltMuonRPCDigis', r'cms.SequencePlaceholder( "simMuonRPCDigis" )',  self.data )
00397       self.data = re.sub( r'HLTEndSequence',  r'cms.SequencePlaceholder( "HLTEndSequence" )',   self.data )
00398       self.data = re.sub( r'hltGtDigis',      r'HLTBeginSequence',                              self.data )
00399 

def confdb::fixForMC (   self)

Definition at line 355 of file confdb.py.

00356                     :
00357     if not self.config.data:
00358       # customise the HLT menu for running on MC
00359       if not self.config.fragment:
00360         self.data += """
00361 # customise the HLT menu for running on MC
00362 from HLTrigger.Configuration.customizeHLTforMC import customizeHLTforMC
00363 process = customizeHLTforMC(process)
00364 """
00365 

def confdb::fixPrescales (   self)

Definition at line 400 of file confdb.py.

00401                         :
00402     # update the PrescaleService to match the new list of paths
00403     if self.options['paths']:
00404       if self.options['paths'][0][0] == '-':
00405         # drop requested paths
00406         for minuspath in self.options['paths']:
00407           path = minuspath[1:]
00408           self.data = re.sub(r'      cms.PSet\(  pathName = cms.string\( "%s" \),\n        prescales = cms.vuint32\( .* \)\n      \),?\n' % path, '', self.data)
00409       else:
00410         # keep requested paths
00411         for path in self.all_paths:
00412           if path not in self.options['paths']:
00413             self.data = re.sub(r'      cms.PSet\(  pathName = cms.string\( "%s" \),\n        prescales = cms.vuint32\( .* \)\n      \),?\n' % path, '', self.data)
00414 
00415     if self.config.unprescale:
00416       self.data += """
00417 # remove the HLT prescales
00418 if 'PrescaleService' in %(dict)s:
00419     %(process)sPrescaleService.lvl1DefaultLabel = cms.string( '0' )
00420     %(process)sPrescaleService.lvl1Labels       = cms.vstring( '0', '1', '2', '3', '4', '5', '6', '7', '8', '9' )
00421     %(process)sPrescaleService.prescaleTable    = cms.VPSet( )
00422 """
00423 

def confdb::instrumentErrorEventType (   self)

Definition at line 438 of file confdb.py.

00439                                     :
00440     if self.config.errortype:
00441       # change all HLTTriggerTypeFilter EDFilters to accept only error events (SelectedTriggerType = 0)
00442       self._fix_parameter(name = 'SelectedTriggerType', type ='int32', value = '1', replace = '0')
00443       self._fix_parameter(name = 'SelectedTriggerType', type ='int32', value = '2', replace = '0')
00444       self._fix_parameter(name = 'SelectedTriggerType', type ='int32', value = '3', replace = '0')
00445 

def confdb::instrumentOpenMode (   self)

Definition at line 424 of file confdb.py.

00425                               :
00426     if self.config.open:
00427       # find all EDfilters
00428       filters = [ match[1] for match in re.findall(r'(process\.)?\b(\w+) = cms.EDFilter', self.data) ]
00429       re_sequence = re.compile( r'cms\.(Path|Sequence)\((.*)\)' )
00430       # remove existing 'cms.ingore' and '~' modifiers
00431       self.data = re_sequence.sub( lambda line: re.sub( r'cms\.ignore *\( *((process\.)?\b(\w+)) *\)', r'\1', line.group(0) ), self.data )
00432       self.data = re_sequence.sub( lambda line: re.sub( r'~', '', line.group(0) ), self.data )
00433       # wrap all EDfilters with "cms.ignore( ... )", 1000 at a time (python 2.6 complains for too-big regular expressions)
00434       for some in splitter(filters, 1000):
00435         re_filters  = re.compile( r'\b((process\.)?(' + r'|'.join(some) + r'))\b' )
00436         self.data = re_sequence.sub( lambda line: re_filters.sub( r'cms.ignore( \1 )', line.group(0) ), self.data )
00437 

def confdb::instrumentTiming (   self)

Definition at line 692 of file confdb.py.

00693                             :
00694     if self.config.profiling:
00695       # instrument the menu for profiling: remove the HLTAnalyzerEndpath, add/override the HLTriggerFirstPath, with hltGetRaw and hltGetConditions
00696       text = ''
00697 
00698       if not 'hltGetRaw' in self.data:
00699         # add hltGetRaw
00700         text += """
00701 %(process)shltGetRaw = cms.EDAnalyzer( "HLTGetRaw",
00702     RawDataCollection = cms.InputTag( "rawDataCollector" )
00703 )
00704 """
00705 
00706       if not 'hltGetConditions' in self.data:
00707         # add hltGetConditions
00708         text += """
00709 %(process)shltGetConditions = cms.EDAnalyzer( 'EventSetupRecordDataGetter',
00710     verbose = cms.untracked.bool( False ),
00711     toGet = cms.VPSet( )
00712 )
00713 """
00714 
00715       if not 'hltBoolFalse' in self.data:
00716         # add hltBoolFalse
00717         text += """
00718 %(process)shltBoolFalse = cms.EDFilter( "HLTBool",
00719     result = cms.bool( False )
00720 )
00721 """
00722 
00723       # add the definition of HLTriggerFirstPath
00724       # FIXME in a cff, should also update the HLTSchedule
00725       text += """
00726 %(process)sHLTriggerFirstPath = cms.Path( %(process)shltGetRaw + %(process)shltGetConditions + %(process)shltBoolFalse )
00727 """
00728       self.data = re.sub(r'.*cms\.(End)?Path.*', text + r'\g<0>', self.data, 1)
00729 
00730       # load additional conditions needed by hltGetConditions
00731       self.loadAdditionalConditions('add XML geometry to keep hltGetConditions happy',
00732         {
00733           'record'  : 'GeometryFileRcd',
00734           'tag'     : 'XMLFILE_Geometry_311YV1_Ideal_mc',
00735           'label'   : 'Ideal',
00736           'connect' : '%(connect)s/CMS_COND_34X_GEOMETRY'
00737         }, {
00738           'record'  : 'GeometryFileRcd',
00739           'tag'     : 'XMLFILE_Geometry_311YV1_Extended_mc',
00740           'label'   : 'Extended',
00741           'connect' : '%(connect)s/CMS_COND_34X_GEOMETRY'
00742         }
00743       )
00744 
00745     # instrument the menu with the Service, EDProducer and EndPath needed for timing studies
00746     # FIXME in a cff, should also update the HLTSchedule
00747     if self.config.timing:
00748       self.data += """
00749 # instrument the menu with the modules and EndPath needed for timing studies
00750 %(process)sPathTimerService = cms.Service( "PathTimerService",
00751 )
00752 %(process)shltTimer = cms.EDProducer( "PathTimerInserter",
00753 )
00754 %(process)shltOutputTiming = cms.OutputModule( "PoolOutputModule",
00755     fileName = cms.untracked.string( "outputTiming.root" ),
00756     fastCloning = cms.untracked.bool( False ),
00757     splitLevel = cms.untracked.int32( 0 ),
00758     dataset = cms.untracked.PSet(
00759         dataTier = cms.untracked.string( 'RECO' ),
00760         filterName = cms.untracked.string( '' )
00761     ),
00762     outputCommands = cms.untracked.vstring( 'drop *',
00763       'keep HLTPerformanceInfo_*_*_*' )
00764 )
00765 
00766 %(process)sTimingOutput = cms.EndPath( %(process)shltTimer + %(process)shltOutputTiming )
00767 """

def confdb::loadAdditionalConditions (   self,
  comment,
  conditions 
)

Definition at line 666 of file confdb.py.

00667                                                           :
00668     # load additional conditions
00669     self.data += """
00670 # %s
00671 if 'GlobalTag' in %%(dict)s:
00672 """ % comment
00673     for condition in conditions:
00674       self.data += """    %%(process)sGlobalTag.toGet.append(
00675         cms.PSet(
00676             record  = cms.string( '%(record)s' ),
00677             tag     = cms.string( '%(tag)s' ),
00678             label   = cms.untracked.string( '%(label)s' ),
00679             connect = cms.untracked.string( '%(connect)s' )
00680         )
00681     )
00682 """ % condition
00683 

def confdb::overrideGlobalTag (   self)

Definition at line 446 of file confdb.py.

00447                              :
00448     # overwrite GlobalTag
00449     # the logic is:
00450     #   - always set the correct connection string and pfnPrefix
00451     #   - if a GlobalTag is specified on the command line:
00452     #      - override the global tag
00453     #      - if the GT is "auto:...", insert the code to read it from Configuration.AlCa.autoCond
00454     #   - if a GlobalTag is NOT  specified on the command line:
00455     #      - when running on data, do nothing, and keep the global tag in the menu
00456     #      - when running on mc, take the GT from the configuration.type
00457 
00458     # override the GlobalTag connection string and pfnPrefix
00459     text = """
00460 # override the GlobalTag, connection string and pfnPrefix
00461 if 'GlobalTag' in %%(dict)s:
00462     %%(process)sGlobalTag.connect   = '%%(connect)s/CMS_COND_31X_GLOBALTAG'
00463     %%(process)sGlobalTag.pfnPrefix = cms.untracked.string('%%(connect)s/')
00464 """
00465 
00466     # when running on MC, override the global tag even if not specified on the command line
00467     if not self.config.data and not self.config.globaltag:
00468       if self.config.type in globalTag:
00469         self.config.globaltag = globalTag[self.config.type]
00470       else:
00471         self.config.globaltag = globalTag['GRun']
00472 
00473     text += "    from Configuration.AlCa.GlobalTag import GlobalTag as customiseGlobalTag\n"
00474 
00475     # if requested, override the L1 menu from the GlobalTag (using the same connect as the GlobalTag itself)
00476     if self.config.l1.override:
00477       self.config.l1.record = 'L1GtTriggerMenuRcd'
00478       self.config.l1.label  = ''
00479       self.config.l1.tag    = self.config.l1.override
00480       if not self.config.l1.connect:
00481         self.config.l1.connect = '%(connect)s/CMS_COND_31X_L1T'
00482       self.config.l1cond = "'%(tag)s,%(record)s,%(connect)s'" % self.config.l1.__dict__
00483     else:
00484       self.config.l1cond = "None"
00485 
00486     text += "    %%(process)sGlobalTag = customiseGlobalTag(%%(process)sGlobalTag,'%(globaltag)s',%(l1cond)s)\n"
00487 
00488     self.data += text % self.config.__dict__

def confdb::overrideL1MenuXml (   self)

Definition at line 489 of file confdb.py.

00490                              :
00491     # if requested, override the L1 menu from the GlobalTag (Xml file)
00492     if self.config.l1Xml.XmlFile:
00493       text = """
00494 # override the L1 menu from an Xml file
00495 %%(process)sl1GtTriggerMenuXml = cms.ESProducer("L1GtTriggerMenuXmlProducer",
00496   TriggerMenuLuminosity = cms.string('%(LumiDir)s'),
00497   DefXmlFile = cms.string('%(XmlFile)s'),
00498   VmeXmlFile = cms.string('')
00499 )
00500 %%(process)sL1GtTriggerMenuRcdSource = cms.ESSource("EmptyESSource",
00501   recordName = cms.string('L1GtTriggerMenuRcd'),
00502   iovIsRunNotTime = cms.bool(True),
00503   firstValid = cms.vuint32(1)
00504 )
00505 %%(process)ses_prefer_l1GtParameters = cms.ESPrefer('L1GtTriggerMenuXmlProducer','l1GtTriggerMenuXml') 
00506 """
00507       self.data += text % self.config.l1Xml.__dict__

def confdb::overrideOutput (   self)

Definition at line 587 of file confdb.py.

00588                           :
00589     # override the "online" ShmStreamConsumer output modules with "offline" PoolOutputModule's
00590     self.data = re.sub(
00591       r'\b(process\.)?hltOutput(\w+) *= *cms\.OutputModule\( *"ShmStreamConsumer" *,',
00592       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    ),',
00593       self.data
00594     )
00595 
00596     if not self.config.fragment and self.config.output == 'full':
00597       # add a single "keep *" output
00598       self.data += """
00599 # add a single "keep *" output
00600 %(process)shltOutputFULL = cms.OutputModule( "PoolOutputModule",
00601     fileName = cms.untracked.string( "outputFULL.root" ),
00602     fastCloning = cms.untracked.bool( False ),
00603     dataset = cms.untracked.PSet(
00604         dataTier = cms.untracked.string( 'RECO' ),
00605         filterName = cms.untracked.string( '' )
00606     ),
00607     outputCommands = cms.untracked.vstring( 'keep *' )
00608 )
00609 %(process)sFULLOutput = cms.EndPath( %(process)shltOutputFULL )
00610 """
00611 

def confdb::overrideParameters (   self,
  module,
  parameters 
)

Definition at line 684 of file confdb.py.

00685                                                   :
00686     # override a module's parameter if the module is present in the configuration
00687     self.data += "if '%s' in %%(dict)s:\n" % module
00688     for (parameter, value) in parameters:
00689       self.data += "    %%(process)s%s.%s = %s\n" % (module, parameter, value)
00690     self.data += "\n"
00691 

def confdb::overrideProcessName (   self)

Definition at line 613 of file confdb.py.

00614                                :
00615     if self.config.name is None:
00616       return
00617 
00618 # the following was stolen and adapted from HLTrigger.Configuration.customL1THLT_Options
00619     self.data += """
00620 # override the process name
00621 %%(process)ssetName_('%(name)s')
00622 
00623 # adapt HLT modules to the correct process name
00624 if 'hltTrigReport' in %%(dict)s:
00625     %%(process)shltTrigReport.HLTriggerResults                    = cms.InputTag( 'TriggerResults', '', '%(name)s' )
00626 
00627 if 'hltPreExpressCosmicsOutputSmart' in %%(dict)s:
00628     %%(process)shltPreExpressCosmicsOutputSmart.TriggerResultsTag = cms.InputTag( 'TriggerResults', '', '%(name)s' )
00629 
00630 if 'hltPreExpressOutputSmart' in %%(dict)s:
00631     %%(process)shltPreExpressOutputSmart.TriggerResultsTag        = cms.InputTag( 'TriggerResults', '', '%(name)s' )
00632 
00633 if 'hltPreDQMForHIOutputSmart' in %%(dict)s:
00634     %%(process)shltPreDQMForHIOutputSmart.TriggerResultsTag       = cms.InputTag( 'TriggerResults', '', '%(name)s' )
00635 
00636 if 'hltPreDQMForPPOutputSmart' in %%(dict)s:
00637     %%(process)shltPreDQMForPPOutputSmart.TriggerResultsTag       = cms.InputTag( 'TriggerResults', '', '%(name)s' )
00638 
00639 if 'hltPreHLTDQMResultsOutputSmart' in %%(dict)s:
00640     %%(process)shltPreHLTDQMResultsOutputSmart.TriggerResultsTag  = cms.InputTag( 'TriggerResults', '', '%(name)s' )
00641 
00642 if 'hltPreHLTDQMOutputSmart' in %%(dict)s:
00643     %%(process)shltPreHLTDQMOutputSmart.TriggerResultsTag         = cms.InputTag( 'TriggerResults', '', '%(name)s' )
00644 
00645 if 'hltPreHLTMONOutputSmart' in %%(dict)s:
00646     %%(process)shltPreHLTMONOutputSmart.TriggerResultsTag         = cms.InputTag( 'TriggerResults', '', '%(name)s' )
00647 
00648 if 'hltDQMHLTScalers' in %%(dict)s:
00649     %%(process)shltDQMHLTScalers.triggerResults                   = cms.InputTag( 'TriggerResults', '', '%(name)s' )
00650     %%(process)shltDQMHLTScalers.processname                      = '%(name)s'
00651 
00652 if 'hltDQML1SeedLogicScalers' in %%(dict)s:
00653     %%(process)shltDQML1SeedLogicScalers.processname              = '%(name)s'
00654 """ % self.config.__dict__
00655 

def confdb::runL1Emulator (   self)

Definition at line 539 of file confdb.py.

00540                          :
00541     # if requested, run (part of) the L1 emulator
00542     if self.config.emulator:
00543       # FIXME this fragment used "process" explicitly
00544       emulator = {
00545         'RawToDigi': '',
00546         'CustomL1T': '',
00547         'CustomHLT': ''
00548       }
00549 
00550       if self.config.data:
00551         emulator['RawToDigi'] = 'RawToDigi_Data_cff'
00552       else:
00553         emulator['RawToDigi'] = 'RawToDigi_cff'
00554 
00555       if self.config.emulator == 'gt':
00556         emulator['CustomL1T'] = 'customiseL1GtEmulatorFromRaw'
00557         emulator['CustomHLT'] = 'switchToSimGtDigis'
00558       elif self.config.emulator == 'gct,gt':
00559         emulator['CustomL1T'] = 'customiseL1CaloAndGtEmulatorsFromRaw'
00560         emulator['CustomHLT'] = 'switchToSimGctGtDigis'
00561       elif self.config.emulator == 'gmt,gt':
00562         # XXX currently unsupported
00563         emulator['CustomL1T'] = 'customiseL1MuonAndGtEmulatorsFromRaw'
00564         emulator['CustomHLT'] = 'switchToSimGmtGtDigis'
00565       elif self.config.emulator in ('gmt,gct,gt', 'gct,gmt,gt', 'all'):
00566         emulator['CustomL1T'] = 'customiseL1EmulatorFromRaw'
00567         emulator['CustomHLT'] = 'switchToSimGmtGctGtDigis'
00568       else:
00569         # unsupported argument, default to running the whole emulator
00570         emulator['CustomL1T'] = 'customiseL1EmulatorFromRaw'
00571         emulator['CustomHLT'] = 'switchToSimGmtGctGtDigis'
00572 
00573       self.data += """
00574 # customize the L1 emulator to run %(CustomL1T)s with HLT to %(CustomHLT)s
00575 process.load( 'Configuration.StandardSequences.%(RawToDigi)s' )
00576 process.load( 'Configuration.StandardSequences.SimL1Emulator_cff' )
00577 import L1Trigger.Configuration.L1Trigger_custom
00578 process = L1Trigger.Configuration.L1Trigger_custom.%(CustomL1T)s( process )
00579 process = L1Trigger.Configuration.L1Trigger_custom.customiseResetPrescalesAndMasks( process )
00580 
00581 # customize the HLT to use the emulated results
00582 import HLTrigger.Configuration.customizeHLTforL1Emulator
00583 process = HLTrigger.Configuration.customizeHLTforL1Emulator.switchToL1Emulator( process )
00584 process = HLTrigger.Configuration.customizeHLTforL1Emulator.%(CustomHLT)s( process )
00585 """ % emulator
00586 

def confdb::runL1EmulatorGT (   self)

Definition at line 508 of file confdb.py.

00509                            :
00510     # if requested, run (part of) the L1 emulator, then repack the data into a new RAW collection, to be used by the HLT
00511     if not self.config.emulator:
00512       return
00513 
00514     if self.config.emulator != 'gt':
00515       # only the GT emulator is currently supported
00516       return
00517 
00518     # run the L1 GT emulator, then repack the data into a new RAW collection, to be used by the HLT
00519     text = """
00520 # run the L1 GT emulator, then repack the data into a new RAW collection, to be used by the HLT
00521 """
00522     if self.config.fragment:
00523       # FIXME in a cff, should also update the HLTSchedule
00524       text += "import Configuration.StandardSequences.SimL1EmulatorRepack_GT_cff\n"
00525     else:
00526       text += "process.load( 'Configuration.StandardSequences.SimL1EmulatorRepack_GT_cff' )\n"
00527 
00528     if not 'hltBoolFalse' in self.data:
00529       # add hltBoolFalse
00530       text += """
00531 %(process)shltBoolFalse = cms.EDFilter( "HLTBool",
00532     result = cms.bool( False )
00533 )
00534 """
00535     text += "process.L1Emulator = cms.Path( process.SimL1Emulator + process.hltBoolFalse )\n\n"
00536 
00537     self.data = re.sub(r'.*cms\.(End)?Path.*', text + r'\g<0>', self.data, 1)
00538 

def confdb::splitter (   iterator,
  n 
)

Definition at line 10 of file confdb.py.

Referenced by TotemT1Organization::_FromUnitIDToData(), SplittingConfigurableHisto::fill(), HLTLogMonitorFilter::filter(), and SplittingConfigurableHisto::SplittingConfigurableHisto().

00011                          :
00012   i = iterator.__iter__()
00013   while True:
00014     l = list(islice(i, n))
00015     if l:
00016       yield l
00017     else:
00018       break
00019 

def confdb::updateMessageLogger (   self)

Definition at line 656 of file confdb.py.

00657                                :
00658     # request summary informations from the MessageLogger
00659     self.data += """
00660 if 'MessageLogger' in %(dict)s:
00661     %(process)sMessageLogger.categories.append('TriggerSummaryProducerAOD')
00662     %(process)sMessageLogger.categories.append('L1GtTrigReport')
00663     %(process)sMessageLogger.categories.append('HLTrigReport')
00664 """
00665 


Variable Documentation

Definition at line 775 of file confdb.py.

Definition at line 341 of file confdb.py.

Definition at line 1075 of file confdb.py.