00001 #ifndef SAMPLE_HANDLER_TOOLS_DISCOVERY_H
00002 #define SAMPLE_HANDLER_TOOLS_DISCOVERY_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00017
00018
00019
00020
00021 #include <SampleHandler/Global.h>
00022
00023 #include <RootCoreUtils/Deprecated.h>
00024 #include <string>
00025
00026 class TChain;
00027
00028 namespace SH
00029 {
00040 RCU_DEPRECATED ("please use new ScanDir() mechanism instead")
00041 void scanDir (SampleHandler& sh, DiskList& list,
00042 const std::string& pattern = "*.root*",
00043 const std::string& samplePattern = "*",
00044 const std::string& samplePostfix = "");
00045 RCU_DEPRECATED ("please use new ScanDir() mechanism instead")
00046 void scanDir (SampleHandler& sh, const std::string& dir);
00047 RCU_DEPRECATED ("please use new ScanDir() mechanism instead")
00048 void scanDir (SampleHandler& sh, const std::string& dir,
00049 const std::string& prefix);
00050
00051
00056 RCU_DEPRECATED ("please use new ScanDir() mechanism instead")
00057 void scanSingleDir (SampleHandler& sh, const std::string& name,
00058 DiskList& list, const std::string& pattern = "*.root*");
00059
00060
00068 RCU_DEPRECATED ("please use new ScanDir() mechanism instead")
00069 void scanFiles (SampleHandler& sh, DiskList& list,
00070 const std::string& pattern = "*.root*");
00071
00072
00077 Sample *makeFromTChain (const std::string& name, const TChain& chain);
00078
00079
00084 RCU_DEPRECATED ("please use scanRucio instead")
00085 void scanDQ2 (SampleHandler& sh, const std::string& pattern);
00086
00087
00108 void scanRucio (SampleHandler& sh, const std::string& pattern,
00109 bool alwaysQuery = false);
00110
00111
00116 void addGrid (SampleHandler& sh, const std::string& ds);
00117
00118
00128 void makeGridDirect (SampleHandler& sh, const std::string& disk,
00129 const std::string& from, const std::string& to,
00130 bool allow_partial);
00131
00132
00139 void scanForTrees (SampleHandler& sh, const Sample& sample,
00140 const std::string& pattern = ".*");
00141 void scanForTrees (SampleHandler& sh, const std::string& pattern = ".*");
00142
00143
00148 void readFileList (SampleHandler& sh, const std::string& name,
00149 const std::string& file);
00150 }
00151
00152 #endif