CMS 3D CMS Logo

Functions | Variables

ntuplemaker Namespace Reference

Functions

def getFill

Variables

string acommand = 'cmscond_list_iov -c frontier://PromptProd/CMS_COND_31X_BEAMSPOT -P /afs/cern.ch/cms/DB/conddb -t '
list afill = aline[1]
tuple aIOV = IOV()
tuple aline = line.split()
tuple begintime = time.mktime( time.strptime(line.split()[0] + " " + line.split()[1] + " " + line.split()[2],"%Y.%m.%d %H:%M:%S %Z") )
tuple bntuple = spot()
string datafilename = "tmp_beamspot.dat"
tuple endtime = time.mktime( time.strptime(line.split()[0] + " " + line.split()[1] + " " + line.split()[2],"%Y.%m.%d %H:%M:%S %Z") )
list files = tmp[1]
dictionary FillList = {}
string firstRun = "0:0"
tuple fntuple = TFile( 'bntuple.root', 'RECREATE' )
 getDBdata = True
list ibeam = listbeam[ii]
int iline = 0
tuple input = open(option.data +"/"+f)
string IOVbase = 'lumibase'
list iovlist = []
 jline = iline
string lastRun = "4999999999:4999999999"
 line = ibeam.IOVBeginTime
tuple linedata = line.split()
list listbeam = []
tuple listmap = readBeamSpotFile(datafilename,listbeam,IOVbase,firstRun,lastRun)
string otherArgs = ''
tuple output = open(datafilename,"w")
 passiov = False
 passline = False
list run0 = aline[3]
list run1 = aline[5]
tuple runsfile = open("FillandRuns.txt")
tuple status = commands.getstatusoutput( acommand )
tuple tbyIOV = TTree( 'byIOV', 'beam spot data by IOV' )
tuple tbylumi = TTree( 'bylumi', 'beam spot data lumi by lumi' )
tuple tbyrun = TTree( 'byrun', 'beam spot data by run' )
tuple tmp = commands.getstatusoutput("ls "+option.data)
tuple tmpfile = open(datafilename,'w')
list tmplistiov = tmpstatus[1]
tuple tmplumi = unpack(iIOV.since)
int tmplumifirst = 1
int tmplumilast = 9999999
tuple tmprun = unpack(iIOV.since)
 tmprunfirst = firstRun
 tmprunlast = lastRun
tuple tmpstatus = commands.getstatusoutput( acommand )
tuple totlines = len(tmplistiov)
 weightedlist = listbeam

Function Documentation

def ntuplemaker::getFill (   json,
  run 
)

Definition at line 56 of file ntuplemaker.py.

00057                         :
00058 
00059     thefill = 0
00060     run = int(run)
00061     keys = json.keys()
00062     
00063     for i in keys:
00064 
00065         run0 = int(json[i][0])
00066         run1 = int(json[i][1])
00067         if run>= run0 and run<=run1:
00068             thefill = i
00069     
00070     return int(thefill)
    

Variable Documentation

string ntuplemaker::acommand = 'cmscond_list_iov -c frontier://PromptProd/CMS_COND_31X_BEAMSPOT -P /afs/cern.ch/cms/DB/conddb -t '

Definition at line 177 of file ntuplemaker.py.

Definition at line 81 of file ntuplemaker.py.

Definition at line 194 of file ntuplemaker.py.

tuple ntuplemaker::aline = line.split()

Definition at line 80 of file ntuplemaker.py.

tuple ntuplemaker::begintime = time.mktime( time.strptime(line.split()[0] + " " + line.split()[1] + " " + line.split()[2],"%Y.%m.%d %H:%M:%S %Z") )

Definition at line 305 of file ntuplemaker.py.

tuple ntuplemaker::bntuple = spot()

Definition at line 103 of file ntuplemaker.py.

string ntuplemaker::datafilename = "tmp_beamspot.dat"

Definition at line 154 of file ntuplemaker.py.

tuple ntuplemaker::endtime = time.mktime( time.strptime(line.split()[0] + " " + line.split()[1] + " " + line.split()[2],"%Y.%m.%d %H:%M:%S %Z") )

Definition at line 307 of file ntuplemaker.py.

Definition at line 260 of file ntuplemaker.py.

dictionary ntuplemaker::FillList = {}

Definition at line 76 of file ntuplemaker.py.

Definition at line 163 of file ntuplemaker.py.

tuple ntuplemaker::fntuple = TFile( 'bntuple.root', 'RECREATE' )

Definition at line 104 of file ntuplemaker.py.

Definition at line 158 of file ntuplemaker.py.

Definition at line 295 of file ntuplemaker.py.

tuple ntuplemaker::input = open(option.data +"/"+f)

Definition at line 266 of file ntuplemaker.py.

string ntuplemaker::IOVbase = 'lumibase'

Definition at line 162 of file ntuplemaker.py.

Definition at line 182 of file ntuplemaker.py.

Referenced by EcalCondDBInterface::fetchLMFRunIOV().

Definition at line 190 of file ntuplemaker.py.

ntuplemaker::lastRun = "4999999999:4999999999"

Definition at line 164 of file ntuplemaker.py.

ntuplemaker::line = ibeam.IOVBeginTime

Definition at line 304 of file ntuplemaker.py.

tuple ntuplemaker::linedata = line.split()

Definition at line 192 of file ntuplemaker.py.

Definition at line 277 of file ntuplemaker.py.

Definition at line 280 of file ntuplemaker.py.

Definition at line 206 of file ntuplemaker.py.

tuple ntuplemaker::output = open(datafilename,"w")

Definition at line 262 of file ntuplemaker.py.

Definition at line 217 of file ntuplemaker.py.

Definition at line 183 of file ntuplemaker.py.

Definition at line 82 of file ntuplemaker.py.

Definition at line 83 of file ntuplemaker.py.

tuple ntuplemaker::runsfile = open("FillandRuns.txt")

Definition at line 77 of file ntuplemaker.py.

tuple ntuplemaker::status = commands.getstatusoutput( acommand )

Definition at line 245 of file ntuplemaker.py.

Referenced by HcalChannelQualityXml::_ChannelQuality::_ChannelQuality(), XMLProcessor::_toXMLCh(), smproxy::SMPSWebPageHelper::addRowForEventServer(), EESelectiveReadoutTask::analyze(), EBRawDataTask::analyze(), ESTimingTask::analyze(), EBStatusFlagsTask::analyze(), CSCTFAnalyzer::analyze(), MCEfficiencyAnalyzer::analyze(), WriteL1TriggerObjetsXml::analyze(), EERawDataTask::analyze(), BasicHepMCValidation::analyze(), L1TCSCTF::analyze(), EBSelectiveReadoutTask::analyze(), EEStatusFlagsTask::analyze(), FixTrackHitPattern::analyze(), FWCaloTowerProxyBuilderBase::assertCaloDataSlice(), gen::PhotosInterface::attachParticles(), ecaldqm::TowerStatusTask::beginLuminosityBlock(), HcalDetDiagLEDMonitor::beginRun(), HcalDetDiagPedestalMonitor::beginRun(), HcalDigiMonitor::beginRun(), HcalMonitorClient::beginRun(), HcalDeadCellMonitor::beginRun(), HcalDetDiagLaserMonitor::beginRun(), EcalDQMStatusWriter::beginRun(), EcalBoundaryInfoCalculator< EcalDetId >::boundaryRecHits(), gen::AMPTHadronizer::build_ampt(), TtSemiLepHypHitFit::buildHypo(), TtSemiLepHypKinFit::buildHypo(), TtFullHadHypKinFit::buildHypo(), CaloGeometryHelper::buildNeighbourArray(), PFMETBenchmark::calculateQuantities(), EcalRecHitWorkerRecover::checkChannelStatus(), pat::UserData::checkDictionaries(), QTestStatusChecker::checkGlobalStatus(), lhef::LHEEvent::checkHepMCTree(), HFTimingTrust::checkHFTimErr(), SiPixelFedCablingTree::checkNumbering(), EcalBoundaryInfoCalculator< EBDetId >::checkRecHitHasDeadNeighbour(), HcalDetDiagPedestalMonitor::CheckStatus(), HLTEcalResonanceFilter::checkStatusOfEcalRecHit(), EgammaHLTNxNClusterProducer::checkStatusOfEcalRecHit(), cond::className(), RFIOFile::close(), NuclearVertexBuilder::closestApproach(), stor::FilesMonitorCollection::FileRecord::completeFileName(), EMShower::compute(), DTVDriftSegment::compute(), HFShower::compute(), HDShower::compute(), EcalHitMaker::configureGeometry(), ErrorChecker::conversionError(), DTTTrigFillWithAverage::correction(), DTTTrigResidualCorrection::correction(), DTTTrigMatchRPhi::correction(), DTTTrigT0SegCorrection::correction(), TMatacq::countBadPulses(), ThePEG::HepMCConverter< HepMCEventT, Traits >::createParticle(), evf::FUResourceBroker::customWebPage(), DDIsValid(), gen::EvtGenInterface::decay(), gen::TauolaInterface::decay(), LzmaFile::DecodeAll(), LzmaFile::DecodeBuffer(), Demangle::Demangle(), ora::ClassUtils::demangledName(), EcalHitMaker::diagonalEdge(), edm::EDLooperBase::doDuringLoop(), SiPixelGainCalibrationAnalysis::doFits(), PFRecHitProducerECAL::ecalNeighbArray(), DTVDriftWriter::endJob(), LogicTool< RBCLogic >::endjob(), DTTTrigCorrection::endJob(), TMatacq::enterdata(), ErrorChecker::errorDetId(), ESRecHitFitAlgo::EvalAmplitude(), ESRecHitAnalyticAlgo::EvalAmplitude(), ESRecHitSimAlgo::EvalAmplitude(), PhysicsTools::MVAComputer::evalInternal(), ExternalLHEProducer::executeScript(), EcalHitMaker::fastInsideCell(), MuScleFitPlotter::fillGen(), PFElectronTranslator::fillMVAValueMap(), SiStripQualityChecker::fillTrackingStatus(), SiStripQualityChecker::fillTrackingStatusAtLumi(), EcalDeadCellBoundaryEnergyFilter::filter(), EcalMonitorPrescaler::filter(), PythiaFilterTTBar::filter(), PythiaFilterIsolatedTrack::filter(), HepMCValidationHelper::findFSRPhotons(), L1GtVhdlWriterCore::findObjectType(), GenParticlesHelper::findParticles(), UnbinnedLikelihoodFit::fit(), TtFullHadKinFitter::KinFit::fit(), PixelDataFormatter::formatRawData(), EcalBoundaryInfoCalculator< EcalDetId >::gapRecHits(), GaussNoiseProducerFP420::generate(), pat::PATObject< ObjectType >::genParticleById(), DTTtrig::get(), DTMtime::get(), JetMatchingHook::getAncestor(), DTTTrigFillWithAverage::getAverage(), ESTrivialConditionRetriever::getChannelStatusFromConfiguration(), EcalTrivialConditionRetriever::getChannelStatusFromConfiguration(), EcalDeadCellTriggerPrimitiveFilter::getChannelStatusMaps(), EcalDeadCellDeltaRFilter::getChannelStatusMaps(), cscdqm::Summary::GetEfficiencyHW(), PixelSLinkDataInputSource::getEventNumberFromFillWords(), NtupleROOTFile::getIsthep(), CrossingPtBasedLinearizationPointFinder::getLinearizationPoint(), SiStripUtility::getMEStatus(), DTStatusFlagHandler::getNewObjects(), DTReadOutMappingHandler::getNewObjects(), DTTPGParametersHandler::getNewObjects(), DTMtimeHandler::getNewObjects(), DTT0Handler::getNewObjects(), DTRangeT0Handler::getNewObjects(), DTDeadFlagHandler::getNewObjects(), DTTtrigHandler::getNewObjects(), DTPerformanceHandler::getNewObjects(), VVVValidation::getParentBarcode(), cscdqm::Summary::GetReportingArea(), lhef::getStatus(), SiPixelUtility::getStatus(), DQMStore::getStatus(), MuScleFitMuonSelector::getStatus1Muon(), EcalTrivialConditionRetriever::getTrgChannelStatusFromConfiguration(), GenParticlesHelper::hasAncestor(), HcalDetDiagLaserClient::hasErrors_Temp(), HcalDetDiagLaserClient::hasWarnings_Temp(), HcalDetDiagLaserClient::HcalDetDiagLaserClient(), CalorimetryManager::HDShowerSimulation(), HcalHFStatusBitFromRecHits::hfSetFlagFromRecHits(), PFRecHitProducerHO::hoNeighbArray(), HcalPedestalClient::htmlOutput(), CascadeMinimizer::improveOnce(), InduceChargeFP420::induce(), SiPixelDigitizerAlgorithm::induce_signal(), fireworks::Context::initEveElements(), RBCEmulator::initialise(), RBCLogicUnit::initialise(), RPCWheel::initialise(), TTUBasicConfig::initialise(), LogicTool< RBCLogic >::initialise(), RBCBasicConfig::initialise(), TTULogicUnit::initialise(), TTUEmulator::initialise(), edm::ParameterDescriptionCases< T >::insert(), edm::ParameterSwitchBase::insertAndCheckLabels(), MBUEandQCDValidation::isCharged(), HepMCValidationHelper::isChargedLepton(), EcalDeadCellDeltaRFilter::isCloseToBadEcalChannel(), AnomalousECALVariables::isDeadEcalCluster(), GenParticlesHelper::isDirect(), MBUEandQCDValidation::isNeutral(), HepMCValidationHelper::isNeutrino(), MBUEandQCDValidation::isNeutrino(), cscdqm::Summary::IsPhysicsReady(), FFTJetProducer::iterateJetReconstruction(), PFRecoTauDiscriminationAgainstElectronDeadECAL::loopXtals(), main(), lhef::LHEEvent::makeHepMCParticle(), reco::MCMatchSelector< T1, T2 >::MCMatchSelector(), MergeRootfile(), CaloGeometryHelper::move(), TEcnaRead::OpenRootFile(), TEcnaRun::OpenRootFile(), TSCBLBuilderNoMaterial::operator()(), GenJetParticleSelector::operator()(), trigger::TriggerObject::particle(), evf::iDie::perLumiFileSaver(), pos::PixelDetectorConfig::PixelDetectorConfig(), SymmetryFit::pol2_from_pol2(), SymmetryFit::pol2_from_pol3(), stor::CurlInterface::postBinaryMessage(), HepMCFileReader::printEvent(), TMatacq::printitermatacqData(), PrimaryVertexAnalyzer4PU::printPVTrks(), RPCWheel::process(), RBCChamberORLogic::process(), PFLinker::produce(), PFPhotonTranslator::produce(), WeakEffectsWeightProducer::produce(), FlavorHistoryProducer::produce(), RPCUnpackingModule::produce(), CSCTFUnpacker::produce(), FFTJetProducer::produce(), ISRWeightProducer::produce(), RPCTechnicalTrigger::produce(), ISRGammaWeightProducer::produce(), PFElectronTranslator::produce(), PdfWeightProducer::produce(), TtSemiLepKinFitProducer< LeptonCollection >::produce(), EcalTrivialConditionRetriever::produceEcalDAQTowerStatus(), EcalTrivialConditionRetriever::produceEcalDCSTowerStatus(), ecaldqm::SummaryClient::producePlots(), Herwig6Hadronizer::pythiaStatusCode(), StoreEcalCondition::readEcalChannelStatusFromFile(), EcalDQMStatusWriter::readEcalDQMChannelStatusFromFile(), EcalDQMStatusWriter::readEcalDQMTowerStatusFromFile(), DTReadOutMapping::readOutToGeometry(), SiStripInformationExtractor::readStatusMessage(), IOInput::readv(), EcalDCSTowerStatusXMLTranslator::readXML(), EcalDAQTowerStatusXMLTranslator::readXML(), ESRecHitSimAlgo::reconstruct(), ESRecHitAnalyticAlgo::reconstruct(), ESRecHitFitAlgo::reconstruct(), gen::Cascade2Hadronizer::residualDecay(), gen::Pythia6Hadronizer::residualDecay(), TEcnaRootFile::ReStart(), L1GtVhdlWriterCore::returnConditionsOfOneClass(), stor::TriggerSelector::TreeElement::returnStatus(), nllutils::robustMinimize(), Combine::run(), run_script(), ecaldqm::RawDataTask::runOnRawData(), ecaldqm::SelectiveReadoutTask::runOnSrFlag_(), ecaldqm::TowerStatusTask::runOnTowerStatus(), DQMStore::save(), SiStripInformationExtractor::selectColor(), SiStripInformationExtractor::selectImage(), HcalSourcePositionData::set(), DTStatusFlag::setCellDead(), DTDeadFlag::setCellDead_HV(), DTDeadFlag::setCellDead_RO(), DTDeadFlag::setCellDead_TP(), DTDeadFlag::setCellDiscCat(), DTStatusFlag::setCellFEMask(), DTStatusFlag::setCellNoHV(), DTStatusFlag::setCellNoise(), DTStatusFlag::setCellTDCMask(), DTStatusFlag::setCellTrigMask(), ESRecHitFitAlgo::setChannelStatus(), ESRecHitSimAlgo::setChannelStatus(), ESRecHitAnalyticAlgo::setChannelStatus(), smproxy::DataRetrieverMonitorCollection::setConnectionStatus(), FWLegoViewBase::setContext(), EcalDeadCellTriggerPrimitiveFilter::setEvtRecHitstatus(), EcalDeadCellTriggerPrimitiveFilter::setEvtTPstatus(), ESDigitizer::setGain(), EcalTBHodoscopePlaneRawHits::setHit(), reco::CSCHaloData::SetHLTBit(), FFTJetProducer::setJetStatusBit(), objMon< T >::setMC(), ErrorStreamSource::setRunAndEventInfo(), evf::IPCMethod::setStopFlag(), MonLed1Dat::setTaskStatus(), MonPNGreenDat::setTaskStatus(), MonPNIRedDat::setTaskStatus(), MonPedestalOffsetsDat::setTaskStatus(), MonPNMGPADat::setTaskStatus(), MonPedestalsOnlineDat::setTaskStatus(), MonPNPedDat::setTaskStatus(), MonLaserBlueDat::setTaskStatus(), MonPNBlueDat::setTaskStatus(), ITimingDat::setTaskStatus(), MonCrystalConsistencyDat::setTaskStatus(), MonLaserIRedDat::setTaskStatus(), MonPNLed1Dat::setTaskStatus(), MonMemTTConsistencyDat::setTaskStatus(), MonPNLed2Dat::setTaskStatus(), MonMemChConsistencyDat::setTaskStatus(), MonDelaysTTDat::setTaskStatus(), MonLed2Dat::setTaskStatus(), MonTestPulseDat::setTaskStatus(), MonLaserGreenDat::setTaskStatus(), MonLaserRedDat::setTaskStatus(), MonPedestalsDat::setTaskStatus(), MonPNRedDat::setTaskStatus(), MonTTConsistencyDat::setTaskStatus(), HBHETimingShapedFlagSetter::SetTimingShapedFlags(), TrackingTruthProducer::setTrackingParticle(), evf::FUResourceTable::shutDownClients(), pftools::Utils::StringMatch(), Utils::stringMatch(), Utils::StringMatch(), SymmetryFit::symmetryChi2(), TEcnaRootFile::TEcnaRootFile(), CSCFitAFEBThr::ThresholdNoise(), HBHETimingShapedFlagSetter::timingStatus(), TMatacq::TMatacq(), HLTPerformanceInfo::totalPathCPUTime(), HLTPerformanceInfo::totalPathTime(), edm::typeDemangle(), pat::UserHolder< T >::typeName_(), HcaluLUTTPGCoder::update(), CrossingPtBasedLinearizationPointFinder::useAllTracks(), evf::rb_statemachine::SharedResources::watching(), PixelDataFormatter::word2digi(), cscdqm::Summary::Write(), EPOS::IO_EPOS::write_event(), EcalEndcapMonitorClient::writeDb(), and EcalBarrelMonitorClient::writeDb().

tuple ntuplemaker::tbyIOV = TTree( 'byIOV', 'beam spot data by IOV' )

Definition at line 117 of file ntuplemaker.py.

tuple ntuplemaker::tbylumi = TTree( 'bylumi', 'beam spot data lumi by lumi' )

Definition at line 105 of file ntuplemaker.py.

tuple ntuplemaker::tbyrun = TTree( 'byrun', 'beam spot data by run' )

Definition at line 129 of file ntuplemaker.py.

tuple ntuplemaker::tmp = commands.getstatusoutput("ls "+option.data)

Definition at line 259 of file ntuplemaker.py.

Definition at line 214 of file ntuplemaker.py.

Definition at line 179 of file ntuplemaker.py.

tuple ntuplemaker::tmplumi = unpack(iIOV.since)

Definition at line 243 of file ntuplemaker.py.

Definition at line 220 of file ntuplemaker.py.

int ntuplemaker::tmplumilast = 9999999

Definition at line 221 of file ntuplemaker.py.

tuple ntuplemaker::tmprun = unpack(iIOV.since)

Definition at line 242 of file ntuplemaker.py.

Referenced by AlcaBeamSpotManager::createWeightedPayloads().

Definition at line 218 of file ntuplemaker.py.

Definition at line 219 of file ntuplemaker.py.

tuple ntuplemaker::tmpstatus = commands.getstatusoutput( acommand )

Definition at line 178 of file ntuplemaker.py.

Definition at line 185 of file ntuplemaker.py.

Definition at line 334 of file ntuplemaker.py.