CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | Public Member Functions | Public Attributes | Static Public Attributes | Private Attributes
ConfigBuilder.ConfigBuilder Class Reference
Inheritance diagram for ConfigBuilder.ConfigBuilder:

Classes

class  MassSearchReplaceProcessNameVisitor
 
class  PrintAllModules
 print it in the configuration More...
 

Public Member Functions

def __init__
 
def addCommon
 
def addConditions
 
def addCustomise
 
def addExtraStream
 
def addMaxEvents
 
def addOutput
 
def addSource
 
def addStandardSequences
 
def build_production_info
 
def completeInputCommand
 
def define_Configs
 
def doNotInlineEventContent
 
def doNotInlineEventContent
 
def executeAndRemember
 
def expandMapping
 
def filesFromOption
 
def finalizeFastSimHLT
 
def inGeometryKeys
 
def load
 
def loadAndRemember
 
def loadDefaultOrSpecifiedCFF
 
def prepare
 
def prepare_ALCA
 
def prepare_ALCAHARVEST
 
def prepare_ALCAOUTPUT
 
def prepare_ALCAPRODUCER
 
def prepare_CFWRITER
 
def prepare_DATAMIX
 
def prepare_DIGI
 
def prepare_DIGI2RAW
 
def prepare_DIGIPREMIX
 
def prepare_DIGIPREMIX_S2
 
def prepare_DQM
 
def prepare_EI
 
def prepare_ENDJOB
 
def prepare_FILTER
 
def prepare_GEN
 
def prepare_HARVESTING
 
def prepare_HLT
 
def prepare_L1
 
def prepare_L1HwVal
 
def prepare_L1Reco
 
def prepare_L1REPACK
 
def prepare_L1TrackTrigger
 
def prepare_LHE
 
def prepare_PAT
 
def prepare_PATFILTER
 
def prepare_POSTRECO
 
def prepare_RAW2DIGI
 
def prepare_RAW2RECO
 
def prepare_RECO
 put the filtering path in the schedule More...
 
def prepare_RECOBEFMIX
 
def prepare_REPACK
 
def prepare_SIM
 
def prepare_SKIM
 
def prepare_USER
 
def prepare_VALIDATION
 
def profileOptions
 
def renameHLTprocessInSequence
 
def renameInputTagsInSequence
 
def scheduleSequence
 
def scheduleSequenceAtEnd
 

Public Attributes

 ALCADefaultCFF
 
 DIGI2RAWDefaultCFF
 
 DIGIDefaultCFF
 
 DQMSaverCFF
 
 GENDefaultCFF
 
 HLTDefaultCFF
 
 L1EMDefaultCFF
 
 L1MENUDefaultCFF
 
 L1RecoDefaultCFF
 
 L1TrackTriggerDefaultCFF
 
 PATDefaultCFF
 
 RAW2DIGIDefaultCFF
 
 RECODefaultCFF
 
 SIMDefaultCFF
 

Static Public Attributes

 addAlCaSelects = False
 
list afterHLT = self.schedule[self.schedule.index(self.process.HLTSchedule)+1:]
 
tuple alcaConfig = self.loadDefaultOrSpecifiedCFF(sequence,self.ALCADefaultCFF)
 
tuple alcaList = sequence.split("+")
 
tuple alcastream = getattr(alcaConfig,name)
 
list allFcn = []
 
list available = []
 
list beforeHLT = self.schedule[:self.schedule.index(self.process.HLTSchedule)]
 
list cffToBeLoaded = VtxSmeared[self._options.beamspot]
 
tuple com = string.lstrip(com)
 
tuple combined_mapping = copy.deepcopy( autoDQM )
 
tuple command = command.strip()
 drop LHEXMLStringProduct on input to save memory if appropriate More...
 
string CppType = 'PoolOutputModule'
 
tuple custMap = DictTypes.SortedKeysDict()
 
tuple customiseFile = re.sub(r'\.pyc$', '.py', package.__file__)
 
 defaultFileName = self._options.outfile_name
 
tuple defaultFileName = self._options.outfile_name.replace('.root','_in'+theTier+'.root')
 
tuple fileName = opt.split('.')
 
tuple filterConfig = self.load(sequence.split('.')[0])
 load the relevant part More...
 
tuple filterSeq = sequence.split('.')
 
string final_snippet = '\n'
 
list generatorModule = sys.modules[loadFragment]
 
 genModules = generatorModule.__dict__
 
tuple genSeqName = sequence.split('.')
 
tuple harvestingList = list(set(harvestingList))
 
tuple harvestingstream = getattr(harvestingConfig,name)
 
tuple io = open(self._options.io,'w')
 
dictionary ioJson = {}
 
tuple lastStep = getattr(harvestingConfig,"ALCAHARVESTDQMSaveAndMetadataWriter")
 
 loadFailure = True
 
tuple loadFragment = self._options.evt_type.replace('.py','',)
 
string loadFragment = 'Configuration.Generator.'
 
int maxLevel = 0
 
string message = pileupSpec+' is not a know mixing scenario:\n available are: '
 
dictionary mixingDict = {'file':pileupSpec}
 
tuple mixingDict = copy.copy(Mixing[pileupSpec])
 
tuple nl = self.additionalOutputs.keys()
 
tuple outDefDictStr = outDefDict.__str__()
 
tuple outList = eval(self._options.outputDefinition)
 
tuple output
 
list output = self.additionalOutputs[name]
 
tuple outputModule = getattr(self.process,theModuleLabel)
 
string outputModuleCfgCode = ""
 adding standard sequences might change the inputEventContent option and therefore needs to be finalized after More...
 
tuple outputModuleCfgCode = self.addOutput()
 
string outputModuleName = streamType+'output'
 
list package = sys.modules[packageName]
 
tuple packageName = f.replace(".py","")
 
tuple path = getattr(self.process,theModuleLabel+'_step')
 
string pathName = 'dqmoffline_step'
 
list pathNames = ['process.'+p.label_() for p in beforeHLT]
 
tuple pfs = getattr(self.process,self.productionFilterSequence)
 
tuple pileupSpec = self._options.pileup.split(',')
 
tuple rest = opt.split('.')
 
string result = "process.schedule = cms.Schedule("
 
tuple sequence = sequence.split('.')
 
string sequence = 'EIsequence'
 
tuple sequenceList = list(set(sequenceList))
 
tuple shortName = name.replace('ALCARECOStream','')
 
tuple shortname = skim.replace('SKIMStream','')
 
string simGeometry = ''
 
list simGeometry = geoms[0]
 
tuple skimstream = getattr(skimConfig,skim)
 
tuple skimstreamDQM
 
tuple specialization = defineMixing(mixingDict)
 
list stepList = [re.sub(r'^prepare_', '', methodName) for methodName in ConfigBuilder.__dict__ if methodName.startswith('prepare_')]
 
list stepName = stepParts[0]
 add the corresponding input content More...
 
tuple stepParts = step.split(":")
 
list stepSpec = self.stepMap[stepName]
 
tuple streamTypes = self._options.eventcontent.split(',')
 ends the –output options model More...
 
tuple theEventContent = cms.PSet(outputCommands = cms.untracked.vstring('keep *'))
 
tuple theExtraOutputCommands = anyOf(['o','oC','outputCommands'],outDefDict,'')
 
tuple theFileName = self._options.dirout+anyOf(['fn','fileName'],outDefDict,defaultFileName)
 
 theFileName = self._options.outfile_name
 
tuple theFilterName = anyOf(['f','ftN','filterName'],outDefDict,'')
 
string theFilterName = 'StreamALCACombined'
 
 theFilterName = self._options.filtername
 
tuple theModuleLabel = anyOf(['l','mL','moduleLabel'],outDefDict,'')
 
 theModuleLabel = name
 
tuple theObject = getattr(generatorModule,name)
 
tuple theSelectEvent = anyOf(['s','sE','selectEvents'],outDefDict,'')
 
tuple theStreamType = anyOf(['e','ec','eventContent','streamType'],outDefDict,theTier)
 event content More...
 
tuple theTier = anyOf(['t','tier','dataTier'],outDefDict)
 
tuple tiers = self._options.datatier.split(',')
 
tuple tmpOut = cms.EndPath(output)
 
list tryNames
 

Private Attributes

 _options
 

Detailed Description

The main building routines 

Definition at line 190 of file ConfigBuilder.py.

Constructor & Destructor Documentation

def ConfigBuilder.ConfigBuilder.__init__ (   self,
  options,
  process = None,
  with_output = False,
  with_input = False 
)
options taken from old cmsDriver and optparse 

Definition at line 193 of file ConfigBuilder.py.

194  def __init__(self, options, process = None, with_output = False, with_input = False ):
195  """options taken from old cmsDriver and optparse """
196 
197  options.outfile_name = options.dirout+options.fileout
199  self._options = options
200 
201  if self._options.isData and options.isMC:
202  raise Exception("ERROR: You may specify only --data or --mc, not both")
203  #if not self._options.conditions:
204  # raise Exception("ERROR: No conditions given!\nPlease specify conditions. E.g. via --conditions=IDEAL_30X::All")

Member Function Documentation

def ConfigBuilder.ConfigBuilder.addCommon (   self)

Definition at line 338 of file ConfigBuilder.py.

References ConfigBuilder.ConfigBuilder.profileOptions().

339  def addCommon(self):
340  if 'HARVESTING' in self.stepMap.keys() or 'ALCAHARVEST' in self.stepMap.keys():
341  self.process.options = cms.untracked.PSet( Rethrow = cms.untracked.vstring('ProductNotFound'),fileMode = cms.untracked.string('FULLMERGE'))
342  else:
343  self.process.options = cms.untracked.PSet( )
344 
345  if self._options.runUnscheduled:
346  self.process.options.allowUnscheduled=cms.untracked.bool(True)
347 
348  self.addedObjects.append(("","options"))
349 
350  if self._options.lazy_download:
351  self.process.AdaptorConfig = cms.Service("AdaptorConfig",
352  stats = cms.untracked.bool(True),
353  enable = cms.untracked.bool(True),
354  cacheHint = cms.untracked.string("lazy-download"),
355  readHint = cms.untracked.string("read-ahead-buffered")
356  )
357  self.addedObjects.append(("Setup lazy download","AdaptorConfig"))
358 
359  #self.process.cmsDriverCommand = cms.untracked.PSet( command=cms.untracked.string('cmsDriver.py '+self._options.arguments) )
360  #self.addedObjects.append(("what cmsDriver command was used","cmsDriverCommand"))
361 
362  if self._options.profile:
363  (start, interval, eventFormat, jobFormat)=self.profileOptions()
364  self.process.IgProfService = cms.Service("IgProfService",
365  reportFirstEvent = cms.untracked.int32(start),
366  reportEventInterval = cms.untracked.int32(interval),
367  reportToFileAtPostEvent = cms.untracked.string("| gzip -c > %s"%(eventFormat)),
368  reportToFileAtPostEndJob = cms.untracked.string("| gzip -c > %s"%(jobFormat)))
369  self.addedObjects.append(("Setup IGProf Service for profiling","IgProfService"))
def ConfigBuilder.ConfigBuilder.addConditions (   self)
Add conditions to the process

Definition at line 791 of file ConfigBuilder.py.

Referenced by ConfigBuilder.ConfigBuilder.prepare().

792  def addConditions(self):
"""Add conditions to the process"""
def ConfigBuilder.ConfigBuilder.addCustomise (   self,
  unsch = 0 
)
Include the customise code 

Definition at line 809 of file ConfigBuilder.py.

810  def addCustomise(self,unsch=0):
811  """Include the customise code """
def ConfigBuilder.ConfigBuilder.addExtraStream (   self,
  name,
  stream,
  workflow = 'full' 
)

Definition at line 1120 of file ConfigBuilder.py.

References ConfigBuilder.ConfigBuilder.doNotInlineEventContent(), CMSTestAnalyzer.CMSTestAnalyzer.process(), edm::ProductLabels.process, Printer.Printer.process(), DTTTrigProd.DTTTrigProd.process, SimpleTreeAnalyzer.SimpleTreeAnalyzer.process(), HcalHitRelabeller.process(), Histogrammer.Histogrammer.process(), helper::NullPostProcessor< reco::CandidateCollection, edm::EDFilter >.process(), helper::NullPostProcessor< typename::helper::SelectedOutputCollectionTrait< reco::TrackCollection >::type, EdmFilter >.process(), NullPostProcessor< OutputCollection, EdmFilter >.process(), DTDqm.DTDqm.process, DTDQMMerge.DTDQMMerge.process, NullPostProcessor< OutputCollection, edm::EDFilter >.process(), EDFilter<>.process(), NullPostProcessor< reco::CandidateCollection >.process(), NullPostProcessor< OutputCollection >.process(), EDProducer<>.process(), DTValidSummary.DTValidSummary.process, SimpleJetAnalyzer.SimpleJetAnalyzer.process(), helper::NullPostProcessor< OutputCollection, EdmFilter >.process(), SimpleTreeProducer.SimpleTreeProducer.process(), DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.process, DTAnalysisResiduals.DTAnalysisResiduals.process, tfwliteselectortest::ThingsWorker.process(), DTDQMHarvesting.DTDQMHarvesting.process, DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.process, DTNoiseCalibration.DTNoiseCalibration.process, DTResidualCalibration.DTResidualCalibration.process, clangcms::CatchAll.process(), DTDQMValidation.DTDQMValidation.process, core.Analyzer.Analyzer.process(), DTTTrigValid.DTTTrigValid.process, EcalFenixTcpsFgvbEB.process(), gen.LHEAnalyzer.LHEAnalyzer.process(), CSCTFDTReceiver.process(), EcalFenixBypassLin.process(), EcalFenixPeakFinder.process(), MetTreeProducer.MetTreeProducer.process(), tfwliteselectortest::ThingsTSelector.process(), EcalFenixMaxof2.process(), CSCTFMonitorInterface.process(), CSCMonitorInterface.process(), TTULogic.process(), examples::TrackAnalysisAlgorithm.process(), RBCLogic.process(), TTUWedgeORLogic.process(), EcalFenixEtStrip.process(), RBCPatternLogic.process(), TTUSectorORLogic.process(), PFPileUpAlgo.process(), EcalFenixTcpFormat.process(), npstat::AbsVisitor< Input, unsigned long >.process(), __class__Worker.process(), HcalCableMapper.process(), npstat::AbsVisitor< Input, Result >.process(), EcalFenixAmplitudeFilter.process(), DTT0DBValidation.DTT0DBValidation.process, EcalFenixStripFormatEE.process(), npstat::AbsArrayProjector< Input, Result >.process(), BTagDifferentialPlot.process(), DTVDriftMeanTimerWriter.DTVDriftMeanTimerWriter.process, EcalFenixStripFormatEB.process(), DTVDriftSegmentWriter.DTVDriftSegmentWriter.process, TTUPointingLogic.process(), MetAnalyzer.MetAnalyzer.process(), RBCTestLogic.process(), EcalFenixEtTot.process(), core.TriggerBitFilter.TriggerBitFilter.process(), TTUTwoORLogic.process(), DTTTrigResidualCorr.DTTTrigResidualCorr.process, ora::IRelationalMapping.process(), core.TriggerMatchAnalyzer.TriggerMatchAnalyzer.process(), EcalFenixStripFgvbEE.process(), gen.LHEWeightAnalyzer.LHEWeightAnalyzer.process(), EcalFenixTcpFgvbEE.process(), RBCChamberORLogic.process(), TTUTrackingAlg.process(), DTTTrigCorrFirst.DTTTrigCorrFirst.process, gen.HiggsDecayModeAnalyzer.HiggsDecayModeAnalyzer.process(), EcalFenixFgvbEB.process(), HcalSimpleReconstructor.process(), L1GctNullJetFinder.process(), edm::ConsumesInfo.process(), L1GctEmLeafCard.process(), SiStripClusterToDigiProducer.process(), L1GctSimpleJetFinder.process(), TriggerAnalyzer.TriggerAnalyzer.process(), EcalFenixLinearizer.process(), L1GctHardwareJetFinder.process(), edm::InputTag.process(), RPCWheel.process(), gen.GenHeavyFlavourAnalyzer.GenHeavyFlavourAnalyzer.process(), DTTTrigTimeBoxesWriter.DTTTrigTimeBoxesWriter.process, L1GctJetFinalStage.process(), L1GctProcessor.process(), TTUConfigurator.process(), gen.PDFWeightsAnalyzer.PDFWeightsAnalyzer.process(), L1GctGlobalHfSumAlgos.process(), PFMETBenchmark.process(), npstat::VisitCounter< Input >.process(), L1GctElectronFinalSort.process(), PFJetBenchmark.process(), core.EventSelector.EventSelector.process(), PFTauElecRejectionBenchmark.process(), ora::PrimitiveMapping.process(), EgammaHLTPixelMatchElectronAlgo.process(), ZMuMuRochCorAnalyzer.ZMuMuRochCorAnalyzer.process(), L1Comparator.process(), L1GctWheelEnergyFpga.process(), L1GctWheelJetFpga.process(), core.SkimAnalyzerCount.SkimAnalyzerCount.process(), core.JSONAnalyzer.JSONAnalyzer.process(), analyzer.Analyzer.process(), AlphaTAnalyzer.AlphaTAnalyzer.process(), cscdqm::HWStandbyType.process, ora::BlobMapping.process(), L1GctElectronSorter.process(), L1GctGlobalEnergyAlgos.process(), JetAnalyzer.JetAnalyzer.process(), core.TriggerBitAnalyzer.TriggerBitAnalyzer.process(), L1GctTdrJetFinder.process(), fwlite::internal::DataKey.process(), TFWLiteSelectorBasic.process(), KDTreeLinkerBase.process(), L1GctJetLeafCard.process(), DTTFFEDReader.process(), L1GlobalCaloTrigger.process(), TFWLiteSelector< ThingsWorker >.process(), TFWLiteSelector< __class__Worker >.process(), TFWLiteSelector< TrackAnalysisAlgorithm >.process(), TFWLiteSelector< TWorker >.process(), ora::OraReferenceMapping.process(), EcalFenixTcp.process(), SeedClusterRemover.process(), TestOutliers.process, HLTTrackClusterRemoverNew.process(), DiLeptonAnalyzer.DiLeptonAnalyzer.process(), HTTP.RequestManager.process(), HITrackClusterRemover.process(), GenLumiInfoProduct::ProcessInfo.process(), ora::UniqueReferenceMapping.process(), objects.VertexAnalyzer.VertexAnalyzer.process(), core.PileUpAnalyzer.PileUpAnalyzer.process(), EcalFenixStrip.process(), ora::OraPtrMapping.process(), objects.JetAnalyzer.JetAnalyzer.process(), lhef::LHERunInfo::Process.process(), ora::NamedRefMapping.process(), CaloTowersCreationAlgo.process(), objects.TauAnalyzer.TauAnalyzer.process(), ora::ArrayMapping.process(), core.AutoFillTreeProducer.AutoFillTreeProducer.process(), EgammaHLTValidationUtils.EgammaDQMModuleMaker.process, ora::CArrayMapping.process(), L1GctJetFinderBase.process(), ora::ObjectMapping.process(), ora::EmptyMapping.process(), Config.Process.process, looper.Looper.process(), gen.GeneratorAnalyzer.GeneratorAnalyzer.process(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.process(), edm::SubProcess.process(), objects.PhotonAnalyzer.PhotonAnalyzer.process(), edm::ProductHolderIndexHelper::Item.process(), objects.LeptonAnalyzer.LeptonAnalyzer.process(), and Config.SubProcess.process().

1121  def addExtraStream(self,name,stream,workflow='full'):
1122  # define output module and go from there
1123  output = cms.OutputModule("PoolOutputModule")
1124  if stream.selectEvents.parameters_().__len__()!=0:
1125  output.SelectEvents = stream.selectEvents
1126  else:
1127  output.SelectEvents = cms.untracked.PSet()
1128  output.SelectEvents.SelectEvents=cms.vstring()
1129  if isinstance(stream.paths,tuple):
1130  for path in stream.paths:
1131  output.SelectEvents.SelectEvents.append(path.label())
1132  else:
1133  output.SelectEvents.SelectEvents.append(stream.paths.label())
1134 
1135 
1136 
1137  if isinstance(stream.content,str):
1138  evtPset=getattr(self.process,stream.content)
1139  for p in evtPset.parameters_():
1140  setattr(output,p,getattr(evtPset,p))
1141  if not self._options.inlineEventContent:
1142  def doNotInlineEventContent(instance,label = "process."+stream.content+".outputCommands"):
1143  return label
1144  output.outputCommands.__dict__["dumpPython"] = doNotInlineEventContent
1145  else:
1146  output.outputCommands = stream.content
1147 
1148 
1149  output.fileName = cms.untracked.string(self._options.dirout+stream.name+'.root')
1150 
1151  output.dataset = cms.untracked.PSet( dataTier = stream.dataTier,
1152  filterName = cms.untracked.string(stream.name))
1153 
1154  if self._options.filtername:
1155  output.dataset.filterName= cms.untracked.string(self._options.filtername+"_"+stream.name)
1156 
1157  #add an automatic flushing to limit memory consumption
1158  output.eventAutoFlushCompressedSize=cms.untracked.int32(5*1024*1024)
1159 
1160  if workflow in ("producers,full"):
1161  if isinstance(stream.paths,tuple):
1162  for path in stream.paths:
1163  self.schedule.append(path)
1164  else:
1165  self.schedule.append(stream.paths)
1166 
1167 
1168  # in case of relvals we don't want to have additional outputs
1169  if (not self._options.relval) and workflow in ("full","output"):
1170  self.additionalOutputs[name] = output
1171  setattr(self.process,name,output)
1172 
1173  if workflow == 'output':
1174  # adjust the select events to the proper trigger results from previous process
1175  filterList = output.SelectEvents.SelectEvents
1176  for i, filter in enumerate(filterList):
1177  filterList[i] = filter+":"+self._options.triggerResultsProcess
1178 
1179  return output
def ConfigBuilder.ConfigBuilder.addMaxEvents (   self)
Here we decide how many evts will be processed

Definition at line 370 of file ConfigBuilder.py.

Referenced by ConfigBuilder.ConfigBuilder.prepare().

371  def addMaxEvents(self):
372  """Here we decide how many evts will be processed"""
self.process.maxEvents=cms.untracked.PSet(input=cms.untracked.int32(int(self._options.number)))
def ConfigBuilder.ConfigBuilder.addOutput (   self)
Add output module to the process 

Definition at line 495 of file ConfigBuilder.py.

496  def addOutput(self):
""" Add output module to the process """
def ConfigBuilder.ConfigBuilder.addSource (   self)
Here the source is built. Priority: file, generator

Definition at line 377 of file ConfigBuilder.py.

Referenced by ConfigBuilder.ConfigBuilder.prepare().

378  def addSource(self):
379  """Here the source is built. Priority: file, generator"""
380  self.addedObjects.append(("Input source","source"))
def ConfigBuilder.ConfigBuilder.addStandardSequences (   self)
Add selected standard sequences to the process

Definition at line 667 of file ConfigBuilder.py.

Referenced by ConfigBuilder.ConfigBuilder.prepare().

668  def addStandardSequences(self):
669  """
670  Add selected standard sequences to the process
671  """
# load the pile up file
def ConfigBuilder.ConfigBuilder.build_production_info (   self,
  evt_type,
  evtnumber 
)
Add useful info for the production. 

Definition at line 2039 of file ConfigBuilder.py.

2040  def build_production_info(self, evt_type, evtnumber):
2041  """ Add useful info for the production. """
2042  self.process.configurationMetadata=cms.untracked.PSet\
2043  (version=cms.untracked.string("$Revision: 1.19 $"),
2044  name=cms.untracked.string("Applications"),
2045  annotation=cms.untracked.string(evt_type+ " nevts:"+str(evtnumber))
2046  )
2047 
2048  self.addedObjects.append(("Production Info","configurationMetadata"))
2049 
def ConfigBuilder.ConfigBuilder.completeInputCommand (   self)

Definition at line 760 of file ConfigBuilder.py.

References CMSTestAnalyzer.CMSTestAnalyzer.process(), edm::ProductLabels.process, Printer.Printer.process(), DTTTrigProd.DTTTrigProd.process, SimpleTreeAnalyzer.SimpleTreeAnalyzer.process(), HcalHitRelabeller.process(), Histogrammer.Histogrammer.process(), helper::NullPostProcessor< reco::CandidateCollection, edm::EDFilter >.process(), helper::NullPostProcessor< typename::helper::SelectedOutputCollectionTrait< reco::TrackCollection >::type, EdmFilter >.process(), DTDqm.DTDqm.process, DTDQMMerge.DTDQMMerge.process, NullPostProcessor< reco::CandidateCollection >.process(), NullPostProcessor< OutputCollection, edm::EDFilter >.process(), EDFilter<>.process(), EDProducer<>.process(), NullPostProcessor< OutputCollection >.process(), NullPostProcessor< OutputCollection, EdmFilter >.process(), DTValidSummary.DTValidSummary.process, SimpleJetAnalyzer.SimpleJetAnalyzer.process(), helper::NullPostProcessor< OutputCollection, EdmFilter >.process(), SimpleTreeProducer.SimpleTreeProducer.process(), DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.process, DTAnalysisResiduals.DTAnalysisResiduals.process, tfwliteselectortest::ThingsWorker.process(), DTDQMHarvesting.DTDQMHarvesting.process, DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.process, DTNoiseCalibration.DTNoiseCalibration.process, DTResidualCalibration.DTResidualCalibration.process, clangcms::CatchAll.process(), DTDQMValidation.DTDQMValidation.process, core.Analyzer.Analyzer.process(), DTTTrigValid.DTTTrigValid.process, EcalFenixTcpsFgvbEB.process(), gen.LHEAnalyzer.LHEAnalyzer.process(), CSCTFDTReceiver.process(), EcalFenixBypassLin.process(), EcalFenixPeakFinder.process(), MetTreeProducer.MetTreeProducer.process(), tfwliteselectortest::ThingsTSelector.process(), EcalFenixMaxof2.process(), CSCTFMonitorInterface.process(), CSCMonitorInterface.process(), TTULogic.process(), examples::TrackAnalysisAlgorithm.process(), RBCLogic.process(), TTUWedgeORLogic.process(), EcalFenixEtStrip.process(), RBCPatternLogic.process(), TTUSectorORLogic.process(), PFPileUpAlgo.process(), EcalFenixTcpFormat.process(), npstat::AbsVisitor< Input, unsigned long >.process(), __class__Worker.process(), HcalCableMapper.process(), npstat::AbsVisitor< Input, Result >.process(), EcalFenixAmplitudeFilter.process(), DTT0DBValidation.DTT0DBValidation.process, EcalFenixStripFormatEE.process(), npstat::AbsArrayProjector< Input, Result >.process(), BTagDifferentialPlot.process(), DTVDriftMeanTimerWriter.DTVDriftMeanTimerWriter.process, EcalFenixStripFormatEB.process(), DTVDriftSegmentWriter.DTVDriftSegmentWriter.process, TTUPointingLogic.process(), MetAnalyzer.MetAnalyzer.process(), RBCTestLogic.process(), EcalFenixEtTot.process(), core.TriggerBitFilter.TriggerBitFilter.process(), TTUTwoORLogic.process(), DTTTrigResidualCorr.DTTTrigResidualCorr.process, ora::IRelationalMapping.process(), core.TriggerMatchAnalyzer.TriggerMatchAnalyzer.process(), EcalFenixStripFgvbEE.process(), gen.LHEWeightAnalyzer.LHEWeightAnalyzer.process(), EcalFenixTcpFgvbEE.process(), RBCChamberORLogic.process(), TTUTrackingAlg.process(), DTTTrigCorrFirst.DTTTrigCorrFirst.process, gen.HiggsDecayModeAnalyzer.HiggsDecayModeAnalyzer.process(), EcalFenixFgvbEB.process(), HcalSimpleReconstructor.process(), L1GctNullJetFinder.process(), edm::ConsumesInfo.process(), L1GctEmLeafCard.process(), SiStripClusterToDigiProducer.process(), L1GctSimpleJetFinder.process(), TriggerAnalyzer.TriggerAnalyzer.process(), EcalFenixLinearizer.process(), L1GctHardwareJetFinder.process(), edm::InputTag.process(), RPCWheel.process(), gen.GenHeavyFlavourAnalyzer.GenHeavyFlavourAnalyzer.process(), DTTTrigTimeBoxesWriter.DTTTrigTimeBoxesWriter.process, L1GctJetFinalStage.process(), L1GctProcessor.process(), TTUConfigurator.process(), gen.PDFWeightsAnalyzer.PDFWeightsAnalyzer.process(), L1GctGlobalHfSumAlgos.process(), PFMETBenchmark.process(), npstat::VisitCounter< Input >.process(), L1GctElectronFinalSort.process(), PFJetBenchmark.process(), core.EventSelector.EventSelector.process(), PFTauElecRejectionBenchmark.process(), ora::PrimitiveMapping.process(), EgammaHLTPixelMatchElectronAlgo.process(), ZMuMuRochCorAnalyzer.ZMuMuRochCorAnalyzer.process(), L1Comparator.process(), L1GctWheelEnergyFpga.process(), L1GctWheelJetFpga.process(), core.SkimAnalyzerCount.SkimAnalyzerCount.process(), core.JSONAnalyzer.JSONAnalyzer.process(), analyzer.Analyzer.process(), AlphaTAnalyzer.AlphaTAnalyzer.process(), cscdqm::HWStandbyType.process, ora::BlobMapping.process(), L1GctElectronSorter.process(), L1GctGlobalEnergyAlgos.process(), JetAnalyzer.JetAnalyzer.process(), core.TriggerBitAnalyzer.TriggerBitAnalyzer.process(), L1GctTdrJetFinder.process(), fwlite::internal::DataKey.process(), TFWLiteSelectorBasic.process(), KDTreeLinkerBase.process(), L1GctJetLeafCard.process(), DTTFFEDReader.process(), L1GlobalCaloTrigger.process(), TFWLiteSelector< ThingsWorker >.process(), TFWLiteSelector< __class__Worker >.process(), TFWLiteSelector< TrackAnalysisAlgorithm >.process(), TFWLiteSelector< TWorker >.process(), ora::OraReferenceMapping.process(), EcalFenixTcp.process(), SeedClusterRemover.process(), TestOutliers.process, HLTTrackClusterRemoverNew.process(), DiLeptonAnalyzer.DiLeptonAnalyzer.process(), HTTP.RequestManager.process(), HITrackClusterRemover.process(), GenLumiInfoProduct::ProcessInfo.process(), ora::UniqueReferenceMapping.process(), objects.VertexAnalyzer.VertexAnalyzer.process(), core.PileUpAnalyzer.PileUpAnalyzer.process(), EcalFenixStrip.process(), ora::OraPtrMapping.process(), objects.JetAnalyzer.JetAnalyzer.process(), lhef::LHERunInfo::Process.process(), ora::NamedRefMapping.process(), CaloTowersCreationAlgo.process(), objects.TauAnalyzer.TauAnalyzer.process(), ora::ArrayMapping.process(), core.AutoFillTreeProducer.AutoFillTreeProducer.process(), EgammaHLTValidationUtils.EgammaDQMModuleMaker.process, ora::CArrayMapping.process(), L1GctJetFinderBase.process(), ora::ObjectMapping.process(), ora::EmptyMapping.process(), Config.Process.process, looper.Looper.process(), gen.GeneratorAnalyzer.GeneratorAnalyzer.process(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.process(), edm::SubProcess.process(), objects.PhotonAnalyzer.PhotonAnalyzer.process(), edm::ProductHolderIndexHelper::Item.process(), objects.LeptonAnalyzer.LeptonAnalyzer.process(), and Config.SubProcess.process().

Referenced by ConfigBuilder.ConfigBuilder.prepare().

761  def completeInputCommand(self):
762  if self._options.inputEventContent:
763  import copy
764  def dropSecondDropStar(iec):
765  #drop occurence of 'drop *' in the list
766  count=0
767  for item in iec:
768  if item=='drop *':
769  if count!=0:
770  iec.remove(item)
771  count+=1
772 
773 
774  ## allow comma separated input eventcontent
775  if not hasattr(self.process.source,'inputCommands'): self.process.source.inputCommands=cms.untracked.vstring()
776  for evct in self._options.inputEventContent.split(','):
777  if evct=='': continue
778  theEventContent = getattr(self.process, evct+"EventContent")
779  if hasattr(theEventContent,'outputCommands'):
780  self.process.source.inputCommands.extend(copy.copy(theEventContent.outputCommands))
781  if hasattr(theEventContent,'inputCommands'):
782  self.process.source.inputCommands.extend(copy.copy(theEventContent.inputCommands))
783 
784  dropSecondDropStar(self.process.source.inputCommands)
785 
786  if not self._options.dropDescendant:
787  self.process.source.dropDescendantsOfDroppedBranches = cms.untracked.bool(False)
788 
789 
790  return
def ConfigBuilder.ConfigBuilder.define_Configs (   self)

Definition at line 895 of file ConfigBuilder.py.

References ConfigBuilder.ConfigBuilder.loadAndRemember().

896  def define_Configs(self):
897  if len(self.stepMap):
898  self.loadAndRemember('Configuration/StandardSequences/Services_cff')
899  if self._options.particleTable not in defaultOptions.particleTableList:
900  print 'Invalid particle table provided. Options are:'
901  print defaultOptions.particleTable
902  sys.exit(-1)
903  else:
904  if len(self.stepMap):
905  self.loadAndRemember('SimGeneral.HepPDTESSource.'+self._options.particleTable+'_cfi')
906 
907  self.loadAndRemember('FWCore/MessageService/MessageLogger_cfi')
909  self.ALCADefaultCFF="Configuration/StandardSequences/AlCaRecoStreams_cff"
910  self.GENDefaultCFF="Configuration/StandardSequences/Generator_cff"
911  self.SIMDefaultCFF="Configuration/StandardSequences/Sim_cff"
912  self.DIGIDefaultCFF="Configuration/StandardSequences/Digi_cff"
913  self.DIGI2RAWDefaultCFF="Configuration/StandardSequences/DigiToRaw_cff"
914  self.L1EMDefaultCFF='Configuration/StandardSequences/SimL1Emulator_cff'
915  self.L1MENUDefaultCFF="Configuration/StandardSequences/L1TriggerDefaultMenu_cff"
916  self.HLTDefaultCFF="Configuration/StandardSequences/HLTtable_cff"
917  self.RAW2DIGIDefaultCFF="Configuration/StandardSequences/RawToDigi_Data_cff"
918  self.L1RecoDefaultCFF="Configuration/StandardSequences/L1Reco_cff"
919  self.L1TrackTriggerDefaultCFF="Configuration/StandardSequences/L1TrackTrigger_cff"
920  self.RECODefaultCFF="Configuration/StandardSequences/Reconstruction_Data_cff"
self.PATDefaultCFF="Configuration/StandardSequences/PAT_cff"
def ConfigBuilder.ConfigBuilder.doNotInlineEventContent (   instance,
  label = "cms.untracked.vstring(process."+theStreamType+"EventContent.outputCommands)" 
)

Definition at line 587 of file ConfigBuilder.py.

References ConfigBuilder.ConfigBuilder.executeAndRemember(), CMSTestAnalyzer.CMSTestAnalyzer.process(), edm::ProductLabels.process, Printer.Printer.process(), DTTTrigProd.DTTTrigProd.process, SimpleTreeAnalyzer.SimpleTreeAnalyzer.process(), HcalHitRelabeller.process(), Histogrammer.Histogrammer.process(), helper::NullPostProcessor< reco::CandidateCollection, edm::EDFilter >.process(), helper::NullPostProcessor< typename::helper::SelectedOutputCollectionTrait< reco::TrackCollection >::type, EdmFilter >.process(), NullPostProcessor< OutputCollection, EdmFilter >.process(), DTDqm.DTDqm.process, DTDQMMerge.DTDQMMerge.process, NullPostProcessor< OutputCollection, edm::EDFilter >.process(), EDFilter<>.process(), NullPostProcessor< reco::CandidateCollection >.process(), NullPostProcessor< OutputCollection >.process(), EDProducer<>.process(), DTValidSummary.DTValidSummary.process, SimpleJetAnalyzer.SimpleJetAnalyzer.process(), helper::NullPostProcessor< OutputCollection, EdmFilter >.process(), SimpleTreeProducer.SimpleTreeProducer.process(), DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.process, DTAnalysisResiduals.DTAnalysisResiduals.process, tfwliteselectortest::ThingsWorker.process(), DTDQMHarvesting.DTDQMHarvesting.process, DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.process, DTNoiseCalibration.DTNoiseCalibration.process, DTResidualCalibration.DTResidualCalibration.process, clangcms::CatchAll.process(), DTDQMValidation.DTDQMValidation.process, core.Analyzer.Analyzer.process(), DTTTrigValid.DTTTrigValid.process, EcalFenixTcpsFgvbEB.process(), gen.LHEAnalyzer.LHEAnalyzer.process(), CSCTFDTReceiver.process(), EcalFenixBypassLin.process(), EcalFenixPeakFinder.process(), MetTreeProducer.MetTreeProducer.process(), tfwliteselectortest::ThingsTSelector.process(), EcalFenixMaxof2.process(), CSCTFMonitorInterface.process(), CSCMonitorInterface.process(), TTULogic.process(), examples::TrackAnalysisAlgorithm.process(), RBCLogic.process(), TTUWedgeORLogic.process(), EcalFenixEtStrip.process(), RBCPatternLogic.process(), TTUSectorORLogic.process(), PFPileUpAlgo.process(), EcalFenixTcpFormat.process(), npstat::AbsVisitor< Input, unsigned long >.process(), __class__Worker.process(), HcalCableMapper.process(), npstat::AbsVisitor< Input, Result >.process(), EcalFenixAmplitudeFilter.process(), DTT0DBValidation.DTT0DBValidation.process, EcalFenixStripFormatEE.process(), npstat::AbsArrayProjector< Input, Result >.process(), BTagDifferentialPlot.process(), DTVDriftMeanTimerWriter.DTVDriftMeanTimerWriter.process, EcalFenixStripFormatEB.process(), DTVDriftSegmentWriter.DTVDriftSegmentWriter.process, TTUPointingLogic.process(), MetAnalyzer.MetAnalyzer.process(), RBCTestLogic.process(), EcalFenixEtTot.process(), core.TriggerBitFilter.TriggerBitFilter.process(), TTUTwoORLogic.process(), DTTTrigResidualCorr.DTTTrigResidualCorr.process, ora::IRelationalMapping.process(), core.TriggerMatchAnalyzer.TriggerMatchAnalyzer.process(), EcalFenixStripFgvbEE.process(), gen.LHEWeightAnalyzer.LHEWeightAnalyzer.process(), EcalFenixTcpFgvbEE.process(), RBCChamberORLogic.process(), TTUTrackingAlg.process(), DTTTrigCorrFirst.DTTTrigCorrFirst.process, gen.HiggsDecayModeAnalyzer.HiggsDecayModeAnalyzer.process(), EcalFenixFgvbEB.process(), HcalSimpleReconstructor.process(), L1GctNullJetFinder.process(), edm::ConsumesInfo.process(), L1GctEmLeafCard.process(), SiStripClusterToDigiProducer.process(), L1GctSimpleJetFinder.process(), TriggerAnalyzer.TriggerAnalyzer.process(), EcalFenixLinearizer.process(), L1GctHardwareJetFinder.process(), edm::InputTag.process(), RPCWheel.process(), gen.GenHeavyFlavourAnalyzer.GenHeavyFlavourAnalyzer.process(), DTTTrigTimeBoxesWriter.DTTTrigTimeBoxesWriter.process, L1GctJetFinalStage.process(), L1GctProcessor.process(), TTUConfigurator.process(), gen.PDFWeightsAnalyzer.PDFWeightsAnalyzer.process(), L1GctGlobalHfSumAlgos.process(), PFMETBenchmark.process(), npstat::VisitCounter< Input >.process(), L1GctElectronFinalSort.process(), PFJetBenchmark.process(), core.EventSelector.EventSelector.process(), PFTauElecRejectionBenchmark.process(), ora::PrimitiveMapping.process(), EgammaHLTPixelMatchElectronAlgo.process(), ZMuMuRochCorAnalyzer.ZMuMuRochCorAnalyzer.process(), L1Comparator.process(), L1GctWheelEnergyFpga.process(), L1GctWheelJetFpga.process(), core.SkimAnalyzerCount.SkimAnalyzerCount.process(), core.JSONAnalyzer.JSONAnalyzer.process(), analyzer.Analyzer.process(), AlphaTAnalyzer.AlphaTAnalyzer.process(), cscdqm::HWStandbyType.process, ora::BlobMapping.process(), L1GctElectronSorter.process(), L1GctGlobalEnergyAlgos.process(), JetAnalyzer.JetAnalyzer.process(), core.TriggerBitAnalyzer.TriggerBitAnalyzer.process(), L1GctTdrJetFinder.process(), fwlite::internal::DataKey.process(), TFWLiteSelectorBasic.process(), KDTreeLinkerBase.process(), L1GctJetLeafCard.process(), DTTFFEDReader.process(), L1GlobalCaloTrigger.process(), TFWLiteSelector< ThingsWorker >.process(), TFWLiteSelector< __class__Worker >.process(), TFWLiteSelector< TrackAnalysisAlgorithm >.process(), TFWLiteSelector< TWorker >.process(), ora::OraReferenceMapping.process(), EcalFenixTcp.process(), SeedClusterRemover.process(), TestOutliers.process, HLTTrackClusterRemoverNew.process(), DiLeptonAnalyzer.DiLeptonAnalyzer.process(), HTTP.RequestManager.process(), HITrackClusterRemover.process(), GenLumiInfoProduct::ProcessInfo.process(), ora::UniqueReferenceMapping.process(), objects.VertexAnalyzer.VertexAnalyzer.process(), core.PileUpAnalyzer.PileUpAnalyzer.process(), EcalFenixStrip.process(), ora::OraPtrMapping.process(), objects.JetAnalyzer.JetAnalyzer.process(), lhef::LHERunInfo::Process.process(), ora::NamedRefMapping.process(), CaloTowersCreationAlgo.process(), objects.TauAnalyzer.TauAnalyzer.process(), ora::ArrayMapping.process(), core.AutoFillTreeProducer.AutoFillTreeProducer.process(), EgammaHLTValidationUtils.EgammaDQMModuleMaker.process, ora::CArrayMapping.process(), L1GctJetFinderBase.process(), ora::ObjectMapping.process(), ora::EmptyMapping.process(), Config.Process.process, looper.Looper.process(), gen.GeneratorAnalyzer.GeneratorAnalyzer.process(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.process(), edm::SubProcess.process(), objects.PhotonAnalyzer.PhotonAnalyzer.process(), edm::ProductHolderIndexHelper::Item.process(), objects.LeptonAnalyzer.LeptonAnalyzer.process(), and Config.SubProcess.process().

Referenced by ConfigBuilder.ConfigBuilder.addExtraStream(), and ConfigBuilder.ConfigBuilder.doNotInlineEventContent().

588  def doNotInlineEventContent(instance,label = "cms.untracked.vstring(process."+theStreamType+"EventContent.outputCommands)"):
return label
def ConfigBuilder.ConfigBuilder.doNotInlineEventContent (   instance,
  label = "process."+streamType+"EventContent.outputCommands" 
)

Definition at line 659 of file ConfigBuilder.py.

References ConfigBuilder.ConfigBuilder.doNotInlineEventContent().

660  def doNotInlineEventContent(instance,label = "process."+streamType+"EventContent.outputCommands"):
return label
def ConfigBuilder.ConfigBuilder.executeAndRemember (   self,
  command 
)
helper routine to remember replace statements

Definition at line 329 of file ConfigBuilder.py.

Referenced by ConfigBuilder.ConfigBuilder.doNotInlineEventContent(), ConfigBuilder.ConfigBuilder.prepare_ALCAHARVEST(), ConfigBuilder.ConfigBuilder.prepare_DATAMIX(), ConfigBuilder.ConfigBuilder.prepare_DIGI(), ConfigBuilder.ConfigBuilder.prepare_DIGI2RAW(), ConfigBuilder.ConfigBuilder.prepare_DIGIPREMIX(), ConfigBuilder.ConfigBuilder.prepare_HLT(), and ConfigBuilder.ConfigBuilder.prepare_VALIDATION().

330  def executeAndRemember(self, command):
331  """helper routine to remember replace statements"""
332  self.additionalCommands.append(command)
333  if not command.strip().startswith("#"):
334  # substitute: process.foo = process.bar -> self.process.foo = self.process.bar
335  import re
336  exec(re.sub(r"([^a-zA-Z_0-9]|^)(process)([^a-zA-Z_0-9])",r"\1self.process\3",command))
337  #exec(command.replace("process.","self.process."))
def ConfigBuilder.ConfigBuilder.expandMapping (   self,
  seqList,
  mapping,
  index = None 
)

Definition at line 1898 of file ConfigBuilder.py.

Referenced by ConfigBuilder.ConfigBuilder.prepare_ALCAHARVEST(), ConfigBuilder.ConfigBuilder.prepare_DQM(), ConfigBuilder.ConfigBuilder.prepare_SKIM(), and ConfigBuilder.ConfigBuilder.prepare_VALIDATION().

1899  def expandMapping(self,seqList,mapping,index=None):
1900  maxLevel=20
1901  level=0
1902  while '@' in repr(seqList) and level<maxLevel:
1903  level+=1
1904  for specifiedCommand in seqList:
1905  if specifiedCommand.startswith('@'):
1906  location=specifiedCommand[1:]
1907  if not location in mapping:
1908  raise Exception("Impossible to map "+location+" from "+repr(mapping))
1909  mappedTo=mapping[location]
1910  if index!=None:
1911  mappedTo=mappedTo[index]
1912  seqList.remove(specifiedCommand)
1913  seqList.extend(mappedTo.split('+'))
1914  break;
1915  if level==maxLevel:
1916  raise Exception("Could not fully expand "+repr(seqList)+" from "+repr(mapping))
def ConfigBuilder.ConfigBuilder.filesFromOption (   self)

Definition at line 381 of file ConfigBuilder.py.

References ConfigBuilder.filesFromDASQuery(), and ConfigBuilder.filesFromList().

382  def filesFromOption(self):
383  for entry in self._options.filein.split(','):
384  print "entry",entry
385  if entry.startswith("filelist:"):
386  filesFromList(entry[9:],self.process.source)
387  elif entry.startswith("dbs:") or entry.startswith("das:"):
388  filesFromDASQuery('file dataset = %s'%(entry[4:]),self._options.dasoption,self.process.source)
389  else:
390  self.process.source.fileNames.append(self._options.dirin+entry)
391  if self._options.secondfilein:
392  if not hasattr(self.process.source,"secondaryFileNames"):
393  raise Exception("--secondfilein not compatible with "+self._options.filetype+"input type")
394  for entry in self._options.secondfilein.split(','):
395  print "entry",entry
396  if entry.startswith("filelist:"):
397  self.process.source.secondaryFileNames.extend((filesFromList(entry[9:]))[0])
398  elif entry.startswith("dbs:") or entry.startswith("das:"):
399  self.process.source.secondaryFileNames.extend((filesFromDASQuery('file dataset = %s'%(entry[4:]),self._options.dasoption))[0])
400  else:
401  self.process.source.secondaryFileNames.append(self._options.dirin+entry)
402 
403  if self._options.filein or self._options.dasquery:
404  if self._options.filetype == "EDM":
405  self.process.source=cms.Source("PoolSource",
406  fileNames = cms.untracked.vstring(),
407  secondaryFileNames= cms.untracked.vstring())
408  filesFromOption(self)
409  elif self._options.filetype == "DAT":
410  self.process.source=cms.Source("NewEventStreamFileReader",fileNames = cms.untracked.vstring())
411  filesFromOption(self)
412  elif self._options.filetype == "LHE":
413  self.process.source=cms.Source("LHESource", fileNames = cms.untracked.vstring())
414  if self._options.filein.startswith("lhe:"):
415  #list the article directory automatically
416  args=self._options.filein.split(':')
417  article=args[1]
418  print 'LHE input from article ',article
419  location='/store/lhe/'
420  import os
421  textOfFiles=os.popen('cmsLHEtoEOSManager.py -l '+article)
422  for line in textOfFiles:
423  for fileName in [x for x in line.split() if '.lhe' in x]:
424  self.process.source.fileNames.append(location+article+'/'+fileName)
425  if len(args)>2:
426  self.process.source.skipEvents = cms.untracked.uint32(int(args[2]))
427  else:
428  filesFromOption(self)
429 
430 
431  elif self._options.filetype == "DQM":
432  self.process.source=cms.Source("DQMRootSource",
433  fileNames = cms.untracked.vstring())
434  filesFromOption(self)
435 
436  elif self._options.filetype == "DQMDAQ":
437  # FIXME: how to configure it if there are no input files specified?
438  self.process.source=cms.Source("DQMStreamerReader")
439 
440 
441  if ('HARVESTING' in self.stepMap.keys() or 'ALCAHARVEST' in self.stepMap.keys()) and (not self._options.filetype == "DQM"):
442  self.process.source.processingMode = cms.untracked.string("RunsAndLumis")
def ConfigBuilder.ConfigBuilder.finalizeFastSimHLT (   self)

Definition at line 2034 of file ConfigBuilder.py.

2035  def finalizeFastSimHLT(self):
2036  self.process.reconstruction = cms.Path(self.process.reconstructionWithFamos)
2037  self.schedule.append(self.process.reconstruction)
2038 
def ConfigBuilder.ConfigBuilder.inGeometryKeys (   opt)

Definition at line 1052 of file ConfigBuilder.py.

References split.

1053  def inGeometryKeys(opt):
1054  from Configuration.StandardSequences.GeometryConf import GeometryConf
1055  if opt in GeometryConf:
1056  return GeometryConf[opt]
1057  else:
1058  return opt
def ConfigBuilder.ConfigBuilder.load (   self,
  includeFile 
)

Definition at line 311 of file ConfigBuilder.py.

Referenced by MatrixToProcess.MatrixToProcess.getProcess(), and MatrixToProcess.MatrixToProcess.listAll().

312  def load(self,includeFile):
313  includeFile = includeFile.replace('/','.')
314  self.process.load(includeFile)
315  return sys.modules[includeFile]
def ConfigBuilder.ConfigBuilder.loadAndRemember (   self,
  includeFile,
  unsch = 0 
)
helper routine to load am memorize imports

Definition at line 316 of file ConfigBuilder.py.

Referenced by ConfigBuilder.ConfigBuilder.define_Configs(), ConfigBuilder.ConfigBuilder.loadDefaultOrSpecifiedCFF(), ConfigBuilder.ConfigBuilder.prepare(), ConfigBuilder.ConfigBuilder.prepare_ALCAHARVEST(), ConfigBuilder.ConfigBuilder.prepare_CFWRITER(), ConfigBuilder.ConfigBuilder.prepare_DATAMIX(), ConfigBuilder.ConfigBuilder.prepare_DIGI(), ConfigBuilder.ConfigBuilder.prepare_DIGIPREMIX(), ConfigBuilder.ConfigBuilder.prepare_HLT(), ConfigBuilder.ConfigBuilder.prepare_L1(), ConfigBuilder.ConfigBuilder.prepare_PATFILTER(), and ConfigBuilder.ConfigBuilder.prepare_POSTRECO().

317  def loadAndRemember(self, includeFile,unsch=0):
318  """helper routine to load am memorize imports"""
319  # we could make the imports a on-the-fly data method of the process instance itself
320  # not sure if the latter is a good idea
includeFile = includeFile.replace('/','.')
def ConfigBuilder.ConfigBuilder.loadDefaultOrSpecifiedCFF (   self,
  sequence,
  defaultCFF,
  unsch = 0 
)

Definition at line 1185 of file ConfigBuilder.py.

References ConfigBuilder.ConfigBuilder.loadAndRemember().

Referenced by ConfigBuilder.ConfigBuilder.prepare_DIGI(), ConfigBuilder.ConfigBuilder.prepare_DIGI2RAW(), ConfigBuilder.ConfigBuilder.prepare_DIGIPREMIX(), ConfigBuilder.ConfigBuilder.prepare_DQM(), ConfigBuilder.ConfigBuilder.prepare_ENDJOB(), ConfigBuilder.ConfigBuilder.prepare_L1HwVal(), ConfigBuilder.ConfigBuilder.prepare_L1Reco(), ConfigBuilder.ConfigBuilder.prepare_L1TrackTrigger(), ConfigBuilder.ConfigBuilder.prepare_RAW2DIGI(), ConfigBuilder.ConfigBuilder.prepare_RECO(), ConfigBuilder.ConfigBuilder.prepare_RECOBEFMIX(), ConfigBuilder.ConfigBuilder.prepare_REPACK(), ConfigBuilder.ConfigBuilder.prepare_SKIM(), ConfigBuilder.ConfigBuilder.prepare_USER(), and ConfigBuilder.ConfigBuilder.prepare_VALIDATION().

1186  def loadDefaultOrSpecifiedCFF(self, sequence,defaultCFF,unsch=0):
1187  if ( len(sequence.split('.'))==1 ):
1188  l=self.loadAndRemember(defaultCFF,unsch)
1189  elif ( len(sequence.split('.'))==2 ):
1190  l=self.loadAndRemember(sequence.split('.')[0],unsch)
1191  sequence=sequence.split('.')[1]
1192  else:
1193  print "sub sequence configuration must be of the form dir/subdir/cff.a+b+c or cff.a"
1194  print sequence,"not recognized"
1195  raise
1196  return l
def ConfigBuilder.ConfigBuilder.prepare (   self,
  doChecking = False 
)
Prepare the configuration string and add missing pieces.

Definition at line 2050 of file ConfigBuilder.py.

References ConfigBuilder.ConfigBuilder.addConditions(), ConfigBuilder.ConfigBuilder.addMaxEvents(), ConfigBuilder.ConfigBuilder.addSource(), ConfigBuilder.ConfigBuilder.addStandardSequences(), ConfigBuilder.ConfigBuilder.completeInputCommand(), and ConfigBuilder.ConfigBuilder.loadAndRemember().

2051  def prepare(self, doChecking = False):
2052  """ Prepare the configuration string and add missing pieces."""
2053 
2054  self.loadAndRemember(self.EVTCONTDefaultCFF) #load the event contents regardless
2055  self.addMaxEvents()
2056  if self.with_input:
self.addSource()
def ConfigBuilder.ConfigBuilder.prepare_ALCA (   self,
  sequence = None,
  workflow = 'full' 
)
Enrich the process with alca streams 

Definition at line 1232 of file ConfigBuilder.py.

Referenced by ConfigBuilder.ConfigBuilder.prepare_ALCAOUTPUT(), and ConfigBuilder.ConfigBuilder.prepare_ALCAPRODUCER().

1233  def prepare_ALCA(self, sequence = None, workflow = 'full'):
""" Enrich the process with alca streams """
def ConfigBuilder.ConfigBuilder.prepare_ALCAHARVEST (   self,
  sequence = None 
)
Enrich the process with AlCaHarvesting step 

Definition at line 1999 of file ConfigBuilder.py.

References ConfigBuilder.ConfigBuilder.executeAndRemember(), ConfigBuilder.ConfigBuilder.expandMapping(), and ConfigBuilder.ConfigBuilder.loadAndRemember().

2000  def prepare_ALCAHARVEST(self, sequence = None):
2001  """ Enrich the process with AlCaHarvesting step """
2002  harvestingConfig = self.loadAndRemember(self.ALCAHARVESTDefaultCFF)
2003  sequence=sequence.split(".")[-1]
2004 
2005  # decide which AlcaHARVESTING paths to use
2006  harvestingList = sequence.split("+")
2007 
2008 
def ConfigBuilder.ConfigBuilder.prepare_ALCAOUTPUT (   self,
  sequence = None 
)

Definition at line 1229 of file ConfigBuilder.py.

References ConfigBuilder.ConfigBuilder.prepare_ALCA().

1230  def prepare_ALCAOUTPUT(self, sequence = None):
1231  self.prepare_ALCA(sequence, workflow = "output")
def ConfigBuilder.ConfigBuilder.prepare_ALCAPRODUCER (   self,
  sequence = None 
)

Definition at line 1226 of file ConfigBuilder.py.

References ConfigBuilder.ConfigBuilder.prepare_ALCA().

1227  def prepare_ALCAPRODUCER(self, sequence = None):
1228  self.prepare_ALCA(sequence, workflow = "producers")
def ConfigBuilder.ConfigBuilder.prepare_CFWRITER (   self,
  sequence = None 
)
Enrich the schedule with the crossing frame writer step

Definition at line 1455 of file ConfigBuilder.py.

References ConfigBuilder.ConfigBuilder.loadAndRemember(), and ConfigBuilder.ConfigBuilder.scheduleSequence().

1456  def prepare_CFWRITER(self, sequence = None):
1457  """ Enrich the schedule with the crossing frame writer step"""
1458  self.loadAndRemember(self.CFWRITERDefaultCFF)
1459  self.scheduleSequence('pcfw','cfwriter_step')
1460  return
def ConfigBuilder.ConfigBuilder.prepare_DATAMIX (   self,
  sequence = None 
)
Enrich the schedule with the digitisation step

Definition at line 1461 of file ConfigBuilder.py.

References ConfigBuilder.ConfigBuilder.executeAndRemember(), ConfigBuilder.filesFromDASQuery(), ConfigBuilder.filesFromList(), ConfigBuilder.ConfigBuilder.loadAndRemember(), and ConfigBuilder.ConfigBuilder.scheduleSequence().

1462  def prepare_DATAMIX(self, sequence = None):
1463  """ Enrich the schedule with the digitisation step"""
1464  self.loadAndRemember(self.DATAMIXDefaultCFF)
1465  self.scheduleSequence('pdatamix','datamixing_step')
1466 
1467  if self._options.pileup_input:
1468  theFiles=''
1469  if self._options.pileup_input.startswith('dbs:') or self._options.pileup_input.startswith('das:'):
1470  theFiles=filesFromDASQuery('file dataset = %s'%(self._options.pileup_input[4:],),self._options.pileup_dasoption)[0]
1471  elif self._options.pileup_input.startswith("filelist:"):
1472  theFiles= (filesFromList(self._options.pileup_input[9:]))[0]
1473  else:
1474  theFiles=self._options.pileup_input.split(',')
1475  #print theFiles
1476  self.executeAndRemember( "process.mixData.input.fileNames = cms.untracked.vstring(%s)"%( theFiles ) )
1477 
1478  return
def ConfigBuilder.ConfigBuilder.prepare_DIGI (   self,
  sequence = None 
)
Enrich the schedule with the digitisation step

Definition at line 1406 of file ConfigBuilder.py.

References ConfigBuilder.ConfigBuilder.DIGIDefaultCFF, ConfigBuilder.ConfigBuilder.executeAndRemember(), ConfigBuilder.ConfigBuilder.loadAndRemember(), ConfigBuilder.ConfigBuilder.loadDefaultOrSpecifiedCFF(), and ConfigBuilder.ConfigBuilder.scheduleSequence().

1407  def prepare_DIGI(self, sequence = None):
1408  """ Enrich the schedule with the digitisation step"""
1409  self.loadDefaultOrSpecifiedCFF(sequence,self.DIGIDefaultCFF)
1410 
1411  if self._options.gflash==True:
1412  self.loadAndRemember("Configuration/StandardSequences/GFlashDIGI_cff")
1413 
1414  if sequence == 'pdigi_valid':
1415  self.executeAndRemember("process.mix.digitizers = cms.PSet(process.theDigitizersValid)")
def ConfigBuilder.ConfigBuilder.prepare_DIGI2RAW (   self,
  sequence = None 
)

Definition at line 1479 of file ConfigBuilder.py.

References ConfigBuilder.ConfigBuilder.DIGI2RAWDefaultCFF, ConfigBuilder.ConfigBuilder.executeAndRemember(), ConfigBuilder.ConfigBuilder.loadDefaultOrSpecifiedCFF(), and ConfigBuilder.ConfigBuilder.scheduleSequence().

1480  def prepare_DIGI2RAW(self, sequence = None):
1481  self.loadDefaultOrSpecifiedCFF(sequence,self.DIGI2RAWDefaultCFF)
1482  self.scheduleSequence(sequence.split('.')[-1],'digi2raw_step')
1483  if "DIGIPREMIX" in self.stepMap.keys():
1484  self.executeAndRemember("process.esDigiToRaw.Label = cms.string('mix')") ##terrible hack - bypass zero suppression
1485  self.executeAndRemember("process.SiStripDigiToRaw.FedReadoutMode = cms.string('PREMIX_RAW')") ##special readout mode for StripTracker
1486 
1487  return
def ConfigBuilder.ConfigBuilder.prepare_DIGIPREMIX (   self,
  sequence = None 
)
Enrich the schedule with the digitisation step

Definition at line 1426 of file ConfigBuilder.py.

References ConfigBuilder.ConfigBuilder.DIGIDefaultCFF, ConfigBuilder.ConfigBuilder.executeAndRemember(), ConfigBuilder.ConfigBuilder.loadAndRemember(), ConfigBuilder.ConfigBuilder.loadDefaultOrSpecifiedCFF(), and ConfigBuilder.ConfigBuilder.scheduleSequence().

1427  def prepare_DIGIPREMIX(self, sequence = None):
1428  """ Enrich the schedule with the digitisation step"""
1429  self.loadDefaultOrSpecifiedCFF(sequence,self.DIGIDefaultCFF)
def ConfigBuilder.ConfigBuilder.prepare_DIGIPREMIX_S2 (   self,
  sequence = None 
)
Enrich the schedule with the digitisation step

Definition at line 1440 of file ConfigBuilder.py.

1441  def prepare_DIGIPREMIX_S2(self, sequence = None):
""" Enrich the schedule with the digitisation step"""
def ConfigBuilder.ConfigBuilder.prepare_DQM (   self,
  sequence = 'DQMOffline' 
)

Definition at line 1917 of file ConfigBuilder.py.

References ConfigBuilder.ConfigBuilder.expandMapping(), ConfigBuilder.ConfigBuilder.loadDefaultOrSpecifiedCFF(), and split.

1918  def prepare_DQM(self, sequence = 'DQMOffline'):
1919  # this one needs replacement
1920 
1921  self.loadDefaultOrSpecifiedCFF(sequence,self.DQMOFFLINEDefaultCFF)
1922  sequenceList=sequence.split('.')[-1].split('+')
postSequenceList=sequence.split('.')[-1].split('+')
double split
Definition: MVATrainer.cc:139
def ConfigBuilder.ConfigBuilder.prepare_EI (   self,
  sequence = None 
)
Enrich the schedule with event interpretation 

Definition at line 1675 of file ConfigBuilder.py.

1676  def prepare_EI(self, sequence = None):
''' Enrich the schedule with event interpretation '''
def ConfigBuilder.ConfigBuilder.prepare_ENDJOB (   self,
  sequence = 'endOfProcess' 
)

Definition at line 2029 of file ConfigBuilder.py.

References ConfigBuilder.ConfigBuilder.loadDefaultOrSpecifiedCFF(), and ConfigBuilder.ConfigBuilder.scheduleSequenceAtEnd().

2030  def prepare_ENDJOB(self, sequence = 'endOfProcess'):
2031  self.loadDefaultOrSpecifiedCFF(sequence,self.ENDJOBDefaultCFF)
2032  self.scheduleSequenceAtEnd(sequence.split('.')[-1],'endjob_step')
2033  return
def ConfigBuilder.ConfigBuilder.prepare_FILTER (   self,
  sequence = None 
)
Enrich the schedule with a user defined filter sequence 

Definition at line 1614 of file ConfigBuilder.py.

1615  def prepare_FILTER(self, sequence = None):
''' Enrich the schedule with a user defined filter sequence '''
def ConfigBuilder.ConfigBuilder.prepare_GEN (   self,
  sequence = None 
)
load the fragment of generator configuration 

Definition at line 1308 of file ConfigBuilder.py.

1309  def prepare_GEN(self, sequence = None):
""" load the fragment of generator configuration """
def ConfigBuilder.ConfigBuilder.prepare_HARVESTING (   self,
  sequence = None 
)
Enrich the process with harvesting step 

Definition at line 1963 of file ConfigBuilder.py.

1964  def prepare_HARVESTING(self, sequence = None):
1965  """ Enrich the process with harvesting step """
1966  self.DQMSaverCFF='Configuration/StandardSequences/DQMSaver'+self._options.harvesting+'_cff'
1967  self.loadAndRemember(self.DQMSaverCFF)
1968 
1969  harvestingConfig = self.loadDefaultOrSpecifiedCFF(sequence,self.HARVESTINGDefaultCFF)
1970  sequence = sequence.split('.')[-1]
1971 
1972  # decide which HARVESTING paths to use
harvestingList = sequence.split("+")
def ConfigBuilder.ConfigBuilder.prepare_HLT (   self,
  sequence = None 
)
Enrich the schedule with the HLT simulation step

Definition at line 1513 of file ConfigBuilder.py.

References ConfigBuilder.ConfigBuilder.executeAndRemember(), join(), ConfigBuilder.ConfigBuilder.loadAndRemember(), CMSTestAnalyzer.CMSTestAnalyzer.process(), edm::ProductLabels.process, Printer.Printer.process(), DTTTrigProd.DTTTrigProd.process, SimpleTreeAnalyzer.SimpleTreeAnalyzer.process(), HcalHitRelabeller.process(), Histogrammer.Histogrammer.process(), DTValidSummary.DTValidSummary.process, helper::NullPostProcessor< reco::CandidateCollection, edm::EDFilter >.process(), helper::NullPostProcessor< typename::helper::SelectedOutputCollectionTrait< reco::TrackCollection >::type, EdmFilter >.process(), DTDqm.DTDqm.process, NullPostProcessor< reco::CandidateCollection >.process(), NullPostProcessor< OutputCollection, edm::EDFilter >.process(), EDFilter<>.process(), EDProducer<>.process(), NullPostProcessor< OutputCollection >.process(), NullPostProcessor< OutputCollection, EdmFilter >.process(), SimpleJetAnalyzer.SimpleJetAnalyzer.process(), helper::NullPostProcessor< OutputCollection, EdmFilter >.process(), DTDQMMerge.DTDQMMerge.process, SimpleTreeProducer.SimpleTreeProducer.process(), DTAnalysisResiduals.DTAnalysisResiduals.process, DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.process, DTDQMHarvesting.DTDQMHarvesting.process, tfwliteselectortest::ThingsWorker.process(), DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.process, DTNoiseCalibration.DTNoiseCalibration.process, DTResidualCalibration.DTResidualCalibration.process, DTTTrigValid.DTTTrigValid.process, DTDQMValidation.DTDQMValidation.process, clangcms::CatchAll.process(), core.Analyzer.Analyzer.process(), EcalFenixTcpsFgvbEB.process(), gen.LHEAnalyzer.LHEAnalyzer.process(), CSCTFDTReceiver.process(), EcalFenixBypassLin.process(), EcalFenixPeakFinder.process(), MetTreeProducer.MetTreeProducer.process(), tfwliteselectortest::ThingsTSelector.process(), EcalFenixMaxof2.process(), CSCTFMonitorInterface.process(), TTULogic.process(), CSCMonitorInterface.process(), examples::TrackAnalysisAlgorithm.process(), RBCLogic.process(), TTUWedgeORLogic.process(), EcalFenixEtStrip.process(), TTUSectorORLogic.process(), RBCPatternLogic.process(), PFPileUpAlgo.process(), EcalFenixTcpFormat.process(), npstat::AbsVisitor< Input, unsigned long >.process(), __class__Worker.process(), HcalCableMapper.process(), npstat::AbsVisitor< Input, Result >.process(), EcalFenixAmplitudeFilter.process(), EcalFenixStripFormatEE.process(), BTagDifferentialPlot.process(), DTT0DBValidation.DTT0DBValidation.process, npstat::AbsArrayProjector< Input, Result >.process(), EcalFenixStripFormatEB.process(), DTVDriftMeanTimerWriter.DTVDriftMeanTimerWriter.process, DTVDriftSegmentWriter.DTVDriftSegmentWriter.process, TTUPointingLogic.process(), MetAnalyzer.MetAnalyzer.process(), RBCTestLogic.process(), EcalFenixEtTot.process(), core.TriggerBitFilter.TriggerBitFilter.process(), TTUTwoORLogic.process(), DTTTrigResidualCorr.DTTTrigResidualCorr.process, ora::IRelationalMapping.process(), core.TriggerMatchAnalyzer.TriggerMatchAnalyzer.process(), EcalFenixStripFgvbEE.process(), gen.LHEWeightAnalyzer.LHEWeightAnalyzer.process(), EcalFenixTcpFgvbEE.process(), RBCChamberORLogic.process(), TTUTrackingAlg.process(), DTTTrigCorrFirst.DTTTrigCorrFirst.process, gen.HiggsDecayModeAnalyzer.HiggsDecayModeAnalyzer.process(), HcalSimpleReconstructor.process(), EcalFenixFgvbEB.process(), L1GctEmLeafCard.process(), L1GctNullJetFinder.process(), edm::ConsumesInfo.process(), SiStripClusterToDigiProducer.process(), TriggerAnalyzer.TriggerAnalyzer.process(), L1GctSimpleJetFinder.process(), EcalFenixLinearizer.process(), L1GctHardwareJetFinder.process(), edm::InputTag.process(), DTTTrigTimeBoxesWriter.DTTTrigTimeBoxesWriter.process, gen.GenHeavyFlavourAnalyzer.GenHeavyFlavourAnalyzer.process(), RPCWheel.process(), L1GctJetFinalStage.process(), L1GctProcessor.process(), TTUConfigurator.process(), gen.PDFWeightsAnalyzer.PDFWeightsAnalyzer.process(), L1GctGlobalHfSumAlgos.process(), PFMETBenchmark.process(), npstat::VisitCounter< Input >.process(), L1GctElectronFinalSort.process(), PFJetBenchmark.process(), core.EventSelector.EventSelector.process(), PFTauElecRejectionBenchmark.process(), ora::PrimitiveMapping.process(), EgammaHLTPixelMatchElectronAlgo.process(), ZMuMuRochCorAnalyzer.ZMuMuRochCorAnalyzer.process(), L1Comparator.process(), L1GctWheelEnergyFpga.process(), L1GctWheelJetFpga.process(), core.SkimAnalyzerCount.SkimAnalyzerCount.process(), core.JSONAnalyzer.JSONAnalyzer.process(), analyzer.Analyzer.process(), AlphaTAnalyzer.AlphaTAnalyzer.process(), cscdqm::HWStandbyType.process, ora::BlobMapping.process(), L1GctGlobalEnergyAlgos.process(), L1GctElectronSorter.process(), JetAnalyzer.JetAnalyzer.process(), L1GctTdrJetFinder.process(), core.TriggerBitAnalyzer.TriggerBitAnalyzer.process(), fwlite::internal::DataKey.process(), TFWLiteSelectorBasic.process(), L1GctJetLeafCard.process(), KDTreeLinkerBase.process(), DTTFFEDReader.process(), L1GlobalCaloTrigger.process(), TFWLiteSelector< ThingsWorker >.process(), TFWLiteSelector< __class__Worker >.process(), TFWLiteSelector< TWorker >.process(), TFWLiteSelector< TrackAnalysisAlgorithm >.process(), ora::OraReferenceMapping.process(), EcalFenixTcp.process(), SeedClusterRemover.process(), HLTTrackClusterRemoverNew.process(), TestOutliers.process, DiLeptonAnalyzer.DiLeptonAnalyzer.process(), HITrackClusterRemover.process(), HTTP.RequestManager.process(), GenLumiInfoProduct::ProcessInfo.process(), ora::UniqueReferenceMapping.process(), objects.VertexAnalyzer.VertexAnalyzer.process(), core.PileUpAnalyzer.PileUpAnalyzer.process(), EcalFenixStrip.process(), ora::OraPtrMapping.process(), objects.JetAnalyzer.JetAnalyzer.process(), lhef::LHERunInfo::Process.process(), ora::NamedRefMapping.process(), CaloTowersCreationAlgo.process(), objects.TauAnalyzer.TauAnalyzer.process(), ora::ArrayMapping.process(), core.AutoFillTreeProducer.AutoFillTreeProducer.process(), EgammaHLTValidationUtils.EgammaDQMModuleMaker.process, ora::CArrayMapping.process(), L1GctJetFinderBase.process(), ora::ObjectMapping.process(), ora::EmptyMapping.process(), Config.Process.process, looper.Looper.process(), gen.GeneratorAnalyzer.GeneratorAnalyzer.process(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.process(), edm::SubProcess.process(), objects.PhotonAnalyzer.PhotonAnalyzer.process(), edm::ProductHolderIndexHelper::Item.process(), objects.LeptonAnalyzer.LeptonAnalyzer.process(), Config.SubProcess.process(), and CustomConfigs.ProcessName().

1514  def prepare_HLT(self, sequence = None):
1515  """ Enrich the schedule with the HLT simulation step"""
1516  if not sequence:
1517  print "no specification of the hlt menu has been given, should never happen"
1518  raise Exception('no HLT sequence provided')
1519 
1520  if '@' in sequence:
1521  # case where HLT:@something was provided
1522  from Configuration.HLT.autoHLT import autoHLT
1523  key = sequence[1:]
1524  if key in autoHLT:
1525  sequence = autoHLT[key]
1526  else:
1527  raise ValueError('no HLT mapping key "%s" found in autoHLT' % key)
1528 
1529  if ',' in sequence:
1530  #case where HLT:something:something was provided
1531  self.executeAndRemember('import HLTrigger.Configuration.Utilities')
1532  optionsForHLT = {}
1533  if self._options.scenario == 'HeavyIons':
1534  optionsForHLT['type'] = 'HIon'
1535  else:
1536  optionsForHLT['type'] = 'GRun'
1537  optionsForHLTConfig = ', '.join('%s=%s' % (key, repr(val)) for (key, val) in optionsForHLT.iteritems())
1538  if sequence == 'run,fromSource':
1539  if hasattr(self.process.source,'firstRun'):
1540  self.executeAndRemember('process.loadHltConfiguration("run:%%d"%%(process.source.firstRun.value()),%s)'%(optionsForHLTConfig))
1541  elif hasattr(self.process.source,'setRunNumber'):
1542  self.executeAndRemember('process.loadHltConfiguration("run:%%d"%%(process.source.setRunNumber.value()),%s)'%(optionsForHLTConfig))
1543  else:
1544  raise Exception('Cannot replace menu to load %s'%(sequence))
1545  else:
1546  self.executeAndRemember('process.loadHltConfiguration("%s",%s)'%(sequence.replace(',',':'),optionsForHLTConfig))
1547  else:
1548  self.loadAndRemember('HLTrigger/Configuration/HLT_%s_cff' % sequence)
1549 
1550  if self._options.isMC:
1551  if self._options.fast:
1552  self._options.customisation_file.append("HLTrigger/Configuration/customizeHLTforMC.customizeHLTforFastSim")
1553  else:
1554  self._options.customisation_file.append("HLTrigger/Configuration/customizeHLTforMC.customizeHLTforFullSim")
static std::string join(char **cmd)
Definition: RemoteFile.cc:18
def ConfigBuilder.ConfigBuilder.prepare_L1 (   self,
  sequence = None 
)
Enrich the schedule with the L1 simulation step

Definition at line 1493 of file ConfigBuilder.py.

References assert(), ConfigBuilder.ConfigBuilder.L1EMDefaultCFF, ConfigBuilder.ConfigBuilder.loadAndRemember(), and ConfigBuilder.ConfigBuilder.scheduleSequence().

1494  def prepare_L1(self, sequence = None):
1495  """ Enrich the schedule with the L1 simulation step"""
1496  assert(sequence == None)
1497  self.loadAndRemember(self.L1EMDefaultCFF)
1498  self.scheduleSequence('SimL1Emulator','L1simulation_step')
1499  return
assert(m_qm.get())
def ConfigBuilder.ConfigBuilder.prepare_L1HwVal (   self,
  sequence = 'L1HwVal' 
)
Enrich the schedule with L1 HW validation 

Definition at line 1595 of file ConfigBuilder.py.

References ConfigBuilder.ConfigBuilder.loadDefaultOrSpecifiedCFF().

1596  def prepare_L1HwVal(self, sequence = 'L1HwVal'):
1597  ''' Enrich the schedule with L1 HW validation '''
self.loadDefaultOrSpecifiedCFF(sequence,self.L1HwValDefaultCFF)
def ConfigBuilder.ConfigBuilder.prepare_L1Reco (   self,
  sequence = "L1Reco" 
)
Enrich the schedule with L1 reconstruction 

Definition at line 1602 of file ConfigBuilder.py.

References ConfigBuilder.ConfigBuilder.L1RecoDefaultCFF, ConfigBuilder.ConfigBuilder.loadDefaultOrSpecifiedCFF(), and ConfigBuilder.ConfigBuilder.scheduleSequence().

1603  def prepare_L1Reco(self, sequence = "L1Reco"):
1604  ''' Enrich the schedule with L1 reconstruction '''
self.loadDefaultOrSpecifiedCFF(sequence,self.L1RecoDefaultCFF)
def ConfigBuilder.ConfigBuilder.prepare_L1REPACK (   self,
  sequence = None 
)
Enrich the schedule with the L1 simulation step, running the L1 emulator on data unpacked from the RAW collection, and repacking the result in a new RAW collection

Definition at line 1500 of file ConfigBuilder.py.

1501  def prepare_L1REPACK(self, sequence = None):
1502  """ Enrich the schedule with the L1 simulation step, running the L1 emulator on data unpacked from the RAW collection, and repacking the result in a new RAW collection"""
1503  supported = ['GT','GT1','GT2','GCTGT','Full']
1504  if sequence in supported:
1505  self.loadAndRemember('Configuration/StandardSequences/SimL1EmulatorRepack_%s_cff'%sequence)
1506  if self._options.scenario == 'HeavyIons':
1507  self.renameInputTagsInSequence("SimL1Emulator","rawDataCollector","rawDataRepacker")
1508  self.scheduleSequence('SimL1Emulator','L1RePack_step')
1509  else:
1510  print "L1REPACK with '",sequence,"' is not supported! Supported choices are: ",supported
1511  raise Exception('unsupported feature')
1512 
def ConfigBuilder.ConfigBuilder.prepare_L1TrackTrigger (   self,
  sequence = "L1TrackTrigger" 
)
Enrich the schedule with L1 reconstruction 

Definition at line 1608 of file ConfigBuilder.py.

References ConfigBuilder.ConfigBuilder.L1TrackTriggerDefaultCFF, ConfigBuilder.ConfigBuilder.loadDefaultOrSpecifiedCFF(), and ConfigBuilder.ConfigBuilder.scheduleSequence().

1609  def prepare_L1TrackTrigger(self, sequence = "L1TrackTrigger"):
1610  ''' Enrich the schedule with L1 reconstruction '''
self.loadDefaultOrSpecifiedCFF(sequence,self.L1TrackTriggerDefaultCFF)
def ConfigBuilder.ConfigBuilder.prepare_LHE (   self,
  sequence = None 
)

Definition at line 1291 of file ConfigBuilder.py.

References CMSTestAnalyzer.CMSTestAnalyzer.process(), edm::ProductLabels.process, Printer.Printer.process(), DTTTrigProd.DTTTrigProd.process, SimpleTreeAnalyzer.SimpleTreeAnalyzer.process(), HcalHitRelabeller.process(), Histogrammer.Histogrammer.process(), helper::NullPostProcessor< reco::CandidateCollection, edm::EDFilter >.process(), helper::NullPostProcessor< typename::helper::SelectedOutputCollectionTrait< reco::TrackCollection >::type, EdmFilter >.process(), DTDqm.DTDqm.process, NullPostProcessor< reco::CandidateCollection >.process(), NullPostProcessor< OutputCollection, edm::EDFilter >.process(), EDFilter<>.process(), EDProducer<>.process(), NullPostProcessor< OutputCollection >.process(), DTDQMMerge.DTDQMMerge.process, DTValidSummary.DTValidSummary.process, helper::NullPostProcessor< OutputCollection, EdmFilter >.process(), SimpleJetAnalyzer.SimpleJetAnalyzer.process(), NullPostProcessor< OutputCollection, EdmFilter >.process(), SimpleTreeProducer.SimpleTreeProducer.process(), DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.process, DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.process, DTDQMHarvesting.DTDQMHarvesting.process, tfwliteselectortest::ThingsWorker.process(), DTAnalysisResiduals.DTAnalysisResiduals.process, DTResidualCalibration.DTResidualCalibration.process, DTNoiseCalibration.DTNoiseCalibration.process, clangcms::CatchAll.process(), core.Analyzer.Analyzer.process(), DTDQMValidation.DTDQMValidation.process, DTTTrigValid.DTTTrigValid.process, EcalFenixTcpsFgvbEB.process(), gen.LHEAnalyzer.LHEAnalyzer.process(), CSCTFDTReceiver.process(), EcalFenixBypassLin.process(), EcalFenixPeakFinder.process(), MetTreeProducer.MetTreeProducer.process(), tfwliteselectortest::ThingsTSelector.process(), EcalFenixMaxof2.process(), CSCTFMonitorInterface.process(), CSCMonitorInterface.process(), TTULogic.process(), examples::TrackAnalysisAlgorithm.process(), RBCLogic.process(), TTUWedgeORLogic.process(), EcalFenixEtStrip.process(), RBCPatternLogic.process(), TTUSectorORLogic.process(), PFPileUpAlgo.process(), EcalFenixTcpFormat.process(), npstat::AbsVisitor< Input, unsigned long >.process(), HcalCableMapper.process(), __class__Worker.process(), npstat::AbsVisitor< Input, Result >.process(), EcalFenixAmplitudeFilter.process(), DTT0DBValidation.DTT0DBValidation.process, EcalFenixStripFormatEE.process(), BTagDifferentialPlot.process(), npstat::AbsArrayProjector< Input, Result >.process(), DTVDriftMeanTimerWriter.DTVDriftMeanTimerWriter.process, EcalFenixStripFormatEB.process(), DTVDriftSegmentWriter.DTVDriftSegmentWriter.process, RBCTestLogic.process(), TTUPointingLogic.process(), MetAnalyzer.MetAnalyzer.process(), EcalFenixEtTot.process(), core.TriggerBitFilter.TriggerBitFilter.process(), TTUTwoORLogic.process(), DTTTrigResidualCorr.DTTTrigResidualCorr.process, ora::IRelationalMapping.process(), core.TriggerMatchAnalyzer.TriggerMatchAnalyzer.process(), EcalFenixStripFgvbEE.process(), gen.LHEWeightAnalyzer.LHEWeightAnalyzer.process(), RBCChamberORLogic.process(), TTUTrackingAlg.process(), EcalFenixTcpFgvbEE.process(), DTTTrigCorrFirst.DTTTrigCorrFirst.process, gen.HiggsDecayModeAnalyzer.HiggsDecayModeAnalyzer.process(), HcalSimpleReconstructor.process(), EcalFenixFgvbEB.process(), edm::ConsumesInfo.process(), L1GctNullJetFinder.process(), L1GctEmLeafCard.process(), SiStripClusterToDigiProducer.process(), L1GctSimpleJetFinder.process(), TriggerAnalyzer.TriggerAnalyzer.process(), EcalFenixLinearizer.process(), L1GctHardwareJetFinder.process(), edm::InputTag.process(), RPCWheel.process(), DTTTrigTimeBoxesWriter.DTTTrigTimeBoxesWriter.process, gen.GenHeavyFlavourAnalyzer.GenHeavyFlavourAnalyzer.process(), L1GctJetFinalStage.process(), L1GctProcessor.process(), TTUConfigurator.process(), gen.PDFWeightsAnalyzer.PDFWeightsAnalyzer.process(), L1GctGlobalHfSumAlgos.process(), PFMETBenchmark.process(), npstat::VisitCounter< Input >.process(), L1GctElectronFinalSort.process(), PFJetBenchmark.process(), core.EventSelector.EventSelector.process(), ora::PrimitiveMapping.process(), PFTauElecRejectionBenchmark.process(), EgammaHLTPixelMatchElectronAlgo.process(), ZMuMuRochCorAnalyzer.ZMuMuRochCorAnalyzer.process(), L1Comparator.process(), L1GctWheelEnergyFpga.process(), core.SkimAnalyzerCount.SkimAnalyzerCount.process(), L1GctWheelJetFpga.process(), core.JSONAnalyzer.JSONAnalyzer.process(), analyzer.Analyzer.process(), AlphaTAnalyzer.AlphaTAnalyzer.process(), cscdqm::HWStandbyType.process, ora::BlobMapping.process(), L1GctElectronSorter.process(), L1GctGlobalEnergyAlgos.process(), JetAnalyzer.JetAnalyzer.process(), L1GctTdrJetFinder.process(), core.TriggerBitAnalyzer.TriggerBitAnalyzer.process(), TFWLiteSelectorBasic.process(), fwlite::internal::DataKey.process(), L1GctJetLeafCard.process(), KDTreeLinkerBase.process(), DTTFFEDReader.process(), L1GlobalCaloTrigger.process(), TFWLiteSelector< __class__Worker >.process(), TFWLiteSelector< ThingsWorker >.process(), TFWLiteSelector< TWorker >.process(), TFWLiteSelector< TrackAnalysisAlgorithm >.process(), EcalFenixTcp.process(), ora::OraReferenceMapping.process(), SeedClusterRemover.process(), HLTTrackClusterRemoverNew.process(), TestOutliers.process, DiLeptonAnalyzer.DiLeptonAnalyzer.process(), HITrackClusterRemover.process(), HTTP.RequestManager.process(), GenLumiInfoProduct::ProcessInfo.process(), ora::UniqueReferenceMapping.process(), objects.VertexAnalyzer.VertexAnalyzer.process(), core.PileUpAnalyzer.PileUpAnalyzer.process(), EcalFenixStrip.process(), ora::OraPtrMapping.process(), objects.JetAnalyzer.JetAnalyzer.process(), lhef::LHERunInfo::Process.process(), ora::NamedRefMapping.process(), CaloTowersCreationAlgo.process(), objects.TauAnalyzer.TauAnalyzer.process(), ora::ArrayMapping.process(), core.AutoFillTreeProducer.AutoFillTreeProducer.process(), EgammaHLTValidationUtils.EgammaDQMModuleMaker.process, ora::CArrayMapping.process(), L1GctJetFinderBase.process(), ora::ObjectMapping.process(), ora::EmptyMapping.process(), Config.Process.process, looper.Looper.process(), gen.GeneratorAnalyzer.GeneratorAnalyzer.process(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.process(), edm::SubProcess.process(), objects.PhotonAnalyzer.PhotonAnalyzer.process(), edm::ProductHolderIndexHelper::Item.process(), objects.LeptonAnalyzer.LeptonAnalyzer.process(), Config.SubProcess.process(), and python.rootplot.root2matplotlib.replace().

1292  def prepare_LHE(self, sequence = None):
1293  #load the fragment
1294  ##make it loadable
1295  loadFragment = self._options.evt_type.replace('.py','',).replace('.','_').replace('python/','').replace('/','.')
1296  print "Loading lhe fragment from",loadFragment
1297  __import__(loadFragment)
1298  self.process.load(loadFragment)
1299  ##inline the modules
1300  self._options.inlineObjets+=','+sequence
1301 
1302  getattr(self.process,sequence).nEvents = int(self._options.number)
1303 
1304  #schedule it
1305  self.process.lhe_step = cms.Path( getattr( self.process,sequence) )
1306  self.excludedPaths.append("lhe_step")
1307  self.schedule.append( self.process.lhe_step )
def ConfigBuilder.ConfigBuilder.prepare_PAT (   self,
  sequence = "miniAOD" 
)
Enrich the schedule with PAT 

Definition at line 1661 of file ConfigBuilder.py.

1662  def prepare_PAT(self, sequence = "miniAOD"):
''' Enrich the schedule with PAT '''
def ConfigBuilder.ConfigBuilder.prepare_PATFILTER (   self,
  sequence = None 
)

Definition at line 1589 of file ConfigBuilder.py.

References ConfigBuilder.ConfigBuilder.loadAndRemember(), CMSTestAnalyzer.CMSTestAnalyzer.process(), edm::ProductLabels.process, Printer.Printer.process(), DTTTrigProd.DTTTrigProd.process, SimpleTreeAnalyzer.SimpleTreeAnalyzer.process(), HcalHitRelabeller.process(), Histogrammer.Histogrammer.process(), helper::NullPostProcessor< reco::CandidateCollection, edm::EDFilter >.process(), helper::NullPostProcessor< typename::helper::SelectedOutputCollectionTrait< reco::TrackCollection >::type, EdmFilter >.process(), NullPostProcessor< reco::CandidateCollection >.process(), NullPostProcessor< OutputCollection, edm::EDFilter >.process(), EDFilter<>.process(), EDProducer<>.process(), NullPostProcessor< OutputCollection >.process(), DTDQMMerge.DTDQMMerge.process, DTDqm.DTDqm.process, helper::NullPostProcessor< OutputCollection, EdmFilter >.process(), SimpleJetAnalyzer.SimpleJetAnalyzer.process(), DTValidSummary.DTValidSummary.process, NullPostProcessor< OutputCollection, EdmFilter >.process(), SimpleTreeProducer.SimpleTreeProducer.process(), DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.process, DTDQMHarvesting.DTDQMHarvesting.process, DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.process, DTAnalysisResiduals.DTAnalysisResiduals.process, tfwliteselectortest::ThingsWorker.process(), DTResidualCalibration.DTResidualCalibration.process, DTNoiseCalibration.DTNoiseCalibration.process, clangcms::CatchAll.process(), core.Analyzer.Analyzer.process(), DTDQMValidation.DTDQMValidation.process, DTTTrigValid.DTTTrigValid.process, EcalFenixTcpsFgvbEB.process(), gen.LHEAnalyzer.LHEAnalyzer.process(), CSCTFDTReceiver.process(), EcalFenixBypassLin.process(), EcalFenixPeakFinder.process(), MetTreeProducer.MetTreeProducer.process(), tfwliteselectortest::ThingsTSelector.process(), EcalFenixMaxof2.process(), CSCTFMonitorInterface.process(), CSCMonitorInterface.process(), TTULogic.process(), examples::TrackAnalysisAlgorithm.process(), RBCLogic.process(), TTUWedgeORLogic.process(), EcalFenixEtStrip.process(), RBCPatternLogic.process(), TTUSectorORLogic.process(), PFPileUpAlgo.process(), EcalFenixTcpFormat.process(), HcalCableMapper.process(), __class__Worker.process(), npstat::AbsVisitor< Input, unsigned long >.process(), npstat::AbsVisitor< Input, Result >.process(), EcalFenixAmplitudeFilter.process(), DTT0DBValidation.DTT0DBValidation.process, EcalFenixStripFormatEE.process(), BTagDifferentialPlot.process(), npstat::AbsArrayProjector< Input, Result >.process(), EcalFenixStripFormatEB.process(), DTVDriftSegmentWriter.DTVDriftSegmentWriter.process, RBCTestLogic.process(), TTUPointingLogic.process(), DTVDriftMeanTimerWriter.DTVDriftMeanTimerWriter.process, MetAnalyzer.MetAnalyzer.process(), EcalFenixEtTot.process(), core.TriggerBitFilter.TriggerBitFilter.process(), TTUTwoORLogic.process(), DTTTrigResidualCorr.DTTTrigResidualCorr.process, ora::IRelationalMapping.process(), core.TriggerMatchAnalyzer.TriggerMatchAnalyzer.process(), EcalFenixStripFgvbEE.process(), gen.LHEWeightAnalyzer.LHEWeightAnalyzer.process(), RBCChamberORLogic.process(), TTUTrackingAlg.process(), EcalFenixTcpFgvbEE.process(), DTTTrigCorrFirst.DTTTrigCorrFirst.process, gen.HiggsDecayModeAnalyzer.HiggsDecayModeAnalyzer.process(), HcalSimpleReconstructor.process(), EcalFenixFgvbEB.process(), L1GctNullJetFinder.process(), edm::ConsumesInfo.process(), L1GctEmLeafCard.process(), SiStripClusterToDigiProducer.process(), EcalFenixLinearizer.process(), L1GctSimpleJetFinder.process(), TriggerAnalyzer.TriggerAnalyzer.process(), L1GctHardwareJetFinder.process(), edm::InputTag.process(), RPCWheel.process(), DTTTrigTimeBoxesWriter.DTTTrigTimeBoxesWriter.process, gen.GenHeavyFlavourAnalyzer.GenHeavyFlavourAnalyzer.process(), L1GctJetFinalStage.process(), L1GctProcessor.process(), TTUConfigurator.process(), gen.PDFWeightsAnalyzer.PDFWeightsAnalyzer.process(), L1GctGlobalHfSumAlgos.process(), npstat::VisitCounter< Input >.process(), PFMETBenchmark.process(), L1GctElectronFinalSort.process(), PFJetBenchmark.process(), core.EventSelector.EventSelector.process(), PFTauElecRejectionBenchmark.process(), ora::PrimitiveMapping.process(), EgammaHLTPixelMatchElectronAlgo.process(), ZMuMuRochCorAnalyzer.ZMuMuRochCorAnalyzer.process(), L1Comparator.process(), L1GctWheelEnergyFpga.process(), core.SkimAnalyzerCount.SkimAnalyzerCount.process(), L1GctWheelJetFpga.process(), core.JSONAnalyzer.JSONAnalyzer.process(), analyzer.Analyzer.process(), AlphaTAnalyzer.AlphaTAnalyzer.process(), cscdqm::HWStandbyType.process, ora::BlobMapping.process(), L1GctGlobalEnergyAlgos.process(), L1GctElectronSorter.process(), JetAnalyzer.JetAnalyzer.process(), L1GctTdrJetFinder.process(), core.TriggerBitAnalyzer.TriggerBitAnalyzer.process(), fwlite::internal::DataKey.process(), TFWLiteSelectorBasic.process(), L1GctJetLeafCard.process(), KDTreeLinkerBase.process(), DTTFFEDReader.process(), L1GlobalCaloTrigger.process(), TFWLiteSelector< ThingsWorker >.process(), TFWLiteSelector< TrackAnalysisAlgorithm >.process(), TFWLiteSelector< __class__Worker >.process(), TFWLiteSelector< TWorker >.process(), ora::OraReferenceMapping.process(), EcalFenixTcp.process(), SeedClusterRemover.process(), HLTTrackClusterRemoverNew.process(), TestOutliers.process, DiLeptonAnalyzer.DiLeptonAnalyzer.process(), HTTP.RequestManager.process(), HITrackClusterRemover.process(), GenLumiInfoProduct::ProcessInfo.process(), ora::UniqueReferenceMapping.process(), objects.VertexAnalyzer.VertexAnalyzer.process(), core.PileUpAnalyzer.PileUpAnalyzer.process(), EcalFenixStrip.process(), ora::OraPtrMapping.process(), objects.JetAnalyzer.JetAnalyzer.process(), lhef::LHERunInfo::Process.process(), ora::NamedRefMapping.process(), CaloTowersCreationAlgo.process(), objects.TauAnalyzer.TauAnalyzer.process(), ora::ArrayMapping.process(), core.AutoFillTreeProducer.AutoFillTreeProducer.process(), EgammaHLTValidationUtils.EgammaDQMModuleMaker.process, ora::CArrayMapping.process(), L1GctJetFinderBase.process(), ora::ObjectMapping.process(), ora::EmptyMapping.process(), Config.Process.process, looper.Looper.process(), gen.GeneratorAnalyzer.GeneratorAnalyzer.process(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.process(), edm::SubProcess.process(), objects.PhotonAnalyzer.PhotonAnalyzer.process(), edm::ProductHolderIndexHelper::Item.process(), objects.LeptonAnalyzer.LeptonAnalyzer.process(), and Config.SubProcess.process().

1590  def prepare_PATFILTER(self, sequence=None):
1591  self.loadAndRemember("PhysicsTools/PatAlgos/slimming/metFilterPaths_cff")
1592  from PhysicsTools.PatAlgos.slimming.metFilterPaths_cff import allMetFilterPaths
1593  for filt in allMetFilterPaths:
1594  self.schedule.append(getattr(self.process,'Flag_'+filt))
def ConfigBuilder.ConfigBuilder.prepare_POSTRECO (   self,
  sequence = None 
)
Enrich the schedule with the postreco step 

Definition at line 1737 of file ConfigBuilder.py.

References ConfigBuilder.ConfigBuilder.loadAndRemember(), and ConfigBuilder.ConfigBuilder.scheduleSequence().

1738  def prepare_POSTRECO(self, sequence = None):
1739  """ Enrich the schedule with the postreco step """
self.loadAndRemember(self.POSTRECODefaultCFF)
def ConfigBuilder.ConfigBuilder.prepare_RAW2DIGI (   self,
  sequence = "RawToDigi" 
)

Definition at line 1582 of file ConfigBuilder.py.

References ConfigBuilder.ConfigBuilder.loadDefaultOrSpecifiedCFF(), ConfigBuilder.ConfigBuilder.RAW2DIGIDefaultCFF, and ConfigBuilder.ConfigBuilder.scheduleSequence().

Referenced by ConfigBuilder.ConfigBuilder.prepare_RAW2RECO().

1583  def prepare_RAW2DIGI(self, sequence = "RawToDigi"):
1584  self.loadDefaultOrSpecifiedCFF(sequence,self.RAW2DIGIDefaultCFF)
1585  self.scheduleSequence(sequence,'raw2digi_step')
1586  # if self._options.isRepacked:
1587  #self.renameInputTagsInSequence(sequence)
1588  return
def ConfigBuilder.ConfigBuilder.prepare_RAW2RECO (   self,
  sequence = None 
)

Definition at line 1571 of file ConfigBuilder.py.

References ConfigBuilder.ConfigBuilder.prepare_RAW2DIGI(), and ConfigBuilder.ConfigBuilder.prepare_RECO().

1572  def prepare_RAW2RECO(self, sequence = None):
1573  if ','in sequence:
1574  seqReco=sequence.split(',')[1]
1575  seqDigi=sequence.split(',')[0]
1576  else:
1577  print "RAW2RECO requires two specifications",sequence,"insufficient"
1578 
1579  self.prepare_RAW2DIGI(seqDigi)
1580  self.prepare_RECO(seqReco)
1581  return
def prepare_RECO
put the filtering path in the schedule
def ConfigBuilder.ConfigBuilder.prepare_RECO (   self,
  sequence = "reconstruction" 
)

put the filtering path in the schedule

put it before all the other paths

Enrich the schedule with reconstruction 

Definition at line 1646 of file ConfigBuilder.py.

References ConfigBuilder.ConfigBuilder.loadDefaultOrSpecifiedCFF(), ConfigBuilder.ConfigBuilder.RECODefaultCFF, and ConfigBuilder.ConfigBuilder.scheduleSequence().

Referenced by ConfigBuilder.ConfigBuilder.prepare_RAW2RECO().

1647  def prepare_RECO(self, sequence = "reconstruction"):
1648  ''' Enrich the schedule with reconstruction '''
self.loadDefaultOrSpecifiedCFF(sequence,self.RECODefaultCFF)
def prepare_RECO
put the filtering path in the schedule
def ConfigBuilder.ConfigBuilder.prepare_RECOBEFMIX (   self,
  sequence = "reconstruction" 
)
Enrich the schedule with the part of reconstruction that is done before mixing in FastSim

Definition at line 1652 of file ConfigBuilder.py.

References ConfigBuilder.ConfigBuilder.loadDefaultOrSpecifiedCFF(), and ConfigBuilder.ConfigBuilder.scheduleSequence().

1653  def prepare_RECOBEFMIX(self, sequence = "reconstruction"):
1654  ''' Enrich the schedule with the part of reconstruction that is done before mixing in FastSim'''
1655  if not self._options.fast:
1656  print "ERROR: this step is only implemented for FastSim"
1657  sys.exit()
1658  self.loadDefaultOrSpecifiedCFF(self.RECOBEFMIXDefaultSeq,self.RECOBEFMIXDefaultCFF)
1659  self.scheduleSequence(sequence.split('.')[-1],'reconstruction_befmix_step')
1660  return
def ConfigBuilder.ConfigBuilder.prepare_REPACK (   self,
  sequence = None 
)

Definition at line 1488 of file ConfigBuilder.py.

References ConfigBuilder.ConfigBuilder.loadDefaultOrSpecifiedCFF(), and ConfigBuilder.ConfigBuilder.scheduleSequence().

1489  def prepare_REPACK(self, sequence = None):
1490  self.loadDefaultOrSpecifiedCFF(sequence,self.REPACKDefaultCFF)
1491  self.scheduleSequence(sequence.split('.')[-1],'digi2repack_step')
1492  return
def ConfigBuilder.ConfigBuilder.prepare_SIM (   self,
  sequence = None 
)
Enrich the schedule with the summary of the filter step 
Enrich the schedule with the simulation step

Definition at line 1390 of file ConfigBuilder.py.

1391  def prepare_SIM(self, sequence = None):
""" Enrich the schedule with the simulation step"""
def ConfigBuilder.ConfigBuilder.prepare_SKIM (   self,
  sequence = "all" 
)
Enrich the schedule with skimming fragments

Definition at line 1687 of file ConfigBuilder.py.

References ConfigBuilder.ConfigBuilder.expandMapping(), and ConfigBuilder.ConfigBuilder.loadDefaultOrSpecifiedCFF().

1688  def prepare_SKIM(self, sequence = "all"):
1689  ''' Enrich the schedule with skimming fragments'''
1690  skimConfig = self.loadDefaultOrSpecifiedCFF(sequence,self.SKIMDefaultCFF)
1691  sequence = sequence.split('.')[-1]
1692 
1693  skimlist=sequence.split('+')
## support @Mu+DiJet+@Electron configuration via autoSkim.py
def ConfigBuilder.ConfigBuilder.prepare_USER (   self,
  sequence = None 
)
Enrich the schedule with a user defined sequence 

Definition at line 1731 of file ConfigBuilder.py.

References ConfigBuilder.ConfigBuilder.loadDefaultOrSpecifiedCFF(), and ConfigBuilder.ConfigBuilder.scheduleSequence().

1732  def prepare_USER(self, sequence = None):
1733  ''' Enrich the schedule with a user defined sequence '''
self.loadDefaultOrSpecifiedCFF(sequence,self.USERDefaultCFF)
def ConfigBuilder.ConfigBuilder.prepare_VALIDATION (   self,
  sequence = 'validation' 
)

Definition at line 1744 of file ConfigBuilder.py.

References any(), ConfigBuilder.ConfigBuilder.executeAndRemember(), ConfigBuilder.ConfigBuilder.expandMapping(), ConfigBuilder.ConfigBuilder.loadDefaultOrSpecifiedCFF(), CMSTestAnalyzer.CMSTestAnalyzer.process(), edm::ProductLabels.process, Printer.Printer.process(), DTTTrigProd.DTTTrigProd.process, SimpleTreeAnalyzer.SimpleTreeAnalyzer.process(), HcalHitRelabeller.process(), Histogrammer.Histogrammer.process(), DTDqm.DTDqm.process, DTValidSummary.DTValidSummary.process, helper::NullPostProcessor< reco::CandidateCollection, edm::EDFilter >.process(), helper::NullPostProcessor< typename::helper::SelectedOutputCollectionTrait< reco::TrackCollection >::type, EdmFilter >.process(), EDFilter<>.process(), EDProducer<>.process(), NullPostProcessor< reco::CandidateCollection >.process(), NullPostProcessor< OutputCollection >.process(), NullPostProcessor< OutputCollection, EdmFilter >.process(), NullPostProcessor< OutputCollection, edm::EDFilter >.process(), SimpleJetAnalyzer.SimpleJetAnalyzer.process(), helper::NullPostProcessor< OutputCollection, EdmFilter >.process(), DTDQMMerge.DTDQMMerge.process, SimpleTreeProducer.SimpleTreeProducer.process(), DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.process, DTAnalysisResiduals.DTAnalysisResiduals.process, DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.process, DTDQMHarvesting.DTDQMHarvesting.process, tfwliteselectortest::ThingsWorker.process(), DTNoiseCalibration.DTNoiseCalibration.process, DTResidualCalibration.DTResidualCalibration.process, DTTTrigValid.DTTTrigValid.process, DTDQMValidation.DTDQMValidation.process, clangcms::CatchAll.process(), core.Analyzer.Analyzer.process(), EcalFenixTcpsFgvbEB.process(), gen.LHEAnalyzer.LHEAnalyzer.process(), CSCTFDTReceiver.process(), EcalFenixBypassLin.process(), EcalFenixPeakFinder.process(), MetTreeProducer.MetTreeProducer.process(), tfwliteselectortest::ThingsTSelector.process(), EcalFenixMaxof2.process(), CSCTFMonitorInterface.process(), TTULogic.process(), CSCMonitorInterface.process(), examples::TrackAnalysisAlgorithm.process(), RBCLogic.process(), TTUWedgeORLogic.process(), EcalFenixEtStrip.process(), TTUSectorORLogic.process(), RBCPatternLogic.process(), PFPileUpAlgo.process(), EcalFenixTcpFormat.process(), npstat::AbsVisitor< Input, unsigned long >.process(), __class__Worker.process(), HcalCableMapper.process(), npstat::AbsVisitor< Input, Result >.process(), EcalFenixAmplitudeFilter.process(), EcalFenixStripFormatEE.process(), BTagDifferentialPlot.process(), DTT0DBValidation.DTT0DBValidation.process, npstat::AbsArrayProjector< Input, Result >.process(), EcalFenixStripFormatEB.process(), DTVDriftMeanTimerWriter.DTVDriftMeanTimerWriter.process, RBCTestLogic.process(), TTUPointingLogic.process(), MetAnalyzer.MetAnalyzer.process(), DTVDriftSegmentWriter.DTVDriftSegmentWriter.process, EcalFenixEtTot.process(), core.TriggerBitFilter.TriggerBitFilter.process(), TTUTwoORLogic.process(), DTTTrigResidualCorr.DTTTrigResidualCorr.process, ora::IRelationalMapping.process(), core.TriggerMatchAnalyzer.TriggerMatchAnalyzer.process(), EcalFenixStripFgvbEE.process(), gen.LHEWeightAnalyzer.LHEWeightAnalyzer.process(), EcalFenixTcpFgvbEE.process(), TTUTrackingAlg.process(), RBCChamberORLogic.process(), DTTTrigCorrFirst.DTTTrigCorrFirst.process, gen.HiggsDecayModeAnalyzer.HiggsDecayModeAnalyzer.process(), HcalSimpleReconstructor.process(), EcalFenixFgvbEB.process(), L1GctEmLeafCard.process(), L1GctNullJetFinder.process(), edm::ConsumesInfo.process(), SiStripClusterToDigiProducer.process(), TriggerAnalyzer.TriggerAnalyzer.process(), L1GctSimpleJetFinder.process(), EcalFenixLinearizer.process(), L1GctHardwareJetFinder.process(), edm::InputTag.process(), gen.GenHeavyFlavourAnalyzer.GenHeavyFlavourAnalyzer.process(), RPCWheel.process(), DTTTrigTimeBoxesWriter.DTTTrigTimeBoxesWriter.process, L1GctProcessor.process(), L1GctJetFinalStage.process(), TTUConfigurator.process(), gen.PDFWeightsAnalyzer.PDFWeightsAnalyzer.process(), L1GctGlobalHfSumAlgos.process(), PFMETBenchmark.process(), npstat::VisitCounter< Input >.process(), L1GctElectronFinalSort.process(), PFJetBenchmark.process(), core.EventSelector.EventSelector.process(), PFTauElecRejectionBenchmark.process(), ora::PrimitiveMapping.process(), EgammaHLTPixelMatchElectronAlgo.process(), ZMuMuRochCorAnalyzer.ZMuMuRochCorAnalyzer.process(), L1Comparator.process(), L1GctWheelEnergyFpga.process(), L1GctWheelJetFpga.process(), core.SkimAnalyzerCount.SkimAnalyzerCount.process(), core.JSONAnalyzer.JSONAnalyzer.process(), analyzer.Analyzer.process(), AlphaTAnalyzer.AlphaTAnalyzer.process(), cscdqm::HWStandbyType.process, ora::BlobMapping.process(), L1GctElectronSorter.process(), L1GctGlobalEnergyAlgos.process(), JetAnalyzer.JetAnalyzer.process(), L1GctTdrJetFinder.process(), core.TriggerBitAnalyzer.TriggerBitAnalyzer.process(), fwlite::internal::DataKey.process(), TFWLiteSelectorBasic.process(), KDTreeLinkerBase.process(), L1GctJetLeafCard.process(), DTTFFEDReader.process(), L1GlobalCaloTrigger.process(), TFWLiteSelector< TrackAnalysisAlgorithm >.process(), TFWLiteSelector< TWorker >.process(), TFWLiteSelector< ThingsWorker >.process(), TFWLiteSelector< __class__Worker >.process(), ora::OraReferenceMapping.process(), EcalFenixTcp.process(), SeedClusterRemover.process(), HLTTrackClusterRemoverNew.process(), TestOutliers.process, DiLeptonAnalyzer.DiLeptonAnalyzer.process(), HITrackClusterRemover.process(), HTTP.RequestManager.process(), GenLumiInfoProduct::ProcessInfo.process(), ora::UniqueReferenceMapping.process(), objects.VertexAnalyzer.VertexAnalyzer.process(), core.PileUpAnalyzer.PileUpAnalyzer.process(), EcalFenixStrip.process(), ora::OraPtrMapping.process(), objects.JetAnalyzer.JetAnalyzer.process(), lhef::LHERunInfo::Process.process(), ora::NamedRefMapping.process(), CaloTowersCreationAlgo.process(), objects.TauAnalyzer.TauAnalyzer.process(), ora::ArrayMapping.process(), core.AutoFillTreeProducer.AutoFillTreeProducer.process(), EgammaHLTValidationUtils.EgammaDQMModuleMaker.process, ora::CArrayMapping.process(), L1GctJetFinderBase.process(), ora::ObjectMapping.process(), ora::EmptyMapping.process(), Config.Process.process, looper.Looper.process(), gen.GeneratorAnalyzer.GeneratorAnalyzer.process(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.process(), edm::SubProcess.process(), objects.PhotonAnalyzer.PhotonAnalyzer.process(), edm::ProductHolderIndexHelper::Item.process(), objects.LeptonAnalyzer.LeptonAnalyzer.process(), Config.SubProcess.process(), ConfigBuilder.ConfigBuilder.renameHLTprocessInSequence(), and split.

1745  def prepare_VALIDATION(self, sequence = 'validation'):
1746  print sequence,"in preparing validation"
1747  self.loadDefaultOrSpecifiedCFF(sequence,self.VALIDATIONDefaultCFF)
1748  from Validation.Configuration.autoValidation import autoValidation
1749  #in case VALIDATION:something:somethingelse -> something,somethingelse
1750  sequence=sequence.split('.')[-1]
1751  if sequence.find(',')!=-1:
1752  prevalSeqName=sequence.split(',')[0].split('+')
1753  valSeqName=sequence.split(',')[1].split('+')
1754  self.expandMapping(prevalSeqName,autoValidation,index=0)
1755  self.expandMapping(valSeqName,autoValidation,index=1)
1756  else:
1757  if '@' in sequence:
1758  prevalSeqName=sequence.split('+')
1759  valSeqName=sequence.split('+')
1760  self.expandMapping(prevalSeqName,autoValidation,index=0)
1761  self.expandMapping(valSeqName,autoValidation,index=1)
1762  else:
1763  postfix=''
1764  if sequence:
1765  postfix='_'+sequence
1766  prevalSeqName=['prevalidation'+postfix]
1767  valSeqName=['validation'+postfix]
1768  if not hasattr(self.process,valSeqName[0]):
1769  prevalSeqName=['']
1770  valSeqName=[sequence]
1771 
1772  def NFI(index):
1773  ##name from index, required to keep backward compatibility
1774  if index==0:
1775  return ''
1776  else:
1777  return '%s'%index
1778 
1779 
1780  #rename the HLT process in validation steps
1781  if ('HLT' in self.stepMap and not self._options.fast) or self._options.hltProcess:
1782  for s in valSeqName+prevalSeqName:
1783  if s:
1785  for (i,s) in enumerate(prevalSeqName):
1786  if s:
1787  setattr(self.process,'prevalidation_step%s'%NFI(i), cms.Path( getattr(self.process, s)) )
1788  self.schedule.append(getattr(self.process,'prevalidation_step%s'%NFI(i)))
1789 
1790  for (i,s) in enumerate(valSeqName):
1791  setattr(self.process,'validation_step%s'%NFI(i), cms.EndPath( getattr(self.process, s)))
1792  self.schedule.append(getattr(self.process,'validation_step%s'%NFI(i)))
1793 
1794  #needed in case the miniAODValidation sequence is run starting from AODSIM
1795  if 'PAT' in self.stepMap and not 'RECO' in self.stepMap:
1796  return
1797 
1798  if not 'DIGI' in self.stepMap and not self._options.fast and not any(map( lambda s : s.startswith('genvalid'), valSeqName)):
1799  if self._options.restoreRNDSeeds==False and not self._options.restoreRNDSeeds==True:
1800  self._options.restoreRNDSeeds=True
1801 
1802  if not 'DIGI' in self.stepMap and not self._options.fast:
1803  self.executeAndRemember("process.mix.playback = True")
1804  self.executeAndRemember("process.mix.digitizers = cms.PSet()")
1805  self.executeAndRemember("for a in process.aliases: delattr(process, a)")
1806  self._options.customisation_file.append("SimGeneral/MixingModule/fullMixCustomize_cff.setCrossingFrameOn")
1807 
1808  if hasattr(self.process,"genstepfilter") and len(self.process.genstepfilter.triggerConditions):
1809  #will get in the schedule, smoothly
1810  for (i,s) in enumerate(valSeqName):
1811  getattr(self.process,'validation_step%s'%NFI(i))._seq = self.process.genstepfilter * getattr(self.process,'validation_step%s'%NFI(i))._seq
1812 
1813  return
1814 
bool any(const std::vector< T > &v, const T &what)
Definition: ECalSD.cc:34
double split
Definition: MVATrainer.cc:139
def ConfigBuilder.ConfigBuilder.profileOptions (   self)
addIgProfService
Function to add the igprof profile service so that you can dump in the middle
of the run.

Definition at line 268 of file ConfigBuilder.py.

Referenced by ConfigBuilder.ConfigBuilder.addCommon().

269  def profileOptions(self):
270  """
271  addIgProfService
272  Function to add the igprof profile service so that you can dump in the middle
273  of the run.
274  """
275  profileOpts = self._options.profile.split(':')
276  profilerStart = 1
277  profilerInterval = 100
278  profilerFormat = None
279  profilerJobFormat = None
280 
281  if len(profileOpts):
282  #type, given as first argument is unused here
283  profileOpts.pop(0)
284  if len(profileOpts):
285  startEvent = profileOpts.pop(0)
286  if not startEvent.isdigit():
287  raise Exception("%s is not a number" % startEvent)
288  profilerStart = int(startEvent)
289  if len(profileOpts):
290  eventInterval = profileOpts.pop(0)
291  if not eventInterval.isdigit():
292  raise Exception("%s is not a number" % eventInterval)
293  profilerInterval = int(eventInterval)
294  if len(profileOpts):
295  profilerFormat = profileOpts.pop(0)
296 
297 
298  if not profilerFormat:
299  profilerFormat = "%s___%s___%s___%s___%s___%s___%%I.gz" % (self._options.evt_type.replace("_cfi", ""),
300  self._options.step,
301  self._options.pileup,
302  self._options.conditions,
303  self._options.datatier,
304  self._options.profileTypeLabel)
305  if not profilerJobFormat and profilerFormat.endswith(".gz"):
306  profilerJobFormat = profilerFormat.replace(".gz", "_EndOfJob.gz")
307  elif not profilerJobFormat:
308  profilerJobFormat = profilerFormat + "_EndOfJob.gz"
309 
310  return (profilerStart,profilerInterval,profilerFormat,profilerJobFormat)
def ConfigBuilder.ConfigBuilder.renameHLTprocessInSequence (   self,
  sequence,
  proc = None,
  HLTprocess = 'HLT' 
)

Definition at line 1884 of file ConfigBuilder.py.

References CMSTestAnalyzer.CMSTestAnalyzer.process(), edm::ProductLabels.process, Printer.Printer.process(), DTTTrigProd.DTTTrigProd.process, SimpleTreeAnalyzer.SimpleTreeAnalyzer.process(), HcalHitRelabeller.process(), Histogrammer.Histogrammer.process(), helper::NullPostProcessor< reco::CandidateCollection, edm::EDFilter >.process(), helper::NullPostProcessor< typename::helper::SelectedOutputCollectionTrait< reco::TrackCollection >::type, EdmFilter >.process(), DTDqm.DTDqm.process, DTDQMMerge.DTDQMMerge.process, NullPostProcessor< reco::CandidateCollection >.process(), NullPostProcessor< OutputCollection, edm::EDFilter >.process(), EDFilter<>.process(), EDProducer<>.process(), NullPostProcessor< OutputCollection >.process(), NullPostProcessor< OutputCollection, EdmFilter >.process(), DTValidSummary.DTValidSummary.process, SimpleJetAnalyzer.SimpleJetAnalyzer.process(), helper::NullPostProcessor< OutputCollection, EdmFilter >.process(), SimpleTreeProducer.SimpleTreeProducer.process(), DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.process, DTAnalysisResiduals.DTAnalysisResiduals.process, tfwliteselectortest::ThingsWorker.process(), DTDQMHarvesting.DTDQMHarvesting.process, DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.process, DTNoiseCalibration.DTNoiseCalibration.process, DTResidualCalibration.DTResidualCalibration.process, clangcms::CatchAll.process(), DTDQMValidation.DTDQMValidation.process, core.Analyzer.Analyzer.process(), DTTTrigValid.DTTTrigValid.process, EcalFenixTcpsFgvbEB.process(), gen.LHEAnalyzer.LHEAnalyzer.process(), CSCTFDTReceiver.process(), EcalFenixBypassLin.process(), EcalFenixPeakFinder.process(), MetTreeProducer.MetTreeProducer.process(), tfwliteselectortest::ThingsTSelector.process(), EcalFenixMaxof2.process(), CSCTFMonitorInterface.process(), TTULogic.process(), CSCMonitorInterface.process(), examples::TrackAnalysisAlgorithm.process(), RBCLogic.process(), TTUWedgeORLogic.process(), EcalFenixEtStrip.process(), RBCPatternLogic.process(), TTUSectorORLogic.process(), PFPileUpAlgo.process(), EcalFenixTcpFormat.process(), npstat::AbsVisitor< Input, unsigned long >.process(), __class__Worker.process(), HcalCableMapper.process(), npstat::AbsVisitor< Input, Result >.process(), EcalFenixAmplitudeFilter.process(), DTT0DBValidation.DTT0DBValidation.process, EcalFenixStripFormatEE.process(), BTagDifferentialPlot.process(), npstat::AbsArrayProjector< Input, Result >.process(), DTVDriftMeanTimerWriter.DTVDriftMeanTimerWriter.process, RBCTestLogic.process(), EcalFenixStripFormatEB.process(), DTVDriftSegmentWriter.DTVDriftSegmentWriter.process, TTUPointingLogic.process(), MetAnalyzer.MetAnalyzer.process(), EcalFenixEtTot.process(), core.TriggerBitFilter.TriggerBitFilter.process(), TTUTwoORLogic.process(), DTTTrigResidualCorr.DTTTrigResidualCorr.process, ora::IRelationalMapping.process(), core.TriggerMatchAnalyzer.TriggerMatchAnalyzer.process(), EcalFenixStripFgvbEE.process(), gen.LHEWeightAnalyzer.LHEWeightAnalyzer.process(), RBCChamberORLogic.process(), TTUTrackingAlg.process(), EcalFenixTcpFgvbEE.process(), DTTTrigCorrFirst.DTTTrigCorrFirst.process, gen.HiggsDecayModeAnalyzer.HiggsDecayModeAnalyzer.process(), EcalFenixFgvbEB.process(), HcalSimpleReconstructor.process(), edm::ConsumesInfo.process(), L1GctNullJetFinder.process(), L1GctEmLeafCard.process(), SiStripClusterToDigiProducer.process(), L1GctSimpleJetFinder.process(), TriggerAnalyzer.TriggerAnalyzer.process(), EcalFenixLinearizer.process(), L1GctHardwareJetFinder.process(), edm::InputTag.process(), gen.GenHeavyFlavourAnalyzer.GenHeavyFlavourAnalyzer.process(), DTTTrigTimeBoxesWriter.DTTTrigTimeBoxesWriter.process, RPCWheel.process(), L1GctJetFinalStage.process(), L1GctProcessor.process(), TTUConfigurator.process(), gen.PDFWeightsAnalyzer.PDFWeightsAnalyzer.process(), L1GctGlobalHfSumAlgos.process(), PFMETBenchmark.process(), npstat::VisitCounter< Input >.process(), L1GctElectronFinalSort.process(), PFJetBenchmark.process(), core.EventSelector.EventSelector.process(), PFTauElecRejectionBenchmark.process(), ora::PrimitiveMapping.process(), EgammaHLTPixelMatchElectronAlgo.process(), ZMuMuRochCorAnalyzer.ZMuMuRochCorAnalyzer.process(), L1Comparator.process(), L1GctWheelEnergyFpga.process(), L1GctWheelJetFpga.process(), core.SkimAnalyzerCount.SkimAnalyzerCount.process(), core.JSONAnalyzer.JSONAnalyzer.process(), analyzer.Analyzer.process(), AlphaTAnalyzer.AlphaTAnalyzer.process(), cscdqm::HWStandbyType.process, ora::BlobMapping.process(), L1GctElectronSorter.process(), L1GctGlobalEnergyAlgos.process(), JetAnalyzer.JetAnalyzer.process(), L1GctTdrJetFinder.process(), core.TriggerBitAnalyzer.TriggerBitAnalyzer.process(), fwlite::internal::DataKey.process(), TFWLiteSelectorBasic.process(), L1GctJetLeafCard.process(), KDTreeLinkerBase.process(), DTTFFEDReader.process(), L1GlobalCaloTrigger.process(), TFWLiteSelector< TrackAnalysisAlgorithm >.process(), TFWLiteSelector< __class__Worker >.process(), TFWLiteSelector< TWorker >.process(), TFWLiteSelector< ThingsWorker >.process(), EcalFenixTcp.process(), ora::OraReferenceMapping.process(), SeedClusterRemover.process(), TestOutliers.process, HLTTrackClusterRemoverNew.process(), DiLeptonAnalyzer.DiLeptonAnalyzer.process(), HITrackClusterRemover.process(), HTTP.RequestManager.process(), GenLumiInfoProduct::ProcessInfo.process(), ora::UniqueReferenceMapping.process(), objects.VertexAnalyzer.VertexAnalyzer.process(), core.PileUpAnalyzer.PileUpAnalyzer.process(), EcalFenixStrip.process(), ora::OraPtrMapping.process(), objects.JetAnalyzer.JetAnalyzer.process(), lhef::LHERunInfo::Process.process(), ora::NamedRefMapping.process(), CaloTowersCreationAlgo.process(), objects.TauAnalyzer.TauAnalyzer.process(), ora::ArrayMapping.process(), core.AutoFillTreeProducer.AutoFillTreeProducer.process(), EgammaHLTValidationUtils.EgammaDQMModuleMaker.process, ora::CArrayMapping.process(), L1GctJetFinderBase.process(), ora::ObjectMapping.process(), ora::EmptyMapping.process(), Config.Process.process, looper.Looper.process(), gen.GeneratorAnalyzer.GeneratorAnalyzer.process(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.process(), edm::SubProcess.process(), objects.PhotonAnalyzer.PhotonAnalyzer.process(), edm::ProductHolderIndexHelper::Item.process(), objects.LeptonAnalyzer.LeptonAnalyzer.process(), Config.SubProcess.process(), and cmsPerfHarvest.visit().

Referenced by ConfigBuilder.ConfigBuilder.prepare_VALIDATION().

1885  def renameHLTprocessInSequence(self,sequence,proc=None,HLTprocess='HLT'):
1886  if self._options.hltProcess:
1887  proc=self._options.hltProcess
1888  else:
1889  proc=self.process.name_()
1890  if proc==HLTprocess: return
1891  # look up all module in dqm sequence
1892  print "replacing %s process name - sequence %s will use '%s'" % (HLTprocess,sequence, proc)
1893  getattr(self.process,sequence).visit(ConfigBuilder.MassSearchReplaceProcessNameVisitor(HLTprocess,proc,whitelist = ("subSystemFolder",)))
1894  if 'from Configuration.Applications.ConfigBuilder import ConfigBuilder' not in self.additionalCommands:
1895  self.additionalCommands.append('from Configuration.Applications.ConfigBuilder import ConfigBuilder')
1896  self.additionalCommands.append('process.%s.visit(ConfigBuilder.MassSearchReplaceProcessNameVisitor("%s", "%s", whitelist = ("subSystemFolder",)))'% (sequence,HLTprocess, proc))
1897 
def visit
Retrieve data from a perf suite output (sub) directory, only examines TimeSize at the moment...
def ConfigBuilder.ConfigBuilder.renameInputTagsInSequence (   self,
  sequence,
  oldT = "rawDataCollector",
  newT = "rawDataRepacker" 
)

Definition at line 1874 of file ConfigBuilder.py.

References helpers.massSearchReplaceAnyInputTag(), CMSTestAnalyzer.CMSTestAnalyzer.process(), edm::ProductLabels.process, Printer.Printer.process(), DTTTrigProd.DTTTrigProd.process, SimpleTreeAnalyzer.SimpleTreeAnalyzer.process(), HcalHitRelabeller.process(), Histogrammer.Histogrammer.process(), helper::NullPostProcessor< reco::CandidateCollection, edm::EDFilter >.process(), helper::NullPostProcessor< typename::helper::SelectedOutputCollectionTrait< reco::TrackCollection >::type, EdmFilter >.process(), NullPostProcessor< reco::CandidateCollection >.process(), NullPostProcessor< OutputCollection, edm::EDFilter >.process(), EDFilter<>.process(), EDProducer<>.process(), NullPostProcessor< OutputCollection >.process(), DTDQMMerge.DTDQMMerge.process, DTDqm.DTDqm.process, helper::NullPostProcessor< OutputCollection, EdmFilter >.process(), SimpleJetAnalyzer.SimpleJetAnalyzer.process(), DTValidSummary.DTValidSummary.process, NullPostProcessor< OutputCollection, EdmFilter >.process(), SimpleTreeProducer.SimpleTreeProducer.process(), DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.process, DTDQMHarvesting.DTDQMHarvesting.process, DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.process, DTAnalysisResiduals.DTAnalysisResiduals.process, tfwliteselectortest::ThingsWorker.process(), DTResidualCalibration.DTResidualCalibration.process, DTNoiseCalibration.DTNoiseCalibration.process, clangcms::CatchAll.process(), core.Analyzer.Analyzer.process(), DTDQMValidation.DTDQMValidation.process, DTTTrigValid.DTTTrigValid.process, EcalFenixTcpsFgvbEB.process(), gen.LHEAnalyzer.LHEAnalyzer.process(), CSCTFDTReceiver.process(), EcalFenixBypassLin.process(), EcalFenixPeakFinder.process(), MetTreeProducer.MetTreeProducer.process(), tfwliteselectortest::ThingsTSelector.process(), EcalFenixMaxof2.process(), CSCTFMonitorInterface.process(), CSCMonitorInterface.process(), TTULogic.process(), examples::TrackAnalysisAlgorithm.process(), RBCLogic.process(), TTUWedgeORLogic.process(), EcalFenixEtStrip.process(), RBCPatternLogic.process(), TTUSectorORLogic.process(), PFPileUpAlgo.process(), EcalFenixTcpFormat.process(), HcalCableMapper.process(), __class__Worker.process(), npstat::AbsVisitor< Input, unsigned long >.process(), npstat::AbsVisitor< Input, Result >.process(), EcalFenixAmplitudeFilter.process(), DTT0DBValidation.DTT0DBValidation.process, EcalFenixStripFormatEE.process(), BTagDifferentialPlot.process(), npstat::AbsArrayProjector< Input, Result >.process(), EcalFenixStripFormatEB.process(), DTVDriftSegmentWriter.DTVDriftSegmentWriter.process, RBCTestLogic.process(), TTUPointingLogic.process(), DTVDriftMeanTimerWriter.DTVDriftMeanTimerWriter.process, MetAnalyzer.MetAnalyzer.process(), EcalFenixEtTot.process(), core.TriggerBitFilter.TriggerBitFilter.process(), TTUTwoORLogic.process(), DTTTrigResidualCorr.DTTTrigResidualCorr.process, ora::IRelationalMapping.process(), core.TriggerMatchAnalyzer.TriggerMatchAnalyzer.process(), EcalFenixStripFgvbEE.process(), gen.LHEWeightAnalyzer.LHEWeightAnalyzer.process(), RBCChamberORLogic.process(), TTUTrackingAlg.process(), EcalFenixTcpFgvbEE.process(), DTTTrigCorrFirst.DTTTrigCorrFirst.process, gen.HiggsDecayModeAnalyzer.HiggsDecayModeAnalyzer.process(), HcalSimpleReconstructor.process(), EcalFenixFgvbEB.process(), L1GctNullJetFinder.process(), edm::ConsumesInfo.process(), L1GctEmLeafCard.process(), SiStripClusterToDigiProducer.process(), EcalFenixLinearizer.process(), L1GctSimpleJetFinder.process(), TriggerAnalyzer.TriggerAnalyzer.process(), L1GctHardwareJetFinder.process(), edm::InputTag.process(), RPCWheel.process(), DTTTrigTimeBoxesWriter.DTTTrigTimeBoxesWriter.process, gen.GenHeavyFlavourAnalyzer.GenHeavyFlavourAnalyzer.process(), L1GctJetFinalStage.process(), L1GctProcessor.process(), TTUConfigurator.process(), gen.PDFWeightsAnalyzer.PDFWeightsAnalyzer.process(), L1GctGlobalHfSumAlgos.process(), npstat::VisitCounter< Input >.process(), PFMETBenchmark.process(), L1GctElectronFinalSort.process(), PFJetBenchmark.process(), core.EventSelector.EventSelector.process(), PFTauElecRejectionBenchmark.process(), ora::PrimitiveMapping.process(), EgammaHLTPixelMatchElectronAlgo.process(), ZMuMuRochCorAnalyzer.ZMuMuRochCorAnalyzer.process(), L1Comparator.process(), L1GctWheelEnergyFpga.process(), core.SkimAnalyzerCount.SkimAnalyzerCount.process(), L1GctWheelJetFpga.process(), core.JSONAnalyzer.JSONAnalyzer.process(), analyzer.Analyzer.process(), AlphaTAnalyzer.AlphaTAnalyzer.process(), cscdqm::HWStandbyType.process, ora::BlobMapping.process(), L1GctGlobalEnergyAlgos.process(), L1GctElectronSorter.process(), JetAnalyzer.JetAnalyzer.process(), L1GctTdrJetFinder.process(), core.TriggerBitAnalyzer.TriggerBitAnalyzer.process(), fwlite::internal::DataKey.process(), TFWLiteSelectorBasic.process(), L1GctJetLeafCard.process(), KDTreeLinkerBase.process(), DTTFFEDReader.process(), L1GlobalCaloTrigger.process(), TFWLiteSelector< ThingsWorker >.process(), TFWLiteSelector< TrackAnalysisAlgorithm >.process(), TFWLiteSelector< __class__Worker >.process(), TFWLiteSelector< TWorker >.process(), ora::OraReferenceMapping.process(), EcalFenixTcp.process(), SeedClusterRemover.process(), HLTTrackClusterRemoverNew.process(), TestOutliers.process, DiLeptonAnalyzer.DiLeptonAnalyzer.process(), HTTP.RequestManager.process(), HITrackClusterRemover.process(), GenLumiInfoProduct::ProcessInfo.process(), ora::UniqueReferenceMapping.process(), objects.VertexAnalyzer.VertexAnalyzer.process(), core.PileUpAnalyzer.PileUpAnalyzer.process(), EcalFenixStrip.process(), ora::OraPtrMapping.process(), objects.JetAnalyzer.JetAnalyzer.process(), lhef::LHERunInfo::Process.process(), ora::NamedRefMapping.process(), CaloTowersCreationAlgo.process(), objects.TauAnalyzer.TauAnalyzer.process(), ora::ArrayMapping.process(), core.AutoFillTreeProducer.AutoFillTreeProducer.process(), EgammaHLTValidationUtils.EgammaDQMModuleMaker.process, ora::CArrayMapping.process(), L1GctJetFinderBase.process(), ora::ObjectMapping.process(), ora::EmptyMapping.process(), Config.Process.process, looper.Looper.process(), gen.GeneratorAnalyzer.GeneratorAnalyzer.process(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.process(), edm::SubProcess.process(), objects.PhotonAnalyzer.PhotonAnalyzer.process(), edm::ProductHolderIndexHelper::Item.process(), objects.LeptonAnalyzer.LeptonAnalyzer.process(), and Config.SubProcess.process().

1875  def renameInputTagsInSequence(self,sequence,oldT="rawDataCollector",newT="rawDataRepacker"):
1876  print "Replacing all InputTag %s => %s"%(oldT,newT)
1877  from PhysicsTools.PatAlgos.tools.helpers import massSearchReplaceAnyInputTag
1878  massSearchReplaceAnyInputTag(getattr(self.process,sequence),oldT,newT)
1879  loadMe='from PhysicsTools.PatAlgos.tools.helpers import massSearchReplaceAnyInputTag'
1880  if not loadMe in self.additionalCommands:
1881  self.additionalCommands.append(loadMe)
1882  self.additionalCommands.append('massSearchReplaceAnyInputTag(process.%s,"%s","%s",False,True)'%(sequence,oldT,newT))
def massSearchReplaceAnyInputTag
Definition: helpers.py:262
def ConfigBuilder.ConfigBuilder.scheduleSequence (   self,
  seq,
  prefix,
  what = 'Path' 
)

Definition at line 1197 of file ConfigBuilder.py.

References CMSTestAnalyzer.CMSTestAnalyzer.process(), edm::ProductLabels.process, Printer.Printer.process(), DTTTrigProd.DTTTrigProd.process, SimpleTreeAnalyzer.SimpleTreeAnalyzer.process(), HcalHitRelabeller.process(), Histogrammer.Histogrammer.process(), helper::NullPostProcessor< reco::CandidateCollection, edm::EDFilter >.process(), helper::NullPostProcessor< typename::helper::SelectedOutputCollectionTrait< reco::TrackCollection >::type, EdmFilter >.process(), DTDqm.DTDqm.process, DTDQMMerge.DTDQMMerge.process, NullPostProcessor< reco::CandidateCollection >.process(), NullPostProcessor< OutputCollection, edm::EDFilter >.process(), EDFilter<>.process(), EDProducer<>.process(), NullPostProcessor< OutputCollection >.process(), NullPostProcessor< OutputCollection, EdmFilter >.process(), DTValidSummary.DTValidSummary.process, SimpleJetAnalyzer.SimpleJetAnalyzer.process(), helper::NullPostProcessor< OutputCollection, EdmFilter >.process(), SimpleTreeProducer.SimpleTreeProducer.process(), DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.process, DTAnalysisResiduals.DTAnalysisResiduals.process, tfwliteselectortest::ThingsWorker.process(), DTDQMHarvesting.DTDQMHarvesting.process, DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.process, DTNoiseCalibration.DTNoiseCalibration.process, DTResidualCalibration.DTResidualCalibration.process, clangcms::CatchAll.process(), DTDQMValidation.DTDQMValidation.process, core.Analyzer.Analyzer.process(), DTTTrigValid.DTTTrigValid.process, EcalFenixTcpsFgvbEB.process(), gen.LHEAnalyzer.LHEAnalyzer.process(), CSCTFDTReceiver.process(), EcalFenixBypassLin.process(), EcalFenixPeakFinder.process(), MetTreeProducer.MetTreeProducer.process(), tfwliteselectortest::ThingsTSelector.process(), EcalFenixMaxof2.process(), CSCTFMonitorInterface.process(), CSCMonitorInterface.process(), TTULogic.process(), examples::TrackAnalysisAlgorithm.process(), RBCLogic.process(), TTUWedgeORLogic.process(), EcalFenixEtStrip.process(), RBCPatternLogic.process(), TTUSectorORLogic.process(), PFPileUpAlgo.process(), EcalFenixTcpFormat.process(), npstat::AbsVisitor< Input, unsigned long >.process(), __class__Worker.process(), HcalCableMapper.process(), npstat::AbsVisitor< Input, Result >.process(), EcalFenixAmplitudeFilter.process(), DTT0DBValidation.DTT0DBValidation.process, EcalFenixStripFormatEE.process(), npstat::AbsArrayProjector< Input, Result >.process(), BTagDifferentialPlot.process(), DTVDriftMeanTimerWriter.DTVDriftMeanTimerWriter.process, EcalFenixStripFormatEB.process(), DTVDriftSegmentWriter.DTVDriftSegmentWriter.process, TTUPointingLogic.process(), MetAnalyzer.MetAnalyzer.process(), RBCTestLogic.process(), EcalFenixEtTot.process(), core.TriggerBitFilter.TriggerBitFilter.process(), TTUTwoORLogic.process(), DTTTrigResidualCorr.DTTTrigResidualCorr.process, ora::IRelationalMapping.process(), core.TriggerMatchAnalyzer.TriggerMatchAnalyzer.process(), EcalFenixStripFgvbEE.process(), gen.LHEWeightAnalyzer.LHEWeightAnalyzer.process(), EcalFenixTcpFgvbEE.process(), RBCChamberORLogic.process(), TTUTrackingAlg.process(), DTTTrigCorrFirst.DTTTrigCorrFirst.process, gen.HiggsDecayModeAnalyzer.HiggsDecayModeAnalyzer.process(), EcalFenixFgvbEB.process(), HcalSimpleReconstructor.process(), L1GctNullJetFinder.process(), edm::ConsumesInfo.process(), L1GctEmLeafCard.process(), SiStripClusterToDigiProducer.process(), L1GctSimpleJetFinder.process(), TriggerAnalyzer.TriggerAnalyzer.process(), EcalFenixLinearizer.process(), L1GctHardwareJetFinder.process(), edm::InputTag.process(), RPCWheel.process(), gen.GenHeavyFlavourAnalyzer.GenHeavyFlavourAnalyzer.process(), DTTTrigTimeBoxesWriter.DTTTrigTimeBoxesWriter.process, L1GctJetFinalStage.process(), L1GctProcessor.process(), TTUConfigurator.process(), gen.PDFWeightsAnalyzer.PDFWeightsAnalyzer.process(), L1GctGlobalHfSumAlgos.process(), PFMETBenchmark.process(), npstat::VisitCounter< Input >.process(), L1GctElectronFinalSort.process(), PFJetBenchmark.process(), core.EventSelector.EventSelector.process(), PFTauElecRejectionBenchmark.process(), ora::PrimitiveMapping.process(), EgammaHLTPixelMatchElectronAlgo.process(), ZMuMuRochCorAnalyzer.ZMuMuRochCorAnalyzer.process(), L1Comparator.process(), L1GctWheelEnergyFpga.process(), L1GctWheelJetFpga.process(), core.SkimAnalyzerCount.SkimAnalyzerCount.process(), core.JSONAnalyzer.JSONAnalyzer.process(), analyzer.Analyzer.process(), AlphaTAnalyzer.AlphaTAnalyzer.process(), cscdqm::HWStandbyType.process, ora::BlobMapping.process(), L1GctElectronSorter.process(), L1GctGlobalEnergyAlgos.process(), JetAnalyzer.JetAnalyzer.process(), core.TriggerBitAnalyzer.TriggerBitAnalyzer.process(), L1GctTdrJetFinder.process(), fwlite::internal::DataKey.process(), TFWLiteSelectorBasic.process(), KDTreeLinkerBase.process(), L1GctJetLeafCard.process(), DTTFFEDReader.process(), L1GlobalCaloTrigger.process(), TFWLiteSelector< ThingsWorker >.process(), TFWLiteSelector< __class__Worker >.process(), TFWLiteSelector< TrackAnalysisAlgorithm >.process(), TFWLiteSelector< TWorker >.process(), ora::OraReferenceMapping.process(), EcalFenixTcp.process(), SeedClusterRemover.process(), TestOutliers.process, HLTTrackClusterRemoverNew.process(), DiLeptonAnalyzer.DiLeptonAnalyzer.process(), HTTP.RequestManager.process(), HITrackClusterRemover.process(), GenLumiInfoProduct::ProcessInfo.process(), ora::UniqueReferenceMapping.process(), objects.VertexAnalyzer.VertexAnalyzer.process(), core.PileUpAnalyzer.PileUpAnalyzer.process(), EcalFenixStrip.process(), ora::OraPtrMapping.process(), objects.JetAnalyzer.JetAnalyzer.process(), lhef::LHERunInfo::Process.process(), ora::NamedRefMapping.process(), CaloTowersCreationAlgo.process(), objects.TauAnalyzer.TauAnalyzer.process(), ora::ArrayMapping.process(), core.AutoFillTreeProducer.AutoFillTreeProducer.process(), EgammaHLTValidationUtils.EgammaDQMModuleMaker.process, ora::CArrayMapping.process(), L1GctJetFinderBase.process(), ora::ObjectMapping.process(), ora::EmptyMapping.process(), Config.Process.process, looper.Looper.process(), gen.GeneratorAnalyzer.GeneratorAnalyzer.process(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.process(), edm::SubProcess.process(), objects.PhotonAnalyzer.PhotonAnalyzer.process(), edm::ProductHolderIndexHelper::Item.process(), objects.LeptonAnalyzer.LeptonAnalyzer.process(), and Config.SubProcess.process().

Referenced by ConfigBuilder.ConfigBuilder.PrintAllModules.leave(), ConfigBuilder.ConfigBuilder.prepare_CFWRITER(), ConfigBuilder.ConfigBuilder.prepare_DATAMIX(), ConfigBuilder.ConfigBuilder.prepare_DIGI(), ConfigBuilder.ConfigBuilder.prepare_DIGI2RAW(), ConfigBuilder.ConfigBuilder.prepare_DIGIPREMIX(), ConfigBuilder.ConfigBuilder.prepare_L1(), ConfigBuilder.ConfigBuilder.prepare_L1Reco(), ConfigBuilder.ConfigBuilder.prepare_L1TrackTrigger(), ConfigBuilder.ConfigBuilder.prepare_POSTRECO(), ConfigBuilder.ConfigBuilder.prepare_RAW2DIGI(), ConfigBuilder.ConfigBuilder.prepare_RECO(), ConfigBuilder.ConfigBuilder.prepare_RECOBEFMIX(), ConfigBuilder.ConfigBuilder.prepare_REPACK(), ConfigBuilder.ConfigBuilder.prepare_USER(), and ConfigBuilder.ConfigBuilder.scheduleSequenceAtEnd().

1198  def scheduleSequence(self,seq,prefix,what='Path'):
1199  if '*' in seq:
1200  #create only one path with all sequences in it
1201  for i,s in enumerate(seq.split('*')):
1202  if i==0:
1203  setattr(self.process,prefix,getattr(cms,what)( getattr(self.process, s) ))
1204  else:
1205  p=getattr(self.process,prefix)
1206  p+=getattr(self.process, s)
1207  self.schedule.append(getattr(self.process,prefix))
1208  return
1209  else:
1210  #create as many path as many sequences
1211  if not '+' in seq:
1212  if self.nextScheduleIsConditional:
1213  self.conditionalPaths.append(prefix)
1214  setattr(self.process,prefix,getattr(cms,what)( getattr(self.process, seq) ))
1215  self.schedule.append(getattr(self.process,prefix))
1216  else:
1217  for i,s in enumerate(seq.split('+')):
1218  sn=prefix+'%d'%(i)
1219  setattr(self.process,sn,getattr(cms,what)( getattr(self.process, s) ))
1220  self.schedule.append(getattr(self.process,sn))
1221  return
def ConfigBuilder.ConfigBuilder.scheduleSequenceAtEnd (   self,
  seq,
  prefix 
)

Definition at line 1222 of file ConfigBuilder.py.

References ConfigBuilder.ConfigBuilder.scheduleSequence().

Referenced by ConfigBuilder.ConfigBuilder.prepare_ENDJOB().

1223  def scheduleSequenceAtEnd(self,seq,prefix):
1224  self.scheduleSequence(seq,prefix,what='EndPath')
1225  return

Member Data Documentation

ConfigBuilder.ConfigBuilder._options
private

Definition at line 198 of file ConfigBuilder.py.

ConfigBuilder.ConfigBuilder.addAlCaSelects = False
static

Definition at line 547 of file ConfigBuilder.py.

list ConfigBuilder.ConfigBuilder.afterHLT = self.schedule[self.schedule.index(self.process.HLTSchedule)+1:]
static

Definition at line 2155 of file ConfigBuilder.py.

tuple ConfigBuilder.ConfigBuilder.alcaConfig = self.loadDefaultOrSpecifiedCFF(sequence,self.ALCADefaultCFF)
static

Definition at line 1235 of file ConfigBuilder.py.

ConfigBuilder.ConfigBuilder.ALCADefaultCFF

Definition at line 908 of file ConfigBuilder.py.

tuple ConfigBuilder.ConfigBuilder.alcaList = sequence.split("+")
static

Definition at line 1239 of file ConfigBuilder.py.

tuple ConfigBuilder.ConfigBuilder.alcastream = getattr(alcaConfig,name)
static

Definition at line 1246 of file ConfigBuilder.py.

list ConfigBuilder.ConfigBuilder.allFcn = []
static

Definition at line 841 of file ConfigBuilder.py.

list ConfigBuilder.ConfigBuilder.available = []
static

Definition at line 1281 of file ConfigBuilder.py.

list ConfigBuilder.ConfigBuilder.beforeHLT = self.schedule[:self.schedule.index(self.process.HLTSchedule)]
static

Definition at line 2154 of file ConfigBuilder.py.

list ConfigBuilder.ConfigBuilder.cffToBeLoaded = VtxSmeared[self._options.beamspot]
static

Definition at line 1363 of file ConfigBuilder.py.

tuple ConfigBuilder.ConfigBuilder.com = string.lstrip(com)
static

Definition at line 885 of file ConfigBuilder.py.

tuple ConfigBuilder.ConfigBuilder.combined_mapping = copy.deepcopy( autoDQM )
static

Definition at line 1976 of file ConfigBuilder.py.

tuple ConfigBuilder.ConfigBuilder.command = command.strip()
static

drop LHEXMLStringProduct on input to save memory if appropriate

Definition at line 458 of file ConfigBuilder.py.

Referenced by cmsRelvalreport.Profile._profile_edmsize(), cmsRelvalreport.Profile._profile_igprof(), cmsRelvalreport.Profile._profile_Memcheck_Valgrind(), cmsRelvalreport.Profile._profile_None(), cmsRelvalreport.Profile._profile_valgrindfce(), cmsRelvalreport.Profile._save_output(), runall.testit.run(), and cmsswPreprocessor.CmsswPreprocessor.run().

string ConfigBuilder.ConfigBuilder.CppType = 'PoolOutputModule'
static

Definition at line 552 of file ConfigBuilder.py.

tuple ConfigBuilder.ConfigBuilder.custMap = DictTypes.SortedKeysDict()
static

Definition at line 820 of file ConfigBuilder.py.

tuple ConfigBuilder.ConfigBuilder.customiseFile = re.sub(r'\.pyc$', '.py', package.__file__)
static

Definition at line 855 of file ConfigBuilder.py.

ConfigBuilder.ConfigBuilder.defaultFileName = self._options.outfile_name
static

Definition at line 530 of file ConfigBuilder.py.

tuple ConfigBuilder.ConfigBuilder.defaultFileName = self._options.outfile_name.replace('.root','_in'+theTier+'.root')
static

Definition at line 532 of file ConfigBuilder.py.

ConfigBuilder.ConfigBuilder.DIGI2RAWDefaultCFF

Definition at line 912 of file ConfigBuilder.py.

Referenced by ConfigBuilder.ConfigBuilder.prepare_DIGI2RAW().

ConfigBuilder.ConfigBuilder.DIGIDefaultCFF

Definition at line 911 of file ConfigBuilder.py.

Referenced by ConfigBuilder.ConfigBuilder.prepare_DIGI(), and ConfigBuilder.ConfigBuilder.prepare_DIGIPREMIX().

ConfigBuilder.ConfigBuilder.DQMSaverCFF

Definition at line 1965 of file ConfigBuilder.py.

tuple ConfigBuilder.ConfigBuilder.fileName = opt.split('.')
static

Definition at line 825 of file ConfigBuilder.py.

Referenced by readConfig.fileINI.read().

tuple ConfigBuilder.ConfigBuilder.filterConfig = self.load(sequence.split('.')[0])
static

load the relevant part

Definition at line 1617 of file ConfigBuilder.py.

tuple ConfigBuilder.ConfigBuilder.filterSeq = sequence.split('.')
static

Definition at line 1618 of file ConfigBuilder.py.

string ConfigBuilder.ConfigBuilder.final_snippet = '\n'
static

Definition at line 837 of file ConfigBuilder.py.

ConfigBuilder.ConfigBuilder.GENDefaultCFF

Definition at line 909 of file ConfigBuilder.py.

list ConfigBuilder.ConfigBuilder.generatorModule = sys.modules[loadFragment]
static

Definition at line 1330 of file ConfigBuilder.py.

ConfigBuilder.ConfigBuilder.genModules = generatorModule.__dict__
static

Definition at line 1331 of file ConfigBuilder.py.

tuple ConfigBuilder.ConfigBuilder.genSeqName = sequence.split('.')
static
Enrich the schedule with the rest of the generation step 

Definition at line 1358 of file ConfigBuilder.py.

tuple ConfigBuilder.ConfigBuilder.harvestingList = list(set(harvestingList))
static

Definition at line 1981 of file ConfigBuilder.py.

tuple ConfigBuilder.ConfigBuilder.harvestingstream = getattr(harvestingConfig,name)
static

Definition at line 1988 of file ConfigBuilder.py.

ConfigBuilder.ConfigBuilder.HLTDefaultCFF

Definition at line 915 of file ConfigBuilder.py.

tuple ConfigBuilder.ConfigBuilder.io = open(self._options.io,'w')
static

Definition at line 2229 of file ConfigBuilder.py.

dictionary ConfigBuilder.ConfigBuilder.ioJson = {}
static

Definition at line 2230 of file ConfigBuilder.py.

ConfigBuilder.ConfigBuilder.L1EMDefaultCFF

Definition at line 913 of file ConfigBuilder.py.

Referenced by ConfigBuilder.ConfigBuilder.prepare_L1().

ConfigBuilder.ConfigBuilder.L1MENUDefaultCFF

Definition at line 914 of file ConfigBuilder.py.

ConfigBuilder.ConfigBuilder.L1RecoDefaultCFF

Definition at line 917 of file ConfigBuilder.py.

Referenced by ConfigBuilder.ConfigBuilder.prepare_L1Reco().

ConfigBuilder.ConfigBuilder.L1TrackTriggerDefaultCFF

Definition at line 918 of file ConfigBuilder.py.

Referenced by ConfigBuilder.ConfigBuilder.prepare_L1TrackTrigger().

tuple ConfigBuilder.ConfigBuilder.lastStep = getattr(harvestingConfig,"ALCAHARVESTDQMSaveAndMetadataWriter")
static

Definition at line 2020 of file ConfigBuilder.py.

ConfigBuilder.ConfigBuilder.loadFailure = True
static

Definition at line 1324 of file ConfigBuilder.py.

tuple ConfigBuilder.ConfigBuilder.loadFragment = self._options.evt_type.replace('.py','',)
static

Definition at line 1314 of file ConfigBuilder.py.

string ConfigBuilder.ConfigBuilder.loadFragment = 'Configuration.Generator.'
static

Definition at line 1317 of file ConfigBuilder.py.

int ConfigBuilder.ConfigBuilder.maxLevel = 0
static

Definition at line 1240 of file ConfigBuilder.py.

string ConfigBuilder.ConfigBuilder.message = pileupSpec+' is not a know mixing scenario:\n available are: '
static

Definition at line 678 of file ConfigBuilder.py.

Referenced by rrapi.RRApiError.__str__(), argparse.ArgumentError.__str__(), and python.rootplot.argparse.ArgumentError.__str__().

dictionary ConfigBuilder.ConfigBuilder.mixingDict = {'file':pileupSpec}
static

Definition at line 683 of file ConfigBuilder.py.

tuple ConfigBuilder.ConfigBuilder.mixingDict = copy.copy(Mixing[pileupSpec])
static

Definition at line 688 of file ConfigBuilder.py.

tuple ConfigBuilder.ConfigBuilder.nl = self.additionalOutputs.keys()
static

Definition at line 2107 of file ConfigBuilder.py.

tuple ConfigBuilder.ConfigBuilder.outDefDictStr = outDefDict.__str__()
static

Definition at line 505 of file ConfigBuilder.py.

tuple ConfigBuilder.ConfigBuilder.outList = eval(self._options.outputDefinition)
static

Definition at line 503 of file ConfigBuilder.py.

tuple ConfigBuilder.ConfigBuilder.output
static
Initial value:
1 = cms.OutputModule(CppType,
2  theEventContent.clone(),
3  fileName = cms.untracked.string(theFileName),
4  dataset = cms.untracked.PSet(
5  dataTier = cms.untracked.string(theTier),
6  filterName = cms.untracked.string(theFilterName))
7  )

Definition at line 556 of file ConfigBuilder.py.

Referenced by personalPlayback.Playback.do_create_lumi(), and personalPlayback.Playback.do_exec().

list ConfigBuilder.ConfigBuilder.output = self.additionalOutputs[name]
static

Definition at line 2110 of file ConfigBuilder.py.

Referenced by personalPlayback.Playback.do_create_lumi(), and personalPlayback.Playback.do_exec().

tuple ConfigBuilder.ConfigBuilder.outputModule = getattr(self.process,theModuleLabel)
static

Definition at line 581 of file ConfigBuilder.py.

string ConfigBuilder.ConfigBuilder.outputModuleCfgCode = ""
static

adding standard sequences might change the inputEventContent option and therefore needs to be finalized after

Definition at line 2063 of file ConfigBuilder.py.

tuple ConfigBuilder.ConfigBuilder.outputModuleCfgCode = self.addOutput()
static

Definition at line 2065 of file ConfigBuilder.py.

string ConfigBuilder.ConfigBuilder.outputModuleName = streamType+'output'
static

Definition at line 646 of file ConfigBuilder.py.

list ConfigBuilder.ConfigBuilder.package = sys.modules[packageName]
static

Definition at line 852 of file ConfigBuilder.py.

Referenced by Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.properties().

tuple ConfigBuilder.ConfigBuilder.packageName = f.replace(".py","")
static

Definition at line 850 of file ConfigBuilder.py.

ConfigBuilder.ConfigBuilder.PATDefaultCFF

Definition at line 920 of file ConfigBuilder.py.

tuple ConfigBuilder.ConfigBuilder.path = getattr(self.process,theModuleLabel+'_step')
static

Definition at line 583 of file ConfigBuilder.py.

Referenced by python.rootplot.rootmath.Target.__repr__().

string ConfigBuilder.ConfigBuilder.pathName = 'dqmoffline_step'
static

Definition at line 1931 of file ConfigBuilder.py.

list ConfigBuilder.ConfigBuilder.pathNames = ['process.'+p.label_() for p in beforeHLT]
static

Definition at line 2156 of file ConfigBuilder.py.

tuple ConfigBuilder.ConfigBuilder.pfs = getattr(self.process,self.productionFilterSequence)
static

Definition at line 2188 of file ConfigBuilder.py.

tuple ConfigBuilder.ConfigBuilder.pileupSpec = self._options.pileup.split(',')
static

Definition at line 673 of file ConfigBuilder.py.

ConfigBuilder.ConfigBuilder.RAW2DIGIDefaultCFF

Definition at line 916 of file ConfigBuilder.py.

Referenced by ConfigBuilder.ConfigBuilder.prepare_RAW2DIGI().

ConfigBuilder.ConfigBuilder.RECODefaultCFF

Definition at line 919 of file ConfigBuilder.py.

Referenced by ConfigBuilder.ConfigBuilder.prepare_RECO().

tuple ConfigBuilder.ConfigBuilder.rest = opt.split('.')
static

Definition at line 828 of file ConfigBuilder.py.

string ConfigBuilder.ConfigBuilder.result = "process.schedule = cms.Schedule("
static

Definition at line 2143 of file ConfigBuilder.py.

tuple ConfigBuilder.ConfigBuilder.sequence = sequence.split('.')
static

Definition at line 1236 of file ConfigBuilder.py.

Referenced by config.Config.__str__().

string ConfigBuilder.ConfigBuilder.sequence = 'EIsequence'
static

Definition at line 1680 of file ConfigBuilder.py.

Referenced by config.Config.__str__().

tuple ConfigBuilder.ConfigBuilder.sequenceList = list(set(sequenceList))
static

Definition at line 1928 of file ConfigBuilder.py.

tuple ConfigBuilder.ConfigBuilder.shortName = name.replace('ALCARECOStream','')
static

Definition at line 1247 of file ConfigBuilder.py.

tuple ConfigBuilder.ConfigBuilder.shortname = skim.replace('SKIMStream','')
static

Definition at line 1705 of file ConfigBuilder.py.

ConfigBuilder.ConfigBuilder.SIMDefaultCFF

Definition at line 910 of file ConfigBuilder.py.

string ConfigBuilder.ConfigBuilder.simGeometry = ''
static

Definition at line 1045 of file ConfigBuilder.py.

list ConfigBuilder.ConfigBuilder.simGeometry = geoms[0]
static

Definition at line 1076 of file ConfigBuilder.py.

tuple ConfigBuilder.ConfigBuilder.skimstream = getattr(skimConfig,skim)
static

Definition at line 1699 of file ConfigBuilder.py.

tuple ConfigBuilder.ConfigBuilder.skimstreamDQM
static
Initial value:
1 = cms.FilteredStream(
2  responsible = skimstream.responsible,
3  name = skimstream.name+'DQM',
4  paths = skimstream.paths,
5  selectEvents = skimstream.selectEvents,
6  content = self._options.datatier+'EventContent',
7  dataTier = cms.untracked.string(self._options.datatier)
8  )

Definition at line 1713 of file ConfigBuilder.py.

tuple ConfigBuilder.ConfigBuilder.specialization = defineMixing(mixingDict)
static

Definition at line 708 of file ConfigBuilder.py.

list ConfigBuilder.ConfigBuilder.stepList = [re.sub(r'^prepare_', '', methodName) for methodName in ConfigBuilder.__dict__ if methodName.startswith('prepare_')]
static

Definition at line 219 of file ConfigBuilder.py.

list ConfigBuilder.ConfigBuilder.stepName = stepParts[0]
static

add the corresponding input content

Definition at line 225 of file ConfigBuilder.py.

tuple ConfigBuilder.ConfigBuilder.stepParts = step.split(":")
static

Definition at line 224 of file ConfigBuilder.py.

list ConfigBuilder.ConfigBuilder.stepSpec = self.stepMap[stepName]
static

Definition at line 731 of file ConfigBuilder.py.

tuple ConfigBuilder.ConfigBuilder.streamTypes = self._options.eventcontent.split(',')
static

ends the –output options model

Definition at line 603 of file ConfigBuilder.py.

tuple ConfigBuilder.ConfigBuilder.theEventContent = cms.PSet(outputCommands = cms.untracked.vstring('keep *'))
static

Definition at line 542 of file ConfigBuilder.py.

tuple ConfigBuilder.ConfigBuilder.theExtraOutputCommands = anyOf(['o','oC','outputCommands'],outDefDict,'')
static

Definition at line 516 of file ConfigBuilder.py.

tuple ConfigBuilder.ConfigBuilder.theFileName = self._options.dirout+anyOf(['fn','fileName'],outDefDict,defaultFileName)
static

Definition at line 534 of file ConfigBuilder.py.

ConfigBuilder.ConfigBuilder.theFileName = self._options.outfile_name
static

Definition at line 617 of file ConfigBuilder.py.

tuple ConfigBuilder.ConfigBuilder.theFilterName = anyOf(['f','ftN','filterName'],outDefDict,'')
static

Definition at line 513 of file ConfigBuilder.py.

string ConfigBuilder.ConfigBuilder.theFilterName = 'StreamALCACombined'
static

Definition at line 549 of file ConfigBuilder.py.

ConfigBuilder.ConfigBuilder.theFilterName = self._options.filtername
static

Definition at line 618 of file ConfigBuilder.py.

tuple ConfigBuilder.ConfigBuilder.theModuleLabel = anyOf(['l','mL','moduleLabel'],outDefDict,'')
static

Definition at line 515 of file ConfigBuilder.py.

ConfigBuilder.ConfigBuilder.theModuleLabel = name
static

Definition at line 525 of file ConfigBuilder.py.

tuple ConfigBuilder.ConfigBuilder.theObject = getattr(generatorModule,name)
static

Definition at line 1344 of file ConfigBuilder.py.

tuple ConfigBuilder.ConfigBuilder.theSelectEvent = anyOf(['s','sE','selectEvents'],outDefDict,'')
static

Definition at line 514 of file ConfigBuilder.py.

tuple ConfigBuilder.ConfigBuilder.theStreamType = anyOf(['e','ec','eventContent','streamType'],outDefDict,theTier)
static

event content

Definition at line 512 of file ConfigBuilder.py.

tuple ConfigBuilder.ConfigBuilder.theTier = anyOf(['t','tier','dataTier'],outDefDict)
static

Definition at line 509 of file ConfigBuilder.py.

tuple ConfigBuilder.ConfigBuilder.tiers = self._options.datatier.split(',')
static

Definition at line 604 of file ConfigBuilder.py.

tuple ConfigBuilder.ConfigBuilder.tmpOut = cms.EndPath(output)
static

Definition at line 2112 of file ConfigBuilder.py.

list ConfigBuilder.ConfigBuilder.tryNames
static
Initial value:
1 = [theStreamType.replace(theTier.replace('-',''),'')+theTier.replace('-','')+'output',
2  theStreamType.replace(theTier.replace('-',''),'')+theTier.replace('-','')+theFilterName+'output',
3  theStreamType.replace(theTier.replace('-',''),'')+theTier.replace('-','')+theFilterName+theSelectEvent.split(',')[0].replace(':','for').replace(' ','')+'output'
4  ]

Definition at line 519 of file ConfigBuilder.py.