ATLAS Offline Software
Namespaces | Functions
ToolsDiscovery.cxx File Reference
#include <SampleHandler/ToolsDiscovery.h>
#include <RootCoreUtils/Assert.h>
#include <RootCoreUtils/StringUtil.h>
#include <RootCoreUtils/ThrowMsg.h>
#include <SampleHandler/DiskListLocal.h>
#include <SampleHandler/GridTools.h>
#include <SampleHandler/MetaFields.h>
#include <SampleHandler/MetaObject.h>
#include <SampleHandler/SampleGrid.h>
#include <SampleHandler/SampleHandler.h>
#include <SampleHandler/SampleLocal.h>
#include <SampleHandler/SamplePtr.h>
#include <SampleHandler/ScanDir.h>
#include <TChain.h>
#include <TChainElement.h>
#include <TFile.h>
#include <TTree.h>
#include <fstream>
#include <memory>

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

void SH::scanDir (SampleHandler &sh, DiskList &list, const std::string &pattern="*.root*", const std::string &samplePattern="*", const std::string &samplePostfix="")
 effects: scan the given directory and add all subdirectories as samples that contain root files. More...
 
void SH::scanDir (SampleHandler &sh, const std::string &dir)
 
void SH::scanDir (SampleHandler &sh, const std::string &dir, const std::string &prefix)
 
void SH::scanFiles (SampleHandler &sh, DiskList &list, const std::string &pattern="*.root*")
 effects: scan the given directory tree and make a separate sample for each file (using the file name before any "." as the sample name). More...
 
Sample * SH::makeFromTChain (const std::string &name, const TChain &chain)
 effects: create a sample with the given name from the given TChain object guarantee: strong failures: out of memory II More...
 
void SH::scanSingleDir (SampleHandler &sh, const std::string &name, DiskList &list, const std::string &pattern="*.root*")
 effects: scan the given directory tree and turn it into a single sample of the given name guarantee: strong failures: out of memory III More...
 
void SH::scanDQ2 (SampleHandler &sh, const std::string &pattern)
 effects: make a list from DQ2 using the given pattern guarantee: basic, may add partially failures: out of memory III failures: dq2-ls errors More...
 
void SH::scanRucio (SampleHandler &sh, const std::string &pattern, bool alwaysQuery=false)
 make a list of grid datasets using the given pattern More...
 
void SH::addGrid (SampleHandler &sh, const std::string &ds)
 effects: add a grid dataset for dataset ds guarantee: strong failures: out of memory II requires: ds.find ("*") == std::string::npos More...
 
void SH::addGridCombined (SampleHandler &sh, const std::string &dsName, const std::vector< std::string > &dsList)
 effects: add a combined grid dataset with name dsName for dataset list dsList guarantee: strong failures: out of memory II requires: for each dataset ds: ds.find ("*") == std::string::npos More...
 
void SH::addGridCombinedFromFile (SampleHandler &sh, const std::string &dsName, const std::string &dsFile)
 effects: add a combined grid dataset with name dsName for dataset list file dsFile guarantee: strong failures: out of memory II requires: for each dataset ds: ds.find ("*") == std::string::npos More...
 
void SH::makeGridDirect (SampleHandler &sh, const std::string &disk, const std::string &from, const std::string &to, bool allow_partial)
 effects: update all grid samples in the sample handler that are located on the given disk to be opened directly. More...
 
void SH::scanForTrees (SampleHandler &sh, Sample &sample, const std::string &pattern=".*")
 effects: scan for trees in the given sample (or sample handler), and create a separate sample for each tree. More...
 
void SH::scanForTrees (SampleHandler &sh, const std::string &pattern)
 
void SH::readFileList (SampleHandler &sh, const std::string &name, const std::string &file)
 effects: read a file list from a text file guarantee: strong failures: out of memory III failures: i/o errors More...