ATLAS Offline Software
Loading...
Searching...
No Matches
GridTools.cxx File Reference
#include <SampleHandler/GridTools.h>
#include <AsgMessaging/MessageCheck.h>
#include <RootCoreUtils/Assert.h>
#include <RootCoreUtils/ShellExec.h>
#include <RootCoreUtils/StringUtil.h>
#include <RootCoreUtils/ThrowMsg.h>
#include <SampleHandler/MetaObject.h>
#include <CxxUtils/checker_macros.h>
#include <TSystem.h>
#include <chrono>
#include <fstream>
#include <mutex>

Go to the source code of this file.

Namespaces

namespace  SH
 This module provides a lot of global definitions, forward declarations and includes that are used by all modules.

Functions

const std::string & SH::downloadStageEnvVar ()
 the name of the environment variable containing the directory for staging files from the grid
bool SH::checkVomsProxy ()
 return whether we have a valid VOMS proxy available
void SH::ensureVomsProxy ()
 ensure that we have a valid VOMS proxy available
std::vector< std::string > SH::faxListFilesGlob (const std::string &name, const std::string &filter)
 list the FAX URLs for all the files in the dataset or dataset container matching the given filter (as glob expression)
std::vector< std::string > SH::faxListFilesRegex (const std::string &name, const std::string &filter)
 list the FAX URLs for all the files in the dataset or dataset container matching the given filter (as regular expression)
std::vector< std::string > SH::rucioDirectAccessGlob (const std::string &name, const std::string &filter, const std::string &selectOptions)
 list the rucio URLs for all the files in the dataset or dataset container matching the given filter (as glob expression)
std::vector< std::string > SH::rucioDirectAccessRegex (const std::string &name, const std::string &filter, const std::string &selectOptions)
 list the rucio URLs for all the files in the dataset or dataset container matching the given filter (as regular expression)
std::vector< RucioListDidsEntrySH::rucioListDids (const std::string &dataset)
 run rucio-list-dids for the given dataset
std::vector< RucioListFileReplicasEntrySH::rucioListFileReplicas (const std::string &dataset)
 run rucio-list-file-replicas for the given dataset
std::map< std::string, std::unique_ptr< MetaObject > > SH::rucioGetMetadata (const std::set< std::string > &datasets)
 run rucio-get-metadata for the given list of datasets
RucioDownloadResult SH::rucioDownload (const std::string &location, const std::string &dataset)
 run rucio-download
std::vector< RucioDownloadResultSH::rucioDownloadList (const std::string &location, const std::vector< std::string > &datasets)
 run rucio-download with multiple datasets
std::vector< std::string > SH::rucioCacheDatasetGlob (const std::string &location, const std::string &dataset, const std::string &fileGlob)
 download the dataset, and return a list matching the pattern