CMS 3D CMS Logo

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

Functions

def parseInputFile
 

Variables

list CalculationModeChoices = ['truth', 'observed']
 
string default = 'PileupRecalcJSON.txt'
 
string help = 'output pileup JSON file'
 
list HLTlumiInfo = lslist[LSnumber]
 
tuple inputPileupRange = parseInputFile(options.inputLumiJSON)
 
tuple inputRange = csvLumibyLSParser.csvLumibyLSParser(options.inputfile,options.runperiod)
 
tuple lastindex = len(OUTPUTLINE)
 
list LSPUlist = inputPileupRange[run]
 
string LumiString = "[%d,%2.4e,%2.4e,%2.4e],"
 
list newInstLumi = PUlumiInfo[2]
 
list newIntLumi = scale*PUlumiInfo[0]
 
list newRmsLumi = PUlumiInfo[1]
 
tuple outputfile = open(options.outputfile,'w')
 
string OUTPUTLINE = ""
 
tuple parser
 

## Main Program

More...
 
list PUlumiInfo = LSPUlist[LSnumber]
 
int scale = 0
 
list trunc = OUTPUTLINE[0:lastindex]
 
string VERSION = '1.00'
 

Function Documentation

def pileupReCalc_HLTpaths.parseInputFile (   inputfilename)
output ({run:[ls:[inlumi, meanint]]})

Definition at line 12 of file pileupReCalc_HLTpaths.py.

12 
13 def parseInputFile(inputfilename):
14  '''
15  output ({run:[ls:[inlumi, meanint]]})
16  '''
17  selectf=open(inputfilename,'r')
18  inputfilecontent=selectf.read()
19  p=pileupParser.pileupParser(inputfilecontent)
20 
21 # p=inputFilesetParser.inputFilesetParser(inputfilename)
22  runlsbyfile=p.runsandls()
23  return runlsbyfile
24 
25 

Variable Documentation

list pileupReCalc_HLTpaths.CalculationModeChoices = ['truth', 'observed']

Definition at line 40 of file pileupReCalc_HLTpaths.py.

string pileupReCalc_HLTpaths.default = 'PileupRecalcJSON.txt'

Definition at line 51 of file pileupReCalc_HLTpaths.py.

string pileupReCalc_HLTpaths.help = 'output pileup JSON file'

Definition at line 52 of file pileupReCalc_HLTpaths.py.

list pileupReCalc_HLTpaths.HLTlumiInfo = lslist[LSnumber]

Definition at line 110 of file pileupReCalc_HLTpaths.py.

tuple pileupReCalc_HLTpaths.inputPileupRange = parseInputFile(options.inputLumiJSON)

Definition at line 90 of file pileupReCalc_HLTpaths.py.

tuple pileupReCalc_HLTpaths.inputRange = csvLumibyLSParser.csvLumibyLSParser(options.inputfile,options.runperiod)

Definition at line 83 of file pileupReCalc_HLTpaths.py.

tuple pileupReCalc_HLTpaths.lastindex = len(OUTPUTLINE)

Definition at line 142 of file pileupReCalc_HLTpaths.py.

list pileupReCalc_HLTpaths.LSPUlist = inputPileupRange[run]

Definition at line 105 of file pileupReCalc_HLTpaths.py.

string pileupReCalc_HLTpaths.LumiString = "[%d,%2.4e,%2.4e,%2.4e],"

Definition at line 128 of file pileupReCalc_HLTpaths.py.

float pileupReCalc_HLTpaths.newInstLumi = PUlumiInfo[2]

Definition at line 123 of file pileupReCalc_HLTpaths.py.

list pileupReCalc_HLTpaths.newIntLumi = scale*PUlumiInfo[0]

Definition at line 121 of file pileupReCalc_HLTpaths.py.

list pileupReCalc_HLTpaths.newRmsLumi = PUlumiInfo[1]

Definition at line 122 of file pileupReCalc_HLTpaths.py.

tuple pileupReCalc_HLTpaths.outputfile = open(options.outputfile,'w')

Definition at line 169 of file pileupReCalc_HLTpaths.py.

pileupReCalc_HLTpaths.OUTPUTLINE = ""

Definition at line 95 of file pileupReCalc_HLTpaths.py.

tuple pileupReCalc_HLTpaths.parser
Initial value:
1 = optparse.OptionParser("Usage: %prog [--options]",
2  description = "Script to rescale pileup distributions using inputs derived by calculating luminosity for a given set of HLT paths. Input format must be -lumibyls-")

## Main Program

Definition at line 36 of file pileupReCalc_HLTpaths.py.

list pileupReCalc_HLTpaths.PUlumiInfo = LSPUlist[LSnumber]

Definition at line 109 of file pileupReCalc_HLTpaths.py.

float pileupReCalc_HLTpaths.scale = 0

Definition at line 113 of file pileupReCalc_HLTpaths.py.

Referenced by evf.__attribute__(), AlignableModifier.addDeformation(), FWPFCandidateWithHitsProxyBuilder.addHitsForCandidate(), algorithm(), myFastSimVal.analyze(), corrResps.analyze(), CMSDAS11DijetAnalyzer.analyze(), JetCorExample< Jet >.analyze(), corrGains.analyze(), JetCorrectorOnTheFly< Jet >.analyze(), JetTester.analyze(), TauJetCorrectorExample.analyze(), JetMETHLTOfflineSource.analyze(), JetAnalyzer.analyze(), ExoticaDQM.analyze(), METAnalyzer.analyze(), ExoticaDQM.analyzeDiJets(), OverlapValidation.analyzeTrajectory(), DTnoiseDBValidation.beginRun(), FWCaloRecHitDigitSetProxyBuilder.build(), FWL1MuonParticleProxyBuilder.build(), FWL1JetParticleProxyBuilder.build(), FWL1EmParticleProxyBuilder.build(), FWL1EtMissParticleProxyBuilder.build(), MTDGeomBuilderFromGeometricTimingDet.buildPlaneWithMaterial(), TrackerGeomBuilderFromGeometricDet.buildPlaneWithMaterial(), FWPFRhoPhiRecHit.buildRecHit(), TrackerGeomBuilderFromGeometricDet.buildSilicon(), L1TDTTFClient.buildSummaries(), FWPFLegoRecHit.buildTower(), GsfElectronAlgo::ElectronData.calculateMomentum(), GsfElectronAlgo.calculateShowerShape(), ElectronEnergyCalibratorRun2.calibrate(), PhotonEnergyCalibratorRun2.calibrate(), ElectronEnergyCalibrator.calibrate(), npstat::ArrayND< Numeric, StackLen, StackDim >.cdfArray(), RPCRecHitStandardAlgo.compute(), MuonME0DigisHarvestor.ComputeBKG(), FFTJetCorrector< Jet, Adjustable >.correct(), egamma.correctElectronMomentum(), ChainedJetCorrector.correction(), JetPlusTrackCorrector.correction(), heppy::Davismt2.Davismt2(), HcalTimeSlewSim.delay(), fftjetcms.densePeakTreeFromStorable(), npstat::ArrayND< Numeric, StackLen, StackDim >.derivative(), SurveyPxbDicer.doDice(), IsoValueMapProducer< T >.doMiniIso(), IsoValueMapProducer< T >.doPFIsoEle(), IsoValueMapProducer< T >.doPFIsoPho(), Pythia8::PowhegHooksBB4L.doVetoFSR(), Pythia8::PowhegHooksBB4L.doVetoFSREmission(), Pythia8::PowhegHooksBB4L.doVetoPartonLevel(), BtlSimHitsHarvester.dqmEndJob(), DD4hep_TrackingMaterialPlotter.draw(), TrackingMaterialPlotter.draw(), drawMap(), SiPixelPI.dress_occup_plot(), PixelROCMapHelper.dress_plot(), Phase2TrackerDigitizerAlgorithm.DriftDirection(), PixelCPEBase.driftDirection(), SiPixelDigitizerAlgorithm.DriftDirection(), HLTrigReport.dumpReport(), CalorimetryManager.EMShowerSimulation(), MuonGeometryArrange.endHist(), fireworks.energyTower3DCorners(), fireworks.etScaledBox3DCorners(), DDHGCalCell.execute(), DDHGCalWafer8.execute(), DDHGCalWaferF.execute(), DDHGCalWaferP.execute(), CastorQIEShape.expand(), HcalQIEShape.expand(), FFTGenericScaleCalculator.FFTGenericScaleCalculator(), FWECALDetailViewBuilder.fillData(), Rivet::HiggsTemplateCrossSections.finalize(), Pythia8::PowhegHooksBB4L.findresscale(), generate(), FFTJetProducer.genJetPreclusters(), heppy::Davismt2.get_mt2(), EcalBarrelGeometry.getCells(), metsig::METSignificance.getCovariance(), Point.GetDeltaMu(), CastorSD.getEnergyDeposit(), FSQ::HandlerTemplate< TInputCandidateType, TOutputCandidateType, filter >.getFilteredCands(), CastorSD.getFromLibrary(), EgammaHcalIsolation.getHcalSum(), getintegratedlumiuptorun(), Point.GetMu(), Point.GetMuMinus(), Point.GetMuPlus(), AngleConverter.getProcessorPhi(), AngleConverterBase.getProcessorPhi(), KKCorrectionFactors.getScale(), EcalLaserAnalyzer2.getShapes(), Point.GetSigma(), Point.GetSigmaDeltaMu(), Point.GetSigmaMinus(), Point.GetSigmaPlus(), FactorizedJetCorrectorCalculator.getSubCorrections(), HcalDDDRecConstants.getThickActive(), HiEvtPlaneFlatten.getW(), EgammaHcalIsolation.goodHitEnergy(), Bounds.inside(), MinL3Algorithm.iterate(), GenericMinL3Algorithm.iterate(), MinL3AlgoUniv< IDdet >.iterate(), HouseholderDecomposition.iterate(), lumiperIOV(), FWTGLViewer.MakeFboHeight(), FWTGLViewer.MakeFboWidth(), L1TDTTFClient.makeSummary(), FFTGenericScaleCalculator.mapFFTJet(), MergeRootfile(), HcalConstantsXMLWriter.newCellLine(), L1TDTTFClient.normalize(), PiecewiseScalingPolynomial.operator()(), ScalingExponential.operator()(), fftjetcms::PeakEtaMagSsqDependent.operator()(), l1tp2::ParametricCalibration.ParametricCalibration(), parse_jet_member_function(), parse_peak_member_function(), l1t::TriggerMenuParser.parsePhi_Trig_LUTS(), l1t::TriggerMenuParser.parseScales(), DTBlockedROChannelsTest.performClientDiagnostic(), PlotOccupancyMapGeneric(), PlotOnTrackOccupancyGeneric(), PlotTrackerXsect(), FullModelHadronicProcess.PostStepDoIt(), heppy::Davismt2.print(), EgammaHLTPixelMatchElectronAlgo.process(), PseudoTopProducer.produce(), DeepMETProducer.produce(), JetTracksAssociationToTrackRefs.produce(), magneticfield::AutoParametrizedMagneticFieldProducer.produce(), MVAJetPuIdProducer.produce(), reco::CorrectedJetProducer< T >.produce(), cms::JetCorrectionProducer< T >.produce(), PileupJetIdProducer.produce(), DD4hep_ListGroups.produceAndSaveSummaryPlot(), ListGroups.produceAndSaveSummaryPlot(), TrackInfoProducerAlgorithm.project(), FastTrackerRecHitMatcher.project(), SiStripRecHitMatcher.project(), TestHits.projectHit(), TestSmoothHits.projectHit(), TestTrackHits.projectHit(), SiStripRecHitsValid.projectHit(), GlobalRecHitsAnalyzer.projectHit(), GlobalRecHitsProducer.projectHit(), SiStripTrackingRecHitsValid.projectHit(), JetPlusTrackCorrector.rebuildJta(), SingleGaussianState< N >.rescaleWeight(), runlistfromlumifile(), WPlusJetsEventSelector.scaleJets(), FWCaloRecHitDigitSetProxyBuilder.scaleProduct(), FWPFCandidateWithHitsProxyBuilder.scaleProduct(), PowhegResHook.scaleResonance(), HGCalParameters.scaleTrForm(), CandCommonVertexFitterBase.set(), CandKinematicVertexFitter.set(), heppy::Davismt2.set_mn(), heppy::Davismt2.set_momenta(), CaloTowersCreationAlgo.setEBEScale(), CaloTowersCreationAlgo.setEEEScale(), L1MuTriggerScales.setGMTEtaScale(), CaloTowersCreationAlgo.setHBEScale(), CaloTowersCreationAlgo.setHEDEScale(), CaloTowersCreationAlgo.setHESEScale(), CaloTowersCreationAlgo.setHF1EScale(), CaloTowersCreationAlgo.setHF2EScale(), CaloTowersCreationAlgo.setHOEScale(), L1GctJetEtCalibrationLut.setOutputEtScale(), L1MuTriggerScales.setPhiScale(), FWMET3DProxyBuilder::Arrow.setScale(), FWBoxRecHit.setupEveBox(), FWPFLegoRecHit.setupEveBox(), LinearFitErrorsIn2Coord.slope(), LinkByRecHit.testECALAndPSByRecHit(), MTDShapeBase.timeAtThr(), EmbeddingLHEProducer.transform_mumu_to_tautau(), FWBoxRecHit.updateScale(), FWPFRhoPhiRecHit.updateScale(), FWPFLegoRecHit.updateScale(), and FWCaloRecHitDigitSetProxyBuilder.viewContextBoxScale().

list pileupReCalc_HLTpaths.trunc = OUTPUTLINE[0:lastindex]

Definition at line 143 of file pileupReCalc_HLTpaths.py.

Referenced by LHEWriter.beginRun(), Phase1L1TJetProducer.computeMET(), Phase1L1TJetSumsProducer.computeMHT(), SiStripRawProcessingFactory.create_Suppressor(), LaserSorter.createOutStream(), EmbeddingLHEProducer.EmbeddingLHEProducer(), analyzer::SiPixelLorentzAngle.endJob(), PixelLumiDQM.endLuminosityBlock(), SiStripNoisesFromDBMiscalibrator.getNewObject_withDefaults(), Herwig7Interface.Herwig7Interface(), EcalSelectiveReadoutValidation.initAsciiFile(), angle0to2pi.make0To2pi(), TMultiDimFet.MakeRealCode(), jsoncollector::FastMonitor.outputCSV(), PPSAlignmentHarvester.PPSAlignmentHarvester(), EcalSelectiveReadoutProducer.produce(), edm::service::RandomNumberGeneratorService.saveStatesToFile(), RPCFw.TtoUT(), RPCFw.UTtoT(), L1RCTLutWriter.writeEicLutFile(), L1RCTLutWriter.writeJscLutFile(), L1RCTLutWriter.writeRcLutFile(), L1RCTLutWriter.writeThresholdsFile(), and HtrXmlPatternTool.writeXML().

string pileupReCalc_HLTpaths.VERSION = '1.00'

Definition at line 3 of file pileupReCalc_HLTpaths.py.