CMS 3D CMS Logo

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

Functions

def MakePair
 
def ReadNewList
 

Variables

tuple defaultDict = MakePair(defaultList)
 
 defaultList = hcalLaserEventFilter.BadRunEventNumbers
 
tuple keys = defaultDict.keys()
 
tuple lines = open(i,'r')
 
tuple newBadDict = ReadNewList(newlines)
 
tuple newkeys = newBadDict.keys()
 
list newlines = []
 
dictionary notInNew = {}
 
dictionary notInOld = {}
 
tuple out = open("badEvents.py",'w')
 
tuple thistime = time.time()
 

Function Documentation

def GenerateHcalLaserBadRunList.MakePair (   startlist)

Definition at line 15 of file GenerateHcalLaserBadRunList.py.

Referenced by ReadNewList().

15 
16 def MakePair(startlist):
17  dict={}
18  for i in range(0,len(startlist),2):
19  key1=startlist[i]
20  key2=startlist[i+1]
21  runevent=(key1,key2)
22  dict[runevent]="%s,%s,"%(key1,key2)
23  return dict
def GenerateHcalLaserBadRunList.ReadNewList (   newlist)
Read a new list of bad runs from an input file, and
    creates a new list of output keys for the bad run/events.

Definition at line 24 of file GenerateHcalLaserBadRunList.py.

References MakePair().

24 
25 def ReadNewList(newlist):
26  ''' Read a new list of bad runs from an input file, and
27  creates a new list of output keys for the bad run/events.
28  '''
29  outlist=[]
30  for i in newlist:
31  temp=string.strip(i)
32  # Input is comma-separated
33  if temp.find(",")>-1:
34  temp=string.split(temp,",")
35  # Input is space-separated
36  else:
37  temp=string.split(temp)
38 
39  # Case 1: new input presented as "run lumi event" list
40  if len(temp)==3:
41  try:
42  run=string.atoi(temp[0])
43  evt=string.atoi(temp[2])
44  except:
45  print "Could not parse line '%s'"%i
46  # Case 2: new input presented as "run event" list
47  elif len(temp)==2:
48  try:
49  run=string.atoi(temp[0])
50  evt=string.atoi(temp[1])
51  except:
52  print "Could not parse line '%s'"%i
53  else:
54  print "Cannot parse line! ('%s')"%i
55  continue
56  outlist.append(run)
57  outlist.append(evt)
58  outDict=MakePair(outlist)
59  return outDict
60 

Variable Documentation

tuple GenerateHcalLaserBadRunList.defaultDict = MakePair(defaultList)

Definition at line 65 of file GenerateHcalLaserBadRunList.py.

GenerateHcalLaserBadRunList.defaultList = hcalLaserEventFilter.BadRunEventNumbers

Definition at line 64 of file GenerateHcalLaserBadRunList.py.

tuple GenerateHcalLaserBadRunList.keys = defaultDict.keys()

Definition at line 66 of file GenerateHcalLaserBadRunList.py.

tuple GenerateHcalLaserBadRunList.lines = open(i,'r')

Definition at line 79 of file GenerateHcalLaserBadRunList.py.

tuple GenerateHcalLaserBadRunList.newBadDict = ReadNewList(newlines)

Definition at line 82 of file GenerateHcalLaserBadRunList.py.

tuple GenerateHcalLaserBadRunList.newkeys = newBadDict.keys()

Definition at line 86 of file GenerateHcalLaserBadRunList.py.

list GenerateHcalLaserBadRunList.newlines = []

Definition at line 74 of file GenerateHcalLaserBadRunList.py.

dictionary GenerateHcalLaserBadRunList.notInNew = {}

Definition at line 89 of file GenerateHcalLaserBadRunList.py.

dictionary GenerateHcalLaserBadRunList.notInOld = {}

Definition at line 88 of file GenerateHcalLaserBadRunList.py.

tuple GenerateHcalLaserBadRunList.out = open("badEvents.py",'w')

Definition at line 91 of file GenerateHcalLaserBadRunList.py.

Referenced by ThreeThresholdAlgorithm.addFed(), SiStripNoises.allNoises(), SiStripPedestals.allPeds(), HLTBitAnalyzer.analyze(), EwkMuLumiMonitorDQM.analyze(), ParticleListDrawer.analyze(), HLTAnalyzer.analyze(), MuonGeometrySVGTemplate.analyze(), EcalTPGParamBuilder.analyze(), SiStripSpyMonitorModule.analyze(), Vx3DHLTAnalyzer.analyze(), LaserSorter.analyze(), BeamHaloAnalyzer.analyze(), cond::auth::Cipher.b64encrypt(), BeamHaloAnalyzer.BeamHaloAnalyzer(), DQMMessageLogger.beginJob(), RawToText.beginJob(), sistrip::SpyIdentifyRunsModule.beginJob(), SiStripShotFilter.beginJob(), LHEWriter.beginRun(), HepMCEventWriter.beginRun(), OutputDDToDDL.beginRun(), OutputMagneticFieldDDToDDL.beginRun(), BitArray< 9 >.byte(), DTTFBitArray< N >.byte(), CalcDeltas(), HCALResponse.cballShootNoNegative(), DCCTBEventBlock.compare(), DCCTBBlockPrototype.compare(), L1TOMDSHelper.connect(), DDHCalBarrelAlgo.constructInsideSector(), edm::FileLocator.convert(), TrackingActionExecutor.createDummyShiftReport(), SiStripActionExecutor.createDummyShiftReport(), LaserSorter.createOutStream(), TrackingActionExecutor.createShiftReport(), SiStripActionExecutor.createShiftReport(), PedeSteerer.createSteerFile(), ParticleDecayDrawer.decay(), decode_4(), cond::auth::Cipher.decrypt(), spu.def(), fftjetcms.densePeakTreeToStorable(), PhysicsTools::VarProcessor.deriv(), EmDQMPostProcessor.dividehistos(), JetMETDQMPostProcessor.dividehistos(), MedianCommonModeCalculator.doIt(), TT6CommonModeCalculator.doIt(), edm::ProcessDesc.dump(), PFDisplacedVertexHelper::TracksSelector.Dump(), PFDisplacedVertexHelper::VertexIdentifier.Dump(), DumpGctDigis.DumpGctDigis(), PrintGeomInfoAction.dumpLV(), PrintGeomMatInfo.dumpLV(), RunManager.DumpMagneticField(), RunManagerMT.DumpMagneticField(), MVAJetPuId.dumpVariables(), PileupJetIdAlgo.dumpVariables(), EcalClusterCrackCorrXMLTranslator.dumpXML(), InvRingCalib.duringLoop(), EcalEleCalibLooper.EcalEleCalibLooper(), EcalTPGParamBuilder.EcalTPGParamBuilder(), CSCEfficiency.efficienciesPerChamber(), EcalStatusAnalyzer.endJob(), PhiSymmetryCalibration_step2_SM.endJob(), PhiSymmetryCalibration_step2.endJob(), sistrip::SpyExtractRunModule.endJob(), PhiSymmetryCalibration.endJob(), testChannel.endJob(), GlobalTrackerMuonAlignment.endJob(), SiStripLorentzAngleCalibration.endOfJob(), SiStripBackplaneCalibration.endOfJob(), SiPixelLorentzAngleCalibration.endOfJob(), InvRingCalib.endOfLoop(), ExternalLHEAsciiDumper.endRun(), MuonTrackResidualAnalyzer.endRun(), MuonTrackAnalyzer.endRun(), MuonTrackValidator.endRun(), L1TOMDSHelper.enumToStringError(), L1TMenuHelper.enumToStringL1GtConditionCategory(), L1TMenuHelper.enumToStringL1GtConditionType(), L1TMenuHelper.enumToStringL1GtObject(), fit::RootMinuitCommands< Function >.errorHeader(), MultiFileBlob.expand(), HIPplots.extractAlignParams(), FFTJetPatRecoProducer.FFTJetPatRecoProducer(), dqm::DQMFileSaverOnline.fillOrigin(), BadGlobalMuonTagger.filter(), ElectronIdMVAProducer.filter(), VBFGenJetFilter.filterGenJets(), MultiFileBlob.finalized(), TSGForOI.findSeedsOnLayer(), DivisiveVertexFinder.findVertexesAlt(), cond::auth::DecodingKey.flush(), HCALResponse.gaussShootNoNegative(), GctDigiToPsbText.GctDigiToPsbText(), getAnyHisto(), getEcalTrans(), L1TMenuHelper.getEtaRangeByAlias(), getHisto(), getHisto2(), getHistoTH3F(), getHistoTProfile(), getHistoTProfile2D(), HcalO2OManager.getListOfNewIovs_test(), L1TMenuHelper.getLUSOTrigger(), popcon::EcalSRPHandler.getNewObjects(), popcon::EcalChannelStatusHandler.getNewObjects(), L1TMenuHelper.getPrescaleByAlias(), L1TMenuHelper.getQualityAlias(), getTH1F(), getTH2F(), getTH3F(), getTProfile(), getTProfile2D(), L1TwinMux::MBLTCollection.getUnassociatedRpcClusters(), MELaserPrim.getViewIds(), L1TOMDSHelper.getWbMTriggerXsecFits(), spu.inf(), MaterialAccountingGroup.info(), EcalSelectiveReadoutValidation.initAsciiFile(), l1t::MicroGMTLUT.initialize(), ThePEGInterface.initRepository(), edm::RootInputFileSequence.initTheFile(), fastmath.invSqrt(), SurveyAlignment.iterate(), L1Comparator.L1Comparator(), LaserSorter.LaserSorter(), main(), MatacqProducer.MatacqProducer(), HLTTauDQMPlotter.match(), MaterialBudgetTxt.MaterialBudgetTxt(), MBLTProducer(), MuonTrackAnalyzer.MuonTrackAnalyzer(), MuonTrackResidualAnalyzer.MuonTrackResidualAnalyzer(), PFMuonAlgo.muonTracks(), edm::TypeWithDict.name(), MEChannel.oneLine(), MEChannel.oneWord(), PrintVIDToString< reco::Muon >.operator()(), pat.operator<<(), triggerExpression.operator<<(), GenParticlesHelper.operator<<(), reco.operator<<(), operator<<(), jsoncollector::FastMonitor.outputCSV(), SiStripInformationExtractor.plotHistosFromLayout(), HIPplots.plotHitMap(), HCALResponse.PoissonShootNoNegative(), edm::service::Tracer.postCloseFile(), edm::service::Tracer.postEvent(), edm::service::Tracer.postGlobalBeginLumi(), edm::service::Tracer.postGlobalBeginRun(), edm::service::Tracer.postGlobalEndLumi(), edm::service::Tracer.postGlobalEndRun(), edm::service::Tracer.postModuleBeginJob(), edm::service::Tracer.postModuleBeginStream(), edm::service::Tracer.postModuleConstruction(), edm::service::Tracer.postModuleEndJob(), edm::service::Tracer.postModuleEndStream(), edm::service::Tracer.postModuleEvent(), edm::service::Tracer.postModuleEventDelayedGet(), edm::service::Tracer.postModuleGlobalBeginLumi(), edm::service::Tracer.postModuleGlobalBeginRun(), edm::service::Tracer.postModuleGlobalEndLumi(), edm::service::Tracer.postModuleGlobalEndRun(), edm::service::Tracer.postModuleStreamBeginLumi(), edm::service::Tracer.postModuleStreamBeginRun(), edm::service::Tracer.postModuleStreamEndLumi(), edm::service::Tracer.postModuleStreamEndRun(), edm::service::Tracer.postOpenFile(), edm::service::Tracer.postPathEvent(), edm::service::Tracer.postSourceConstruction(), edm::service::Tracer.postStreamBeginLumi(), edm::service::Tracer.postStreamBeginRun(), edm::service::Tracer.postStreamEndLumi(), edm::service::Tracer.postStreamEndRun(), edm::service::Tracer.preBeginJob(), edm::service::Tracer.preCloseFile(), edm::service::Tracer.preEvent(), edm::service::Tracer.preGlobalBeginLumi(), edm::service::Tracer.preGlobalBeginRun(), edm::service::Tracer.preGlobalEndLumi(), edm::service::Tracer.preGlobalEndRun(), edm::service::Tracer.preModuleBeginJob(), edm::service::Tracer.preModuleBeginStream(), edm::service::Tracer.preModuleConstruction(), edm::service::Tracer.preModuleEndJob(), edm::service::Tracer.preModuleEndStream(), edm::service::Tracer.preModuleEvent(), edm::service::Tracer.preModuleEventDelayedGet(), edm::service::Tracer.preModuleGlobalBeginLumi(), edm::service::Tracer.preModuleGlobalBeginRun(), edm::service::Tracer.preModuleGlobalEndLumi(), edm::service::Tracer.preModuleGlobalEndRun(), edm::service::Tracer.preModuleStreamBeginLumi(), edm::service::Tracer.preModuleStreamBeginRun(), edm::service::Tracer.preModuleStreamEndLumi(), edm::service::Tracer.preModuleStreamEndRun(), edm::service::Tracer.preOpenFile(), edm::service::Tracer.prePathEvent(), TFWLiteSelector< TrackAnalysisAlgorithm >.preProcessing(), edm::service::Tracer.preSourceConstruction(), edm::service::Tracer.preStreamBeginLumi(), edm::service::Tracer.preStreamBeginRun(), edm::service::Tracer.preStreamEndLumi(), edm::service::Tracer.preStreamEndRun(), reco.print(), SiPixelFedCablingTree.print(), reco::GenericJet.print(), reco::BasicJet.print(), sipixelobjects::PixelFEDCabling.print(), HGCSample.print(), reco::PFClusterJet.print(), sipixelobjects::PixelFEDLink.print(), HGCDataFrame< HGCHEDetId, HGCSample >.print(), reco::TrackJet.print(), sipixelobjects::PixelROC.print(), TrackerMap.print(), reco::GenJet.print(), magfieldparam::rz_harm_poly.Print(), reco::JPTJet.print(), reco::CaloJet.print(), reco::PFJet.print(), TrackerMap.printall(), magfieldparam::HarmBasis3DCyl.PrintBphiB(), magfieldparam::BFit3D.PrintBphiPoly(), magfieldparam::HarmBasis3DCyl.PrintBrB(), magfieldparam::BFit3D.PrintBrPoly(), magfieldparam::HarmBasis3DCyl.PrintBzB(), magfieldparam::BFit3D.PrintBzPoly(), sipixelobjects::PixelFEDLink.printForMap(), reco::CaloCluster.printHitAndFraction(), TrackerMap.printlayers(), magfieldparam::rz_harm_poly.PrintLM(), TrackerMap.printonline(), magfieldparam::BFit3D.PrintPoly(), FastTimerService.printProcessSummary(), magfieldparam::HarmBasis3DCyl.PrintPtB(), magfieldparam::BFit3D.PrintPtnPoly(), SideBandSubtract.printResults(), FastTimerService.printSummary(), EcalFenixEtTot.process(), MaskedMeasurementTrackerEventProducer.produce(), MeasurementTrackerEventProducer.produce(), GsfElectronFull5x5Filler.produce(), CalibratedPhotonProducerRun2T< T >.produce(), CandViewRefMerger.produce(), pat::PATMETSlimmer.produce(), pat::PATTauSlimmer.produce(), PFClusterTimeSelector.produce(), GenParticlePruner.produce(), CalibratedElectronProducerRun2T< T >.produce(), pat::PackedPFCandidateRefMixer.produce(), CaloMuonMerger.produce(), ElectronIDExternalProducer< algo >.produce(), PFTauViewRefMerger.produce(), PFRecHitProducer.produce(), ElectronPATIdMVAProducer.produce(), pat::PATMuonSlimmer.produce(), pat::PATGenJetSlimmer.produce(), pat::PATJetSlimmer.produce(), pat::PATElectronSlimmer.produce(), MuonSelectionTypeValueMapProducer.produce(), pat::PATPhotonSlimmer.produce(), DeltaBetaWeights.produce(), MuonReSeeder.produce(), TriggerObjectFilterByCollection.produce(), TSGForOI.produce(), L1ITMuonBarrelPrimitiveProducer.produce(), CosmicsMuonIdProducer.produce(), modules::MuonCleanerBySegmentsT< T >.produce(), FakeTrackProducer< T >.produce(), MuPFIsoEmbedder.produce(), OutsideInMuonSeeder.produce(), Timer.produce(), L1TMuonEndCapTrackProducer.produce(), reco::modules::NamedCandCombiner< Selector, PairSelector, Cloner, Setup, Init >.produce(), reco::modules::CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup, Init >.produce(), QGTagger.putInEvent(), gen::Py8InterfaceBase.Py8InterfaceBase(), L1CaloEcalScale.rank(), L1CaloHcalScale.rank(), L1CaloEtScale.rank(), RctDigiToRctText.RctDigiToRctText(), RctDigiToSourceCardText.RctDigiToSourceCardText(), PedeReader.read(), DTTFBitArray< N >.read(), BitArray< 9 >.read(), MillePedeAlignmentAlgorithm.readFromPede(), XMLConfigReader.readLUT(), PdgEntryReplacer.replace(), G4RegionReporter.ReportRegions(), PFEGammaToCandidateRemapper.run(), TrackerMap.save(), TrackerMap.save_as_fectrackermap(), TrackerMap.save_as_fedtrackermap(), TrackerMap.save_as_HVtrackermap(), TrackerMap.save_as_psutrackermap(), matrixSaver.saveMatrix(), matrixSaver.saveMatrixVector(), edm::service::RandomNumberGeneratorService.saveStatesToFile(), gen::Pythia6Service.setSLHAFromHeader(), EcalGeomPhiSymHelper.setup(), SimHitPrinter.SimHitPrinter(), SiStripSpyMonitorModule.SiStripSpyMonitorModule(), MEEBGeom.smName(), MEEEGeom.smName(), ME.smName(), L1TMuonProducer.splitAndConvertMuons(), HcalDigisClient.str(), HcalDigisValidation.str(), hitfit::Lepjets_Event.sum(), HLTLogMonitorFilter.summary(), heppy::mt2w_bisect::mt2w.teco(), testSerialization(), ThePEGInterface.ThePEGInterface(), HCAL_HLX::TimeStamp.TimeStampYYYYMMDD(), TkSimHitPrinter.TkSimHitPrinter(), TrackerDpgAnalysis.toStringId(), TrackerDpgAnalysis.toStringName(), edm::service::Tracer.Tracer(), MuonBadTrackFilter.trackInfo(), ErrorFrameTransformer.transform46(), spu.Unzip(), NoiseTask.update(), VertexHistoryAnalyzer.vertexString(), TrackHistoryAnalyzer.vertexString(), PFRecoTauDiscriminationByIsolation.weightedSum(), FileBlob.write(), JsonOutputProducer.write(), sistrip::EnsembleCalibrationLA.write_calibrations(), sistrip::EnsembleCalibrationLA.write_ensembles_text(), sistrip::MeasureLA.write_report_text(), sistrip::MeasureLA.write_report_text_ms(), pos::PixelTTCciConfig.writeASCII(), pos::PixelDelay25Calib.writeASCII(), pos::PixelMaxVsf.writeASCII(), pos::PixelPortCardConfig.writeASCII(), pos::PixelMaskAllPixels.writeASCII(), pos::PixelLowVoltageMap.writeASCII(), pos::PixelLTCConfig.writeASCII(), pos::PixelGlobalDelay25.writeASCII(), pos::PixelFECConfig.writeASCII(), pos::PixelTBMSettings.writeASCII(), pos::PixelTrimCommon.writeASCII(), pos::PixelTKFECConfig.writeASCII(), pos::PixelFEDConfig.writeASCII(), pos::PixelTrimAllPixels.writeASCII(), pos::PixelDetectorConfig.writeASCII(), pos::PixelPortcardMap.writeASCII(), pos::PixelDACSettings.writeASCII(), pos::PixelNameTranslation.writeASCII(), pos::PixelCalibConfiguration.writeASCII(), pos::PixelMaskAllPixels.writeBinary(), pos::PixelTBMSettings.writeBinary(), pos::PixelTrimCommon.writeBinary(), pos::PixelTrimAllPixels.writeBinary(), pos::PixelDACSettings.writeBinary(), DTCalibrationMap.writeConsts(), LaserSorter.writeEvent(), pos::PixelConfigList.writefile(), pos::PixelAliasList.writefile(), HIPAlignmentAlgorithm.writeIterationFile(), Vx3DHLTAnalyzer.writeToFile(), HtrXmlPatternTool.writeXML(), EcalTPGCrystalStatusXMLTranslator.writeXML(), ESGainXMLTranslator.writeXML(), HcalConstantsXMLWriter.writeXML(), EcalTimeBiasCorrectionsXMLTranslator.writeXML(), EcalAlignmentXMLTranslator.writeXML(), EcalTPGTowerStatusXMLTranslator.writeXML(), EcalTPGStripStatusXMLTranslator.writeXML(), EcalDCSTowerStatusXMLTranslator.writeXML(), EcalChannelStatusXMLTranslator.writeXML(), EcalPulseSymmCovariancesXMLTranslator.writeXML(), EcalPulseShapesXMLTranslator.writeXML(), EcalClusterCrackCorrXMLTranslator.writeXML(), EcalTPGLinearizationConstXMLTranslator.writeXML(), EcalPedestalsXMLTranslator.writeXML(), EcalClusterEnergyCorrectionObjectSpecificXMLTranslator.writeXML(), EcalGainRatiosXMLTranslator.writeXML(), EcalClusterEnergyCorrectionXMLTranslator.writeXML(), EcalTimeOffsetXMLTranslator.writeXML(), EcalADCToGeVXMLTranslator.writeXML(), EcalDAQTowerStatusXMLTranslator.writeXML(), EcalClusterLocalContCorrXMLTranslator.writeXML(), EcalWeightGroupXMLTranslator.writeXML(), EcalTBWeightsXMLTranslator.writeXML(), EcalWeightSetXMLTranslator.writeXML(), EcalLinearCorrectionsXMLTranslator.writeXML(), EcalFloatCondObjectContainerXMLTranslator.writeXML(), EcalLaserAPDPNRatiosXMLTranslator.writeXML(), pos::PixelFEDCard.writeXML(), pos::PixelDetectorConfig.writeXML(), and pos::PixelNameTranslation.writeXML().

tuple GenerateHcalLaserBadRunList.thistime = time.time()

Definition at line 93 of file GenerateHcalLaserBadRunList.py.