CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Variables
makePileupJSON Namespace Reference

Variables

tuple args = parser.parse_args()
 
tuple beam_energy = float(pieces[10])
 
int bunch_rms_lumi = 0
 
tuple bx = int(ibx)
 
tuple csv_input = open(args.inputFile, 'r')
 
 denom = total_lumi*total_lumi-total_weight2
 
int last_run = -1
 
list last_valid_lumi = []
 
tuple lumi_section = int(pieces[2])
 
list luminometer = pieces[14]
 
 mean_int = total_int/total_lumi
 
 mean_pileup = bunch_del_lumi*parameters.orbitLength/parameters.lumiSectionLength
 
 output = args.outputFile
 
string output_line = '{'
 
tuple outputfile = open(output,'w')
 
tuple parameters = LumiConstants.ParametersObject()
 

## Main Program

More...
 
tuple parser = argparse.ArgumentParser(description="Script to estimate average and RMS pileup using the per-bunch luminosity information provided by brilcalc. The output is a JSON file containing a dictionary by runs with one entry per lumi section.")
 
tuple pieces = sepRE.split(line.strip())
 
tuple run = int(pieces[0])
 
tuple sel_bx = set()
 
tuple sepRE = re.compile(r'[\]\[\s,;:]+')
 
float threshold = 8.0
 
int total_int = 0
 
int total_int2 = 0
 
int total_lumi = 0
 
int total_weight2 = 0
 
list xing_lumi_array = []
 

Variable Documentation

tuple makePileupJSON.args = parser.parse_args()

Definition at line 32 of file makePileupJSON.py.

tuple makePileupJSON.beam_energy = float(pieces[10])

Definition at line 70 of file makePileupJSON.py.

tuple makePileupJSON.bunch_rms_lumi = 0

Definition at line 145 of file makePileupJSON.py.

tuple makePileupJSON.bx = int(ibx)

Definition at line 40 of file makePileupJSON.py.

Referenced by TPTask._process(), RawTask._process(), RecHitTask._process(), DigiTask._process(), LaserTask._process(), CSCDigiToRawAccept.accept(), CSCALCTHeader.add(), SiStripHitEffFromCalibTree.algoAnalyze(), ME0RecHitsValidation.analyze(), GEMPadDigiClusterValidation.analyze(), GEMPadDigiValidation.analyze(), GEMStripDigiValidation.analyze(), CSCDigiToPattern.analyze(), L1TStage2MuonComp.analyze(), L1TStage2RegionalMuonCandComp.analyze(), NoBPTXMonitor.analyze(), HLTInspect.analyze(), BxTiming.analyze(), SiPixelDigiSource.analyze(), L1TObjectsTiming.analyze(), EcalBarrelSimHitsValidation.analyze(), EcalEndcapSimHitsValidation.analyze(), L1TStage2uGTTiming.analyze(), CSCTFanalyzer.analyze(), StandaloneTrackMonitor.analyze(), L1TDTTPG.analyze(), LhcTrackAnalyzer.analyze(), L1TStage2uGT.analyze(), PhotonMVANtuplizer.analyze(), ElectronMVANtuplizer.analyze(), EcalBxOrbitNumberGrapher.analyze(), L1GenTreeProducer.analyze(), EcalRecHitsValidation.analyze(), L1TRPCTPG.analyze(), L1TCSCTF.analyze(), V0Monitor.analyze(), HLTScalers.analyze(), TrackingMonitor.analyze(), EcalCosmicsHists.analyze(), L1MuonRecoTreeProducer.analyze(), FFTJetPileupAnalyzer.analyzePileup(), RPCHitAssociator.associateRecHit(), CSCAnodeLCTProcessor.bestTrackSelector(), GctFormatTranslateV35.blockToFibres(), GctFormatTranslateV38.blockToFibres(), GctFormatTranslateMCLegacy.blockToFibres(), GctFormatTranslateV35.blockToGctEmCandsAndEnergySums(), GctFormatTranslateV38.blockToGctEmCandsAndEnergySums(), GctFormatTranslateMCLegacy.blockToGctEmCandsAndEnergySums(), GctFormatTranslateV35.blockToGctInternEmCand(), GctFormatTranslateV38.blockToGctInternEmCand(), GctFormatTranslateV35.blockToGctInternEtSums(), GctFormatTranslateV38.blockToGctInternEtSums(), GctFormatTranslateV35.blockToGctInternEtSumsAndJetCluster(), GctFormatTranslateV38.blockToGctInternEtSumsAndJetCluster(), GctFormatTranslateV38.blockToGctInternHtMissPostWheel(), GctFormatTranslateV38.blockToGctInternHtMissPreWheel(), GctFormatTranslateV35.blockToGctInternRingSums(), GctFormatTranslateV38.blockToGctInternRingSums(), GctFormatTranslateV35.blockToGctJetCandsAndCounts(), GctFormatTranslateV38.blockToGctJetCandsAndCounts(), GctFormatTranslateMCLegacy.blockToGctJetCandsAndCounts(), GctFormatTranslateV35.blockToGctJetClusterMinimal(), GctFormatTranslateV38.blockToGctJetClusterMinimal(), GctFormatTranslateV35.blockToGctJetPreCluster(), GctFormatTranslateV38.blockToGctJetPreCluster(), GctFormatTranslateV35.blockToGctTrigObjects(), GctFormatTranslateV38.blockToGctTrigObjects(), GctFormatTranslateV35.blockToGctWheelInputInternEtAndRingSums(), GctFormatTranslateV38.blockToGctWheelInputInternEtAndRingSums(), GctFormatTranslateV35.blockToGctWheelOutputInternEtAndRingSums(), GctFormatTranslateV38.blockToGctWheelOutputInternEtAndRingSums(), GctFormatTranslateV35.blockToRctCaloRegions(), GctFormatTranslateV38.blockToRctCaloRegions(), GctFormatTranslateV35.blockToRctEmCand(), GctFormatTranslateV38.blockToRctEmCand(), GctFormatTranslateMCLegacy.blockToRctEmCand(), L1TRPCTF.bookHistograms(), RBCProcessRPCSimDigis.builddata(), RBCProcessRPCDigis.builddata(), GEMSegmentAlgorithm.buildSegments(), L1TMuonBarrelKalmanStubProcessor.buildStub(), L1TMuonBarrelKalmanStubProcessor.buildStubNoEta(), L1TDTTFClient.buildSummaries(), CSCTFTrackBuilder.buildTracks(), DTRPCBxCorrection.BxCorrection(), L1MuDTTrackContainer.bxSize(), RctTextToRctDigi.bxSynchro(), edm::PileUp.CalculatePileup(), LCTContainer.clear(), ME0Motherboard.clear(), CSCCathodeLCTProcessor.clear(), CSCAnodeLCTProcessor.clear(), SingleHitTrack.configure(), AngleCalculation.configure(), BestTrackSelection.configure(), PrimitiveSelection.configure(), PrimitiveConversion.configure(), PrimitiveMatching.configure(), PtAssignment.configure(), PatternRecognition.configure(), CSCMotherboard.constructLCTs(), MicroGMTConverter.convert_all(), L1MuGMTMerger.createDTCSCCand(), CSCDigiToRaw.createFedBuffers(), L1MuGMTMerger.createMergedCand(), L1MuGMTMerger.createRPCCand(), CSCALCTPreTriggerDigi.CSCALCTPreTriggerDigi(), CSCDDUHeader.CSCDDUHeader(), EcalDumpRaw.decode(), SiStripDigitizerAlgorithm.digitize(), SRBlockFormatter.DigiToRaw(), TCCBlockFormatter.DigiToRaw(), TowerBlockFormatter.DigiToRaw(), BlockFormatter.DigiToRaw(), PulseChiSqSNNLS.DoFit(), TriggerBxVsOrbitMonitor.dqmAnalyze(), TriggerBxMonitor.dqmAnalyze(), MonitorElementData::QReport::DQMChannel.DQMChannel(), CorrPCCProducer.dqmEndRunProduce(), emtf.dump_fw_raw_input(), BeamFitter.dumpTxtFile(), CorrPCCProducer.endLuminosityBlock(), L1GtPatternGenerator.extractGlobalTriggerData(), EMTFSubsystemCollector.extractPrimitives(), L1TMuon::DTCollector.extractPrimitives(), extractRecordData(), riemannFit.fastFit(), MultiplicityCorrelatorHistogramMaker.fill(), L1GlobalCaloTrigger.fillEmCands(), FillingScheme(), FillingSchemeFromProfile(), Phase2TrackerValidateDigi.fillITPixelBXInfo(), Phase2TrackerValidateDigi.fillOTBXInfo(), L1GlobalCaloTrigger.fillRegions(), FilterOutScraping.filter(), FilterOutLowPt.filter(), PhysDecl.filter(), HLTLevel1Pattern.filter(), RPCNoise.filter(), amc::Packet.finalize(), L1GctHardwareJetFinder.findFinalClusters(), CSCCathodeLCTProcessor.findLCTs(), BeamMonitorBx.FitAndFill(), GEMDigiSimLink.GEMDigiSimLink(), PPSFastLocalSimulation.GenerateTrack(), CSCAnodeLCTProcessor.getALCTs(), CSCAnodeLCTProcessor.getBestALCT(), CSCCathodeLCTProcessor.getBestCLCT(), CSCCathodeLCTProcessor.getCLCTs(), GEMClusterProcessor.getClusters(), RPCConeBuilderFromES.getConesFromES(), LumiCorrections.getCorrectionAtBX(), L1MuGMTPSB.getCSC(), L1MuGMTPSB.getDTBX(), L1GlobalCaloTrigger.getEtHadCollection(), L1GlobalCaloTrigger.getEtMissCollection(), L1GlobalCaloTrigger.getEtSumCollection(), L1GlobalCaloTrigger.getHFBitCountsCollection(), L1GlobalCaloTrigger.getHFRingEtSumsCollection(), L1GlobalCaloTrigger.getHtMissCollection(), L1GctWheelEnergyFpga.getInternalEtSums(), L1GctJetLeafCard.getInternalEtSums(), L1GctJetFinderBase.getInternalEtSums(), L1GctWheelJetFpga.getInternalHtMiss(), L1GctJetLeafCard.getInternalHtMiss(), L1GctJetFinderBase.getInternalHtMiss(), LCTContainer.getMatched(), l1t::stage2::MuonPacker.getMuons(), l1t::stage2::RegionalMuonGMTPacker.getMuons(), l1t::stage2::MuonPacker.getMuonShowers(), l1t::stage2::RegionalMuonGMTPacker.getMuonShowers(), OMTFReconstruction.getProcessorCandidates(), L1MuGlobalMuonTrigger.getReadoutCollection(), L1MuGMTReadoutCollection.getRecord(), L1MuGMTPSB.getRPCb(), L1MuGMTPSB.getRPCf(), CSCAnodeLCTProcessor.getSecondALCT(), CSCCathodeLCTProcessor.getSecondCLCT(), ME0SimpleModel.getSimHitBx(), GEMSignalModel.getSimHitBx(), RPCSynchronizer.getSimHitBx(), RPCSynchronizer.getSimHitBxAndTimingForIRPC(), LCTContainer.getTimeMatched(), ME0Motherboard.getTriggers(), RawPCCProducer.globalEndLuminosityBlockProduce(), L1GctGlobalHfSumAlgos.hfSumsWord(), HLTDTActivityFilter.hltFilter(), HGCalTriggerNtupleHGCDigis.initialize(), L1TGlobalPrescalesVetosESProducer.L1TGlobalPrescalesVetosESProducer(), CSCAnodeLCTProcessor.lctSearch(), CSCTFSPCoreLogic.loadData(), LumiDetails.lumiError(), LumiDetails.lumiQuality(), DIPLumiDetail.lumiValue(), LumiDetails.lumiValue(), CorrPCCProducer.makeCorrectionTemplate(), L1GctHardwareJetFinder.makeProtoJet(), EcalUncalibRecHitMultiFitAlgo.makeRecHit(), L1TMuonBarrelKalmanStubProcessor.makeStubs(), TrackingNtuple.matchCluster(), DTLowQMatching.Matching(), CSCStubMatcher.matchLCTsToSimTrack(), L1TGlobalPrescalesVetosOnlineProd.newObject(), RBCProcessRPCDigis.next(), RBCProcessRPCSimDigis.next(), L1MuDTTrackFinder.numberOfTracks(), L1MuBMTrackFinder.numberOfTracks(), EventCapture.observeEventEnd(), LCTContainer.operator()(), EcalUncalibratedRecHit.outOfTimeAmplitude(), l1t::stage2::MuonPacker.packBx(), l1t::stage2::RegionalMuonGMTPacker.packTF(), RPCMonitorDigi.performSourceOperation(), RPCWheelMap.prepareData(), PrimaryVertexPlots(), process(), L1TMuonBarrelKalmanRegionModule.process(), CSCTFDTReceiver.process(), SectorProcessor.process(), L1GlobalCaloTrigger.process(), pps::RawDataUnpacker.processOptoRxFrame(), RPCTwinMuxRawToDigi.processRPCRecord(), RPCCPPFUnpacker.processRXRecord(), TTUEmulator.processTtu(), l1t::HGC3DClusterSimpleSelector.produce(), l1t::HGC3DClusterGenMatchSelector.produce(), L1TMuonBarrelKalmanTrackProducer.produce(), CaloTruthCellsProducer.produce(), GEMDigiToRawModule.produce(), pat::L1MuonMatcher.produce(), AlcaPCCEventProducer.produce(), AlcaPCCProducer.produce(), GEMRawToDigiModule.produce(), AlcaPCCIntegrator.produce(), l1t::HGC3DClusterTMVASelector.produce(), L1TMuonQualityAdjuster.produce(), L1TEGammaFilteredCollectionProducer.produce(), GctDigiToRaw.produce(), l1t::L1ComparatorRun2.produce(), L1TGlobalProducer.produce(), L1TPhysicalEtAdder.produce(), l1t::L1TCaloRCTToUpgradeConverter.produce(), L1TMuonCaloSumProducer.produce(), L1ExtraParticlesProd.produce(), l1t::BXVectorInputProducer.produce(), L1TMuonProducer.produce(), L1MuGlobalMuonTrigger.produce(), L1TStage2Layer1Producer.produce(), RPCTechnicalTrigger.produce(), edm::PreMixingCrossingFrameWorker< T >.put(), PreMixingSiStripWorker.put(), PVFitter.readEvent(), EcalFEtoDigi.readInput(), L1MuGMTHWFileReader.readNextEvent(), CSCAnodeLCTProcessor.readoutALCTs(), CSCCathodeLCTProcessor.readoutCLCTs(), CSCMotherboard.readoutLCTs(), L1MuGMTPSB.receiveData(), OMTFReconstruction.reconstruct(), L1MuGMTDebugBlock.reset(), CorrPCCProducer.resetBlock(), CSCTFMuonSorter.run(), AlignTrackSegments.run(), RPCtoDTTranslator.run(), IOPrinter.run(), L1TTwinMuxAlgorithm.run(), ecaldqm::IntegrityWriter.run(), CSCTFSectorProcessor.run(), L1MuBMAssignmentUnit.run(), L1MuDTAssignmentUnit.run(), CSCCathodeLCTProcessor.run(), L1MuDTTrackFinder.run(), CSCAnodeLCTProcessor.run(), OMTFProcessor< GoldenPatternType >.run(), L1MuBMTrackFinder.run(), CSCTFSPCoreLogic.run(), DTLocalTriggerBaseTask.runAB7Analysis(), DTLocalTriggerBaseTask.runTMAnalysis(), CSCMotherboard.selectLCTs(), L1Analysis::L1AnalysisSimulation.Set(), L1Analysis::L1AnalysisEvent.Set(), AlgoMuon.setBx(), L1MuGMTDebugBlock.SetBX(), CSCCLCTDigi.setBX(), l1t::GlobalBoard.setBxFirst(), l1t::GlobalBoard.setBxLast(), L1RPCBxOrConfig.setFirstBX(), L1RPCBxOrConfig.setLastBX(), EcalUncalibratedRecHit.setOutOfTimeAmplitude(), pat::Muon.setSimBX(), DTTPGCompareUnit.setTM(), TTUEmulator::TriggerResponse.setTriggerBits(), L1DummyProducer.SimpleDigi(), GEMSignalModel.simulate(), ME0PreRecoGaussianModel.simulateNoise(), ME0PreRecoGaussianModel.simulateSignal(), ME0SimpleModel.simulateSignal(), CSCMuonPortCard.sortLCTs(), MuonsGrabber.startNewEvent(), StatisticsPlots(), EcalUncalibRecHitTimeWeightsAlgo< EBDataFrame >.time(), l1t::stage1::CaloSpareHFUnpacker.unpack(), l1t::stage1::MissEtUnpacker.unpack(), l1t::stage2::CaloTowerUnpacker.unpack(), l1t::stage2::GlobalExtBlkUnpacker.unpack(), l1t::stage2::GlobalAlgBlkUnpacker.unpack(), l1t::stage1::HFRingUnpacker.unpack(), l1t::stage1::EtSumUnpacker.unpack(), l1t::stage1::MissHtUnpacker.unpack(), l1t::stage1::legacy::EtSumUnpacker.unpack(), l1t::stage1::legacy::HFRingUnpacker.unpack(), l1t::stage2::RegionalMuonGMTUnpacker.unpack(), l1t::stage2::EtSumUnpacker_0x10010057.unpack(), l1t::stage2::EGammaUnpacker.unpack(), l1t::stage2::TauUnpacker.unpack(), l1t::stage2::JetUnpacker.unpack(), l1t::stage2::EtSumUnpacker.unpack(), l1t::stage2::MuonUnpacker.unpack(), omtf::DtUnpacker.unpack(), omtf::MuonUnpacker.unpack(), l1t::stage1.unpack_em(), l1t::stage1.unpack_region(), EcalSimHitsValidProducer.update(), PulseChiSqSNNLS.updateCov(), EcalSelectiveReadoutValidation.updateL1aRate(), GlobalGridWrapper.valueInTesla(), L1GtPatternWriter.writePatterns(), and L1MuGMTDebugBlock.~L1MuGMTDebugBlock().

tuple makePileupJSON.csv_input = open(args.inputFile, 'r')

Definition at line 51 of file makePileupJSON.py.

makePileupJSON.denom = total_lumi*total_lumi-total_weight2
makePileupJSON.last_run = -1

Definition at line 52 of file makePileupJSON.py.

list makePileupJSON.last_valid_lumi = []

Definition at line 54 of file makePileupJSON.py.

tuple makePileupJSON.lumi_section = int(pieces[2])

Definition at line 69 of file makePileupJSON.py.

list makePileupJSON.luminometer = pieces[14]

Definition at line 73 of file makePileupJSON.py.

int makePileupJSON.mean_int = total_int/total_lumi

Definition at line 128 of file makePileupJSON.py.

makePileupJSON.mean_pileup = bunch_del_lumi*parameters.orbitLength/parameters.lumiSectionLength

Definition at line 134 of file makePileupJSON.py.

makePileupJSON.output = args.outputFile

Definition at line 34 of file makePileupJSON.py.

list makePileupJSON.output_line = '{'

Definition at line 56 of file makePileupJSON.py.

tuple makePileupJSON.outputfile = open(output,'w')
tuple makePileupJSON.parameters = LumiConstants.ParametersObject()

## Main Program

Definition at line 25 of file makePileupJSON.py.

tuple makePileupJSON.parser = argparse.ArgumentParser(description="Script to estimate average and RMS pileup using the per-bunch luminosity information provided by brilcalc. The output is a JSON file containing a dictionary by runs with one entry per lumi section.")

Definition at line 27 of file makePileupJSON.py.

tuple makePileupJSON.pieces = sepRE.split(line.strip())

Definition at line 61 of file makePileupJSON.py.

tuple makePileupJSON.run = int(pieces[0])

Definition at line 68 of file makePileupJSON.py.

tuple makePileupJSON.sel_bx = set()

Definition at line 36 of file makePileupJSON.py.

tuple makePileupJSON.sepRE = re.compile(r'[\]\[\s,;:]+')

Definition at line 50 of file makePileupJSON.py.

float makePileupJSON.threshold = 8.0

Definition at line 78 of file makePileupJSON.py.

int makePileupJSON.total_int = 0

Definition at line 114 of file makePileupJSON.py.

int makePileupJSON.total_int2 = 0

Definition at line 115 of file makePileupJSON.py.

int makePileupJSON.total_lumi = 0

Definition at line 113 of file makePileupJSON.py.

int makePileupJSON.total_weight2 = 0

Definition at line 116 of file makePileupJSON.py.

list makePileupJSON.xing_lumi_array = []

Definition at line 85 of file makePileupJSON.py.