CMS 3D CMS Logo

Functions
RemoteFile.cc File Reference
#include "Utilities/StorageFactory/interface/RemoteFile.h"
#include "Utilities/StorageFactory/src/Throw.h"
#include "FWCore/Utilities/interface/Exception.h"
#include <sys/wait.h>
#include <sys/types.h>
#include <cerrno>
#include <cassert>
#include <spawn.h>
#include <unistd.h>
#include <ostream>
#include <cstring>

Go to the source code of this file.

Functions

static std::string join (char **cmd)
 

Function Documentation

◆ join()

static std::string join ( char **  cmd)
static

Definition at line 19 of file RemoteFile.cc.

References mps_setup::cmd, AlCaHLTBitMon_ParallelJobs::p, mps_fire::result, findQualityFiles::size, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by counter.Counter::__add__(), Modules.SwitchProducer::__addParameter(), VIDSelectorBase.VIDSelectorBase::__call__(), cond2xml.CondXmlProcessor::__del__(), dataset.Dataset::__fileListSnippet(), Mixins._TypedParameterizable::__findDefaultsFor(), dirstructure.Directory::__get_full_path(), alignment.Alignment::__getConditions(), tfile.TFileService::__init__(), plottingOptions.PlottingOptionsTrackSplitting::__init__(), Mixins._ValidatingListBase::__init__(), dataset.Dataset::__lumiSelectionSnippet(), DictTypes.SortedKeysDict::__repr__(), python.XML2Python.DataNode::__repr__(), XML2Python.DataNode::__repr__(), svgfig.SVG::__standalone_xml(), TriggerObject.TriggerObject::__str__(), DiObject.DiObject::__str__(), rltinfo.RLTInfo::__str__(), event.Event::__str__(), config.CFG::__str__(), Tau.Tau::__str__(), DiObject.DiElectron::__str__(), analyzer.Analyzer::__str__(), VBF.VBF::__str__(), TriggerAnalyzer::__str__(), counter.Counters::__str__(), psClasses.BuildTreeNodeList::__str__(), ntuplePrintersDiff._DiffResult::__str__(), config.Sequence::__str__(), config.Config::__str__(), PhaseITreeProducer.ModuleLvlValuesReader::__TraverseDirTree(), TH2PolyOfflineMaps.TH2PolyOfflineMaps::__TraverseDirTree(), validation::_copySubDir(), tkal_create_file_lists.FileListCreator::_create_dataset_cff(), tkal_create_file_lists.FileListCreator::_create_dataset_ini_section(), tkal_create_file_lists.FileListCreator::_create_dataset_txt(), tkal_create_file_lists.FileListCreator::_create_hippy_txt(), mps_alisetup.SetupAlignment::_create_pede_jobs(), validation.Validation::_doPlots(), validation.SimpleValidation::_doPlots(), validation.SeparateValidation::_doPlots(), validation.Validation::_doPlotsFastFull(), validation::_doPlotsForPlotter(), validation.Validation::_doPlotsPileup(), mps_alisetup.SetupAlignment::_fetch_datasets(), progressbar.ProgressBar::_format_line(), ntuplePrintersDiff::_formatHitDiffForTwiki(), electrons_cff::_get_bitmapVIDForEle_docstring(), tkal_create_file_lists::_get_properties(), plotting::_getDirectoryDetailed(), validation.Validation::_getRefFileAndSelection(), chain.Chain::_guessTreeName(), mps_alisetup.SetupAlignment::_handle_process_call(), Config.Process::_insertPaths(), helpers::_lineDiff(), Config::_lineDiff(), ntuplePrintersDiff._RecHitPrinter::_printHits(), ntuplePrintersDiff.TrackingParticlePrinter::_printMatchedTracks(), ntuplePrintersDiff.TrackingParticlePrinter::_printTP(), ntuplePrintersDiff._TrackingParticleMatchPrinter::_printTrackingParticles(), FrontierCondition_GT_autoExpress_cfi.Tier0Handler::_queryTier0DataSvc(), tier0.Tier0Handler::_queryTier0DataSvc(), FWLite.WorkingPoints::_reformat_cut_definitions(), personalPlayback.FrameworkJob::_set_name(), Types.InputTag::_stringFromArgument(), Types.ESInputTag::_stringFromArgument(), taus_cff::_tauIdWPMask(), tkal_create_file_lists.FileListCreator::_write_file_lists(), ConfigBuilder.ConfigBuilder::addCustomise(), confdb.HLTProcess::addEras(), ConfigBuilder.ConfigBuilder::addOutput(), ConfigBuilder.ConfigBuilder::addStandardSequences(), Impl.AlCa.AlCa::alcaHarvesting(), Impl.AlCaNano.AlCaNano::alcaHarvesting(), Reco.Reco::alcaHarvesting(), Impl.AlCa.AlCa::alcaSkim(), Impl.AlCaPPS_Run3.AlCaPPS_Run3::alcaSkim(), Impl.AlCaNano.AlCaNano::alcaSkim(), Reco.Reco::alcaSkim(), Config.Process::analyzerNames(), ConfigBuilder::anyOf(), overlapValidation.OverlapValidation::appendToMerge(), trackSplittingValidation.TrackSplittingValidation::appendToMerge(), primaryVertexResolution.PrimaryVertexResolution::appendToMerge(), primaryVertexValidation.PrimaryVertexValidation::appendToMerge(), offlineValidation.OfflineValidation::appendToMerge(), utils_v2::auth_download_file(), autoCondModifiers::autoCond0T(), autoCondModifiers::autoCond2017ppRef5TeV(), autoCondModifiers::autoCondDDD(), autoCondModifiers::autoCondHLTHI(), autoCondModifiers::autoCondRelValForRun2(), autoCondModifiers::autoCondRelValForRun3(), Histogrammer.Histogrammer::beginLoop(), DQMEventInfo::bookHistograms(), config.Analyzer::build_name(), config.Service::build_name(), dirstructure.Directory::calcStats(), ValidationMatrix_v2::call_compare_using_files(), triggerObjects_cff::chaintoken_(), CrabHelper.CrabHelper::check_crabtask(), cmsHarvester::check_input_status(), DTWorkflow.DTWorkflow::check_missing_options(), cmsHarvester::check_ref_hist_tag(), models::class_name_to_column(), CommonHcalNoiseRBXData::CommonHcalNoiseRBXData(), compareDQMOutput::compare(), ValidationMatrix_v2.ReleaseComparison::compare(), cmsHarvester.CMSHarvester::config_file_header(), mps_setup_new_align::copy_default_templates(), geometry.Alignables::create_children_list(), cmsHarvester::create_crab_config(), compareHistograms::create_dif(), cmsHarvester::create_harvesting_config(), cmsHarvester::create_me_extraction_config(), cmsHarvester::create_multicrab_config(), web.dbfile2html::create_page(), tools::create_single_iov_db(), dataset.Dataset::createdatasetfile_hippy(), showPage::createLogFiles(), convertParamsToOnlineFormat::createMIF(), dataset::createMyDataset(), heppy_loop::createOutputDir(), pickleFileCreater::createPickleFile(), genericValidation.ValidationWithPlots::createPlottingScript(), convertParamsToOnlineFormat::createXML(), customizeHLTforNewDatasetDefinition::customizeHLTforNewDatasetDefinition(), Photon.Photon::CutBasedIDWP(), MatrixUtil.InputInfo::das(), util.rrapi.RRApi::data(), rrapi.RRApi::data(), web.app_utils::db_list_with_releases(), web.dbfile2html::dbfile2html(), makeLayoutFileForGui::defaults(), EnviromentSettings::detectEnviroment(), Utils::dictIO(), python.rootplot.core::diffpart(), directories2html::directory2html(), runTheMatrix.TheMatrix::do_predefined(), runTheMatrix.TheMatrix::do_search(), genericValidation.ValidationWithComparison::doComparison(), SkimsCosmics_cff::documentSkims(), Skims_cff::documentSkims(), SkimsHeavyIons_cff::documentSkims(), plotscripts::doTestsForMapPlots(), validation.Validation::download(), Utils::dqmSeq(), Config.Process::dumpConfig(), getInfo::dumpIDs(), getInfo::dumpInfo(), Types._AllowedParameterTypes::dumpPython(), Mixins._Parameterizable::dumpPython(), SequenceTypes.Schedule::dumpPython(), Config.Process::dumpPython(), Types.EDAlias::dumpPython(), Config.ProcessAcceleratorTest::dumpPythonImpl(), Config.ProcessAcceleratorTest2::dumpPythonImpl(), getInfo::dumpSNs(), addOnTests.StandardTester::dumpTest(), makeLayoutFileForGui::eleRej(), cmsHarvester.DBSXMLHandler::endElement(), reco::HcalNoiseInfoProducer::fillOtherSummaryVariables(), Config.Process::filterNames(), edmConvertToStreamModule::find_all_module_classes(), dcsonly_json_2012::findFileInPath(), golden_json_2012::findFileInPath(), golden_json_2015::findFileInPath(), muon_json_2012::findFileInPath(), ztee.GZipLog::flush_block(), cmsHarvester.CMSHarvesterHelpFormatter::format_usage(), cmsswSequenceInfo::formatsequenceinfo(), utils::functor(), pkg.AbstractPkg::generate(), models::generate(), condformats_serialization_generate.SerializationCodeGenerator::generate(), generateGeometry.GeometryGenerator::generateGeom(), edm::storage::RemoteFile::get(), util.rrapi.RRApi::get(), rrapi.RRApi::get(), core.autovars.NTupleCollection::get_cpp_declaration(), web.app_utils::get_dataset_name(), web.app_utils::get_directory_summary_stats(), cmssw_cycle_finder::get_include_packages(), cmssw_cycle_finder::get_pack_list(), python.rootplot.core::get_plotpath(), tkal_create_file_lists::get_runs(), condformats_serialization_generate::get_serializable_classes_members(), utils_v2::get_size_to_download(), directories2html::get_subdirs_section(), dirstructure.Directory::get_summary_chart_name(), utils_v2::get_version(), betterConfigParser.BetterConfigParser::getAlignments(), python.Lumis::getByLabel(), python.Runs::getByLabel(), python.Events::getByLabel(), LumiList.LumiList::getCMSSWString(), dataset::getDatasetFromCache(), dataset.DataFile::getdict(), ECFAdder::getECF(), filesFinder::getFilePathsFromWalk(), confdb.HLTProcess::getRawConfigurationFromDB(), genericValidation.GenericValidationData_CTSR::getRepMap(), dataset.Dataset::getrunnumberfromfilename(), dataset::getrunnumbersfromfile(), trackselectionRefitting::getSequence(), confdb.HLTProcess::getSetupConfigurationFromDB(), GlobalTag::GlobalTag(), dqmMemoryStats.HistogramAnalyzer::group(), edmPickEvents::guessEmail(), heppy_hadd::hadd(), heppy_hadd::haddChunks(), heppy_hadd::haddRec(), esMonitoring.AsyncLineReaderMixin::handle_close(), esMonitoring.AsyncLineReaderMixin::handle_read(), dataset.MultipleDatasets::headercomment(), cmsswFiletrace::help(), runTheMatrix.TheMatrix::help_dumpWorkflowId(), runTheMatrix.TheMatrix::help_predefined(), runTheMatrix.TheMatrix::help_search(), runTheMatrix.TheMatrix::help_searchInWorkflow(), runTheMatrix.TheMatrix::help_showWorkflow(), VIDSelectorBase::id_generator(), fit::RootMinuitCommands< Function >::init(), fileTransfer::injectFile(), confdb.HLTProcess::instrumentOpenMode(), python.rootplot.tree2hists::join_cuts(), makeLayoutFileForGui::layDefaults(), MatrixToProcess.MatrixToProcess::listAll(), conddblib::listObject(), getInfo::listRuns(), python.rootplot.utilities::loadROOT(), dqm_interfaces.DQMcommunicator::ls(), MatrixUtil.InputInfo::lumiRanges(), MatrixUtil.InputInfo::lumis(), generateStandaloneCode::main(), cudaPreallocate::main(), get_ES_gain_from_tag::main(), magneticFieldFilterJSON::main(), makeHGCalValidationPlots::main(), mps_setup_new_align::main(), mps_parse_pedechi2hist::main(), das::main(), createIOVlist::main(), confdbOfflineConverter::main(), mergeLHE::main(), das_client::main(), python.rootplot.tree2hists::make_all_hists_all_files(), photons_cff::make_bitmapVID_docstring(), python.rootplot.core::make_html_index(), directories2html::make_summary_table(), gen.GeneratorAnalyzer.GeneratorAnalyzer::makeMCInfo(), mergeLHE.DefaultLHEMerger::merge(), mergeLHE.MG5LOLHEMerger::merge(), mergeLHE.ExternalCppLHEMerger::merge(), python.rootplot.core::merge_pdf(), autoSkim::mergeMapping(), miniAodFiles::miniAodFiles(), jetsAK4_Puppi_cff::nanoAOD_addDeepInfoAK4(), jetsAK4_CHS_cff::nanoAOD_addDeepInfoAK4CHS(), jetsAK8_cff::nanoAOD_addDeepInfoAK8(), cmsHarvester.CMSHarvester::option_handler_harvesting_mode(), cmsHarvester.CMSHarvester::option_handler_harvesting_type(), cmsDriverOptions::OptionsFromItems(), TreeCrawler::packageNameFromFilename(), SpecificationBuilder_cfi::parent(), uploadConditions::parse_arguments(), uploadConditions_v2::parse_arguments(), python.rootplot.core::parse_arguments(), iniparser.ConfigData::parseConfig(), createIOVlist::parser(), Config.Process::pathNames(), plotscripts::phiedges2c(), TkAlMap.TkAlMap::plot_variable_distribution(), postprocessor.PostProcessor::prefetchFile(), cmsswPreprocessor.CmsswPreprocessor::prefetchOneXrootdFile(), python.rootplot.core::prep_first_draw(), ConfigBuilder.ConfigBuilder::prepare(), ConfigBuilder.ConfigBuilder::prepare_HLT(), ConfigBuilder.ConfigBuilder::prepare_NANO(), ConfigBuilder.ConfigBuilder::prepare_NANOGEN(), ConfigBuilder.ConfigBuilder::prepare_SKIM(), batchmanager.BatchManager::PrepareJob(), das_client::print_from_cache(), ntuplePrintersDiff.TrackPrinter::printHeader(), ntuplePrintersDiff.TrackingParticlePrinter::printHits(), PhysicsObjects::printOut(), edmStreamStallGrapher::printStalledModulesInOrder(), SimpleJetAnalyzer.SimpleJetAnalyzer::process(), core.TriggerMatchAnalyzer.TriggerMatchAnalyzer::process(), Config.Process::producerNames(), Config.Process::prune(), confdbOfflineConverter.OfflineConverter::query(), getInfo::read(), PhaseITreeProducer.ModuleLvlValuesReader::ReadHistograms(), TH2PolyOfflineMaps.TH2PolyOfflineMaps::ReadHistograms(), MatrixReader.MatrixReader::readMatrix(), pickleFileParser::readPicFiles(), python.rootplot.rootinfo::recurse_thru_file(), utils_v2::recursive_search_online(), edmIntegrityCheck.IntegrityCheck::report(), contrib::CMSBoostedTauSeedingAlgorithm::result(), CMSTopTagger::result(), HEPTopTaggerV2::result(), python.rootplot.core::rootplot(), external::HEPTopTaggerV2_fixed_R::run(), CATopJetAlgorithm::run(), postprocessor.PostProcessor::run(), showPage::run(), generateGeometry.GeometryGenerator::run(), dqm_interfaces.DirWalkerDB::run(), production_tasks.RunCMSBatch::run(), production_tasks.MonitorJobs::run(), tools::run_checked(), cms::CSJetProducer::runAlgorithm(), hippyaddtobaddatafiles::runcfg(), heppy_loop::runLoop(), cmsCodeRulesChecker::runRules(), runTheMatrix::runSelected(), MatrixRunner.MatrixRunner::runTests(), TkAlMap.TkAlMap::save(), SpecificationBuilder_cfi.Specification::saveAll(), makeLayoutFileForGui::sCone(), dataformats::search(), o2o_helper::send_mail(), query::sendMessage(), cmsswSequenceInfo::serve(), cmsswConfigtrace::serve_main(), Config.ProcessAcceleratorTest::setEnabled(), Config.ProcessAcceleratorTest2::setEnabled(), ProcessAcceleratorAlpaka.ModuleTypeResolverAlpaka::setModuleVariant(), upgradeWorkflowComponents.UpgradeWorkflowPremixProdLike::setup_(), upgradeWorkflowComponents.UpgradeWorkflow_DDDDB::setup_(), upgradeWorkflowComponents.UpgradeWorkflowPremix::setupPU_(), MatrixReader.MatrixReader::showRaw(), MatrixReader.MatrixReader::showWorkFlows(), makeLayoutFileForGui::sizeSumpt(), Reco.Reco::skimming(), timingPdfMaker::specificpathinfo(), deepMETProducer_cff::split_model_path(), Config.Process::splitPython(), svgfig.SVG::standalone_xml(), personalPlayback.FrameworkJob::start_run(), Utils::stepALCAPRODUCER(), Utils::stepSKIMPRODUCER(), MatrixInjector.MatrixInjector::submit(), genericValidation.ValidationWithPlotsSummaryBase::summaryitemsstring(), svgfig.Path::SVG(), Config.Process::switchProducerNames(), checkBTagCalibrationConsistency.BtagCalibConsistencyChecker::test_coverage(), checkBTagCalibrationConsistency.BtagCalibConsistencyChecker::test_systematics_values_vs_centrals(), SequenceTypes.TestModuleCommand::testDumpPython(), svgfig.SVG::tree(), root2sqlite::treetotable(), compareDQMOutput::upload(), o2o_helper::upload_payload(), dqmd_manager::usage(), web_templates::usual_validation_dataset_template(), presentation.ValidationPlots::validationclass(), HEPTopTaggerV2Structure::W(), compare_using_files_v2.RootFileComparison::walk_through(), dataformats::wrap_always(), rltinfo.RLTInfo::write(), presentation.SubsectionBase::write(), betterConfigParser.BetterConfigParser::write(), DQMIO2histo.DQMIO::write_to_file(), MCScenario_CRAFT1_22X::write_xml(), crabConfigParser.CrabConfigParser::writeCrabConfig(), dataset::writeDatasetToCache(), cmsswFiletrace::writeoutput(), cmsswConfigtrace::writeoutput(), presentation::writePage(), MCScenario_CRAFT1_22X.Alignable::writeXML(), MCScenario_CRAFT1_22X.Position::writeXML(), MCScenario_CRAFT1_22X.Operation::writeXML(), geometryXMLparser.MuonGeometry::xml(), and svgfig.SVG::xml().

19  {
20  size_t size = 0;
21  for (char **p = cmd; p && p[0]; ++p)
22  size += 1 + strlen(*p);
23 
25  result.reserve(size);
26 
27  for (char **p = cmd; p && p[0]; ++p) {
28  if (p != cmd)
29  result += ' ';
30  result += *p;
31  }
32 
33  return result;
34 }
size
Write out results.
list cmd
Definition: mps_setup.py:244