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)
 
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 108 of file pileupReCalc_HLTpaths.py.

tuple pileupReCalc_HLTpaths.inputPileupRange = parseInputFile(options.inputLumiJSON)

Definition at line 88 of file pileupReCalc_HLTpaths.py.

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

Definition at line 81 of file pileupReCalc_HLTpaths.py.

tuple pileupReCalc_HLTpaths.lastindex = len(OUTPUTLINE)

Definition at line 140 of file pileupReCalc_HLTpaths.py.

list pileupReCalc_HLTpaths.LSPUlist = inputPileupRange[run]

Definition at line 103 of file pileupReCalc_HLTpaths.py.

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

Definition at line 126 of file pileupReCalc_HLTpaths.py.

float pileupReCalc_HLTpaths.newInstLumi = PUlumiInfo[2]

Definition at line 121 of file pileupReCalc_HLTpaths.py.

list pileupReCalc_HLTpaths.newIntLumi = scale*PUlumiInfo[0]

Definition at line 119 of file pileupReCalc_HLTpaths.py.

list pileupReCalc_HLTpaths.newRmsLumi = PUlumiInfo[1]

Definition at line 120 of file pileupReCalc_HLTpaths.py.

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

Definition at line 167 of file pileupReCalc_HLTpaths.py.

pileupReCalc_HLTpaths.OUTPUTLINE = ""

Definition at line 93 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 107 of file pileupReCalc_HLTpaths.py.

float pileupReCalc_HLTpaths.scale = 0

Definition at line 111 of file pileupReCalc_HLTpaths.py.

Referenced by AlignableModifier.addDeformation(), FWPFCandidateWithHitsProxyBuilder.addHitsForCandidate(), myFastSimVal.analyze(), CMSDAS11DijetAnalyzer.analyze(), JetCorExample< Jet >.analyze(), JetCorrectorOnTheFly< Jet >.analyze(), JetTester.analyze(), myJetAna.analyze(), TauJetCorrectorExample.analyze(), JetMETHLTOfflineSource.analyze(), JetAnalyzer.analyze(), ExoticaDQM.analyze(), METAnalyzer.analyze(), ExoticaDQM.analyzeDiJets(), DTnoiseDBValidation.beginRun(), FWCaloRecHitDigitSetProxyBuilder.build(), FWL1EmParticleProxyBuilder.build(), FWL1EtMissParticleProxyBuilder.build(), FWL1MuonParticleProxyBuilder.build(), FWL1JetParticleProxyBuilder.build(), TrackerGeomBuilderFromGeometricDet.buildPlaneWithMaterial(), FWPFRhoPhiRecHit.buildRecHit(), TrackerGeomBuilderFromGeometricDet.buildSilicon(), L1TDTTFClient.buildSummaries(), FWPFLegoRecHit.buildTower(), GsfElectronAlgo::ElectronData.calculateMomentum(), 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(), MuonGeometryArrange.endHist(), fireworks.energyTower3DCorners(), fireworks.etScaledBox3DCorners(), CastorQIEShape.expand(), HcalQIEShape.expand(), VoronoiAlgorithm.feature_extract(), FFTGenericScaleCalculator.FFTGenericScaleCalculator(), ThePEGInterface.fillAuxiliary(), FFTJetProducer.genJetPreclusters(), heppy::Davismt2.get_mt2(), EcalBarrelGeometry.getCells(), metsig::METSignificance.getCovariance(), FSQ::HandlerTemplate< TInputCandidateType, TOutputCandidateType, filter >.getFilteredCands(), CastorSD.getFromLibrary(), EgammaHcalIsolation.getHcalSum(), EcalLaserAnalyzer2.getShapes(), FactorizedJetCorrectorCalculator.getSubCorrections(), HiEvtPlaneFlatten.getW(), reco::MustacheKernel.inDynamicDPhiWindow(), Bounds.inside(), GenericMinL3Algorithm.iterate(), MinL3Algorithm.iterate(), HouseholderDecomposition.iterate(), MinL3AlgoUniv< IDdet >.iterate(), main(), FWTGLViewer.MakeFboHeight(), FWTGLViewer.MakeFboWidth(), L1TDTTFClient.makeSummary(), FFTGenericScaleCalculator.mapFFTJet(), HcalConstantsXMLWriter.newCellLine(), L1TDTTFClient.normalize(), PiecewiseScalingPolynomial.operator()(), ScalingExponential.operator()(), fftjetcms::PeakEtaMagSsqDependent.operator()(), parse_jet_member_function(), parse_peak_member_function(), DTBlockedROChannelsTest.performClientDiagnostic(), PlotOccupancyMapGeneric(), PlotOnTrackOccupancyGeneric(), PlotTrackerXsect(), heppy::Davismt2.print(), EgammaHLTPixelMatchElectronAlgo.process(), PseudoTopProducer.produce(), GsfTrajectorySmootherESProducer.produce(), JetTracksAssociationToTrackRefs.produce(), reco::CorrectedJetProducer< T >.produce(), magneticfield::AutoParametrizedMagneticFieldProducer.produce(), cms::JetCorrectionProducer< T >.produce(), PileupJetIdProducer.produce(), ListGroups.produceAndSaveSummaryPlot(), GSRecHitMatcher.project(), TrackInfoProducerAlgorithm.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(), 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(), FWPFLegoRecHit.setupEveBox(), LinearFitErrorsIn2Coord.slope(), FWPFRhoPhiRecHit.updateScale(), FWPFLegoRecHit.updateScale(), and FWCaloRecHitDigitSetProxyBuilder.viewContextBoxScale().

list pileupReCalc_HLTpaths.trunc = OUTPUTLINE[0:lastindex]

Definition at line 141 of file pileupReCalc_HLTpaths.py.

string pileupReCalc_HLTpaths.VERSION = '1.00'

Definition at line 2 of file pileupReCalc_HLTpaths.py.