CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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

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

Definition at line 18 of file RemoteFile.cc.

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

Referenced by counter.Counter::__add__(), VIDSelectorBase.VIDSelectorBase::__call__(), tfile.TFileService::__init__(), DictTypes.SortedKeysDict::__repr__(), TriggerObject.TriggerObject::__str__(), DiObject.DiObject::__str__(), rltinfo.RLTInfo::__str__(), event.Event::__str__(), Tau.Tau::__str__(), DiObject.DiElectron::__str__(), analyzer.Analyzer::__str__(), VBF.VBF::__str__(), TriggerAnalyzer::__str__(), counter.Counters::__str__(), chain.Chain::_guessTreeName(), Impl.AlCa.AlCa::alcaSkim(), primaryVertexValidation.PrimaryVertexValidation::appendToMerge(), trackSplittingValidation.TrackSplittingValidation::appendToMerge(), Histogrammer.Histogrammer::beginLoop(), geometry.Alignables::create_children_list(), web.dbfile2html::create_page(), tools::create_single_iov_db(), pickleFileCreater::createPickleFile(), web.dbfile2html::dbfile2html(), EnviromentSettings::detectEnviroment(), Utils::dictIO(), Skims_cff::documentSkims(), SkimsCosmics_cff::documentSkims(), SkimsHeavyIons_cff::documentSkims(), Utils::dqmSeq(), edmConvertToStreamModule::find_all_module_classes(), golden_json_2012::findFileInPath(), dcsonly_json_2012::findFileInPath(), golden_json_2015::findFileInPath(), muon_json_2012::findFileInPath(), ztee.GZipLog::flush_block(), connectstrParser.connectstrParser::fullfrontierStr(), utils::functor(), RemoteFile::get(), filesFinder::getFilePathsFromWalk(), heppy_hadd::hadd(), heppy_hadd::haddChunks(), heppy_hadd::haddRec(), VIDSelectorBase::id_generator(), fileTransfer::injectFile(), Vispa.Plugins.EdmBrowser.EventContentDataAccessor.EventContentDataAccessor::label(), MatrixToProcess.MatrixToProcess::listAll(), generateStandaloneCode::main(), magneticFieldFilterJSON::main(), mps_parse_pedechi2hist::main(), das::main(), autoSkim::mergeMapping(), miniAodFiles::miniAodFiles(), PhysicsObjects::printOut(), SimpleJetAnalyzer.SimpleJetAnalyzer::process(), core.TriggerMatchAnalyzer.TriggerMatchAnalyzer::process(), pickleFileParser::readPicFiles(), parseEventContent::rule_to_regexp(), tools::run_checked(), MatrixRunner.MatrixRunner::runTests(), dataformats::search(), query::sendMessage(), Utils::stepALCAPRODUCER(), Utils::stepSKIMPRODUCER(), main::tmpl_dir(), dqmd_manager::usage(), web_templates::usual_validation_dataset_template(), wordWrappers::wrap_always(), dataformats::wrap_always(), wordWrappers::wrap_onspace_strict(), and rltinfo.RLTInfo::write().

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  {
29  if (p != cmd)
30  result += ' ';
31  result += *p;
32  }
33 
34  return result;
35 }
tuple result
Definition: mps_fire.py:84
string cmd
self.logger.debug(&quot;Path is now `%s&#39;&quot; % \ path)
tuple size
Write out results.