CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 11 of file pileupReCalc_HLTpaths.py.

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

Variable Documentation

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

Definition at line 39 of file pileupReCalc_HLTpaths.py.

string pileupReCalc_HLTpaths.default = 'PileupRecalcJSON.txt'

Definition at line 50 of file pileupReCalc_HLTpaths.py.

string pileupReCalc_HLTpaths.help = 'output pileup JSON file'

Definition at line 51 of file pileupReCalc_HLTpaths.py.

list pileupReCalc_HLTpaths.HLTlumiInfo = lslist[LSnumber]

Definition at line 109 of file pileupReCalc_HLTpaths.py.

tuple pileupReCalc_HLTpaths.inputPileupRange = parseInputFile(options.inputLumiJSON)

Definition at line 89 of file pileupReCalc_HLTpaths.py.

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

Definition at line 82 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 104 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 94 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 35 of file pileupReCalc_HLTpaths.py.

list pileupReCalc_HLTpaths.PUlumiInfo = LSPUlist[LSnumber]

Definition at line 108 of file pileupReCalc_HLTpaths.py.

float pileupReCalc_HLTpaths.scale = 0

Definition at line 112 of file pileupReCalc_HLTpaths.py.

Referenced by evf.__attribute__(), AlignableModifier.addDeformation(), FWPFCandidateWithHitsProxyBuilder.addHitsForCandidate(), myFastSimVal.analyze(), CMSDAS11DijetAnalyzer.analyze(), JetCorExample< Jet >.analyze(), corrResps.analyze(), corrGains.analyze(), JetCorrectorOnTheFly< Jet >.analyze(), JetTester.analyze(), myJetAna.analyze(), TauJetCorrectorExample.analyze(), JetMETHLTOfflineSource.analyze(), JetAnalyzer.analyze(), ExoticaDQM.analyze(), METAnalyzer.analyze(), ExoticaDQM.analyzeDiJets(), DTnoiseDBValidation.beginRun(), FWCaloRecHitDigitSetProxyBuilder.build(), FWL1EtMissParticleProxyBuilder.build(), FWL1JetParticleProxyBuilder.build(), FWL1EmParticleProxyBuilder.build(), FWL1MuonParticleProxyBuilder.build(), TrackerGeomBuilderFromGeometricDet.buildPlaneWithMaterial(), FWPFRhoPhiRecHit.buildRecHit(), TrackerGeomBuilderFromGeometricDet.buildSilicon(), L1TDTTFClient.buildSummaries(), FWPFLegoRecHit.buildTower(), GsfElectronAlgo::ElectronData.calculateMomentum(), PhotonEnergyCalibratorRun2.calibrate(), ElectronEnergyCalibratorRun2.calibrate(), ElectronEnergyCalibrator.calibrate(), npstat::ArrayND< Numeric, StackLen, StackDim >.cdfArray(), FFTJetCorrector< Jet, Adjustable >.correct(), ElectronMomentumCorrector.correct(), ChainedJetCorrector.correction(), JetPlusTrackCorrector.correction(), heppy::Davismt2.Davismt2(), HcalTimeSlewSim.delay(), fftjetcms.densePeakTreeFromStorable(), npstat::ArrayND< Numeric, StackLen, StackDim >.derivative(), SurveyPxbDicer.doDice(), TrackingMaterialPlotter.draw(), drawMap(), PixelCPEBase.driftDirection(), SiPixelDigitizerAlgorithm.DriftDirection(), HLTrigReport.dumpReport(), CalorimetryManager.EMShowerSimulation(), MuonGeometryArrange.endHist(), fireworks.energyTower3DCorners(), fireworks.etScaledBox3DCorners(), CastorQIEShape.expand(), HcalQIEShape.expand(), VoronoiAlgorithm.feature_extract(), FFTGenericScaleCalculator.FFTGenericScaleCalculator(), ThePEGInterface.fillAuxiliary(), FWECALDetailViewBuilder.fillData(), FFTJetProducer.genJetPreclusters(), heppy::Davismt2.get_mt2(), EcalBarrelGeometry.getCells(), metsig::METSignificance.getCovariance(), CastorSD.getEnergyDeposit(), FSQ::HandlerTemplate< TInputCandidateType, TOutputCandidateType, filter >.getFilteredCands(), CastorSD.getFromLibrary(), EgammaHcalIsolation.getHcalSum(), AngleConverter.getProcessorPhi(), KKCorrectionFactors.getScale(), EcalLaserAnalyzer2.getShapes(), FactorizedJetCorrectorCalculator.getSubCorrections(), HcalDDDRecConstants.getThickActive(), HiEvtPlaneFlatten.getW(), reco::MustacheKernel.inDynamicDPhiWindow(), Bounds.inside(), GenericMinL3Algorithm.iterate(), MinL3Algorithm.iterate(), HouseholderDecomposition.iterate(), MinL3AlgoUniv< IDdet >.iterate(), FWTGLViewer.MakeFboHeight(), FWTGLViewer.MakeFboWidth(), L1TDTTFClient.makeSummary(), FFTGenericScaleCalculator.mapFFTJet(), MergeRootfile(), HcalConstantsXMLWriter.newCellLine(), L1TDTTFClient.normalize(), ScalingExponential.operator()(), PiecewiseScalingPolynomial.operator()(), fftjetcms::PeakEtaMagSsqDependent.operator()(), parse_jet_member_function(), parse_peak_member_function(), l1t::TriggerMenuParser.parseScales(), DTBlockedROChannelsTest.performClientDiagnostic(), PlotOccupancyMapGeneric(), PlotOnTrackOccupancyGeneric(), PlotTrackerXsect(), heppy::Davismt2.print(), EgammaHLTPixelMatchElectronAlgo.process(), GsfTrajectorySmootherESProducer.produce(), PseudoTopProducer.produce(), JetTracksAssociationToTrackRefs.produce(), MVAJetPuIdProducer.produce(), reco::CorrectedJetProducer< T >.produce(), magneticfield::AutoParametrizedMagneticFieldProducer.produce(), cms::JetCorrectionProducer< T >.produce(), PileupJetIdProducer.produce(), 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(), WPlusJetsEventSelector.scaleJets(), FWCaloRecHitDigitSetProxyBuilder.scaleProduct(), FWPFCandidateWithHitsProxyBuilder.scaleProduct(), HGCalParameters.scaleTrForm(), CandCommonVertexFitterBase.set(), PFCandCommonVertexFitterBase.set(), CandKinematicVertexFitter.set(), heppy::Davismt2.set_mn(), heppy::Davismt2.set_momenta(), PFElectronAlgo.SetCandidates(), 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(), FWPFRhoPhiRecHit.updateScale(), FWBoxRecHit.updateScale(), FWPFLegoRecHit.updateScale(), and FWCaloRecHitDigitSetProxyBuilder.viewContextBoxScale().

list pileupReCalc_HLTpaths.trunc = OUTPUTLINE[0:lastindex]

Definition at line 143 of file pileupReCalc_HLTpaths.py.

string pileupReCalc_HLTpaths.VERSION = '1.00'

Definition at line 2 of file pileupReCalc_HLTpaths.py.