ATLAS Offline Software
Namespaces | Functions
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

 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 More...
 
bool SH::checkVomsProxy ()
 return whether we have a valid VOMS proxy available More...
 
void SH::ensureVomsProxy ()
 ensure that we have a valid VOMS proxy available More...
 
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) More...
 
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) More...
 
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) More...
 
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) More...
 
std::vector< RucioListDidsEntry > SH::rucioListDids (const std::string &dataset)
 run rucio-list-dids for the given dataset More...
 
std::vector< RucioListFileReplicasEntry > SH::rucioListFileReplicas (const std::string &dataset)
 run rucio-list-file-replicas for the given dataset More...
 
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 More...
 
RucioDownloadResult SH::rucioDownload (const std::string &location, const std::string &dataset)
 run rucio-download More...
 
std::vector< RucioDownloadResult > SH::rucioDownloadList (const std::string &location, const std::vector< std::string > &datasets)
 run rucio-download with multiple datasets More...
 
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 More...