CMS 3D CMS Logo

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 ## ## ## ## ################## ## ## ######################## ##
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.

00012                                  :
00013     '''
00014     output ({run:[ls:[inlumi, meanint]]})
00015     '''
00016     selectf=open(inputfilename,'r')
00017     inputfilecontent=selectf.read()
00018     p=pileupParser.pileupParser(inputfilecontent)                            
00019     
00020 #    p=inputFilesetParser.inputFilesetParser(inputfilename)
00021     runlsbyfile=p.runsandls()
00022     return runlsbyfile
00023 
00024 


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.

Definition at line 81 of file pileupReCalc_HLTpaths.py.

Definition at line 140 of file pileupReCalc_HLTpaths.py.

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.

Definition at line 121 of file pileupReCalc_HLTpaths.py.

Definition at line 119 of file pileupReCalc_HLTpaths.py.

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.

Definition at line 93 of file pileupReCalc_HLTpaths.py.

Initial value:
00001 optparse.OptionParser("Usage: %prog [--options]",
00002                                     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.

Definition at line 107 of file pileupReCalc_HLTpaths.py.

Definition at line 111 of file pileupReCalc_HLTpaths.py.

Referenced by AlignableModifier::addDeformation(), TauJetCorrectorExample::analyze(), JetCorrectorOnTheFly< Jet >::analyze(), JetMETHLTOfflineSource::analyze(), JetCorExample< Jet >::analyze(), myFastSimVal::analyze(), CMSDAS11DijetAnalyzer::analyze(), myJetAna::analyze(), DTnoiseDBValidation::beginRun(), FWL1JetParticleProxyBuilder::build(), FWL1EmParticleProxyBuilder::build(), FWL1MuonParticleProxyBuilder::build(), FWL1EtMissParticleProxyBuilder::build(), FWEcalRecHitProxyBuilder::build(), TrackerGeomBuilderFromGeometricDet::buildPlaneWithMaterial(), FWPFRhoPhiRecHit::buildRecHit(), TrackerGeomBuilderFromGeometricDet::buildSilicon(), L1TDTTFClient::buildSummaries(), FWPFLegoRecHit::buildTower(), GsfElectronAlgo::ElectronData::calculateMomentum(), PixelCPEBase::computeLorentzShifts(), ElectronMomentumCorrector::correct(), JetPlusTrackCorrector::correction(), ChainedJetCorrector::correction(), fftjetcms::densePeakTreeFromStorable(), SurveyPxbDicer::doDice(), TrackingMaterialPlotter::draw(), PixelCPEBase::driftDirection(), SiPixelDigitizerAlgorithm::DriftDirection(), HLTrigReport::dumpReport(), MuonGeometryArrange::endHist(), DQMHOAlCaRecoStream::endJob(), fireworks::energyTower3DCorners(), fireworks::etScaledBox3DCorners(), CastorQIEShape::expand(), HcalQIEShape::expand(), ThePEGInterface::fillAuxiliary(), Rivet::CMS_QCD_10_010::finalize(), Rivet::CMS_2011_S8978280::finalize(), Rivet::CMS_FWD_10_006::finalize(), Rivet::CMS_2010_S8656010::finalize(), Rivet::CMS_FWD_10_011::finalize(), Rivet::MC_LES_HOUCHES_SYSTEMATICS_CMS::finalize(), Rivet::CMS_2010_S8547297::finalize(), ecaldqm::getBinME(), EcalBarrelGeometry::getCells(), CastorSD::getFromLibrary(), EgammaHcalIsolation::getHcalSum(), EcalLaserAnalyzer2::getShapes(), FactorizedJetCorrector::getSubCorrections(), Bounds::inside(), MinL3AlgoUnivErr< IDdet >::iterate(), MinL3Algorithm::iterate(), GenericMinL3Algorithm::iterate(), MinL3AlgoUniv< IDdet >::iterate(), HouseholderDecomposition::iterate(), main(), L1TDTTFClient::makeSummary(), HcalConstantsXMLWriter::newCellLine(), L1TDTTFClient::normalize(), EcalSelectiveReadoutValidation::normalizeHists(), fftjetcms::PeakEtaMagSsqDependent::operator()(), parse_jet_member_function(), parse_peak_member_function(), DTBlockedROChannelsTest::performClientDiagnostic(), EgammaHLTPixelMatchElectronAlgo::process(), GsfTrajectorySmootherESProducer::produce(), cms::JetCorrectionProducer< T >::produce(), GSRecHitMatcher::project(), TrackInfoProducerAlgorithm::project(), SiStripRecHitMatcher::project(), TestSmoothHits::projectHit(), GlobalRecHitsProducer::projectHit(), TestHits::projectHit(), TestTrackHits::projectHit(), GlobalRecHitsAnalyzer::projectHit(), SiStripRecHitsValid::projectHit(), SiStripTrackingRecHitsValid::projectHit(), JetPlusTrackCorrector::rebuildJta(), SingleGaussianState< N >::rescaleWeight(), WPlusJetsEventSelector::scaleJets(), FWEcalRecHitProxyBuilder::scaleProduct(), CandCommonVertexFitterBase::set(), CandKinematicVertexFitter::set(), PFCandCommonVertexFitterBase::set(), PFElectronAlgo::SetCandidates(), CaloTowersCreationAlgo::setEBEScale(), CaloTowersCreationAlgo::setEEEScale(), L1MuTriggerScales::setGMTEtaScale(), CaloTowersCreationAlgo::setHBEScale(), CaloTowersCreationAlgo::setHEDEScale(), CaloTowersCreationAlgo::setHESEScale(), CaloTowersCreationAlgo::setHF1EScale(), CaloTowersCreationAlgo::setHF2EScale(), CaloTowersCreationAlgo::setHOEScale(), L1GctJetEtCalibrationLut::setOutputEtScale(), ThePEG::HepMCConverter< HepMCEventT, Traits >::setPdfInfo(), L1MuTriggerScales::setPhiScale(), FWMET3DProxyBuilder::Arrow::setScale(), FWPFLegoRecHit::setupEveBox(), LinearFitErrorsIn2Coord::slope(), PFBlockAlgo::testPS1AndPS2(), FWPFLegoRecHit::updateScale(), and FWPFRhoPhiRecHit::updateScale().

Definition at line 141 of file pileupReCalc_HLTpaths.py.

Definition at line 2 of file pileupReCalc_HLTpaths.py.