Definition at line 69 of file TFileAdaptor.cc.
References addType(), StorageFactory::CACHE_HINT_APPLICATION, StorageFactory::CACHE_HINT_AUTO_DETECT, StorageFactory::CACHE_HINT_LAZY_DOWNLOAD, StorageFactory::CACHE_HINT_STORAGE, cacheHint_, edm::SiteLocalConfig::debugLevel(), debugLevel_, doStats_, StorageFactory::enableAccounting(), enabled_, edm::SiteLocalConfig::enablePrefetching(), enablePrefetching_, Exception, f, StorageFactory::getToModify(), edm::ParameterSet::getUntrackedParameter(), edm::Service< T >::isAvailable(), minFree_, native(), native_, AlCaHLTBitMon_ParallelJobs::p, StorageFactory::READ_HINT_AUTO, StorageFactory::READ_HINT_READAHEAD, StorageFactory::READ_HINT_UNBUFFERED, readHint_, StorageFactory::setCacheHint(), StorageFactory::setDebugLevel(), StorageFactory::setReadHint(), StorageFactory::setTempDir(), StorageFactory::setTimeout(), edm::SiteLocalConfig::sourceCacheHint(), edm::SiteLocalConfig::sourceCacheMinFree(), edm::SiteLocalConfig::sourceCacheTempDir(), edm::SiteLocalConfig::sourceNativeProtocols(), edm::SiteLocalConfig::sourceReadHint(), edm::SiteLocalConfig::sourceTimeout(), AlCaHLTBitMon_QueryRunRegistry::string, tempDir_, StorageFactory::tempMinFree(), StorageFactory::tempPath(), termination(), timeout_, and edm::ActivityRegistry::watchPostEndJob().
125 if ((
enablePrefetching_) && ((cacheHint_ ==
"storage-only") || (cacheHint_ ==
"auto-detect")))
126 cacheHint_ =
"application-only";
129 if (cacheHint_ ==
"application-only")
131 else if (cacheHint_ ==
"storage-only")
133 else if (cacheHint_ ==
"lazy-download")
135 else if (cacheHint_ ==
"auto-detect")
138 throw cms::Exception(
"TFileAdaptor") <<
"Unrecognised 'cacheHint' value '" << cacheHint_
139 <<
"', recognised values are 'application-only'," 140 <<
" 'storage-only', 'lazy-download', 'auto-detect'";
142 if (readHint_ ==
"direct-unbuffered")
144 else if (readHint_ ==
"read-ahead-buffered")
146 else if (readHint_ ==
"auto-detect")
149 throw cms::Exception(
"TFileAdaptor") <<
"Unrecognised 'readHint' value '" << readHint_
150 <<
"', recognised values are 'direct-unbuffered'," 151 <<
" 'read-ahead-buffered', 'auto-detect'";
163 TPluginManager* mgr = gROOT->GetPluginManager();
166 mgr->LoadHandlersFromPluginDirs(
"TFile");
167 mgr->LoadHandlersFromPluginDirs(
"TSystem");
virtual std::string const * sourceReadHint() const =0
virtual std::string const * sourceCacheHint() const =0
bool enableAccounting(bool enabled)
bool native(char const *proto) const
virtual std::string const * sourceCacheTempDir() const =0
void watchPostEndJob(PostEndJob::slot_type const &iSlot)
std::string tempPath(void) const
void setTimeout(unsigned int timeout)
void setReadHint(ReadHint value)
virtual unsigned int debugLevel() const =0
double tempMinFree(void) const
virtual double const * sourceCacheMinFree() const =0
void setDebugLevel(unsigned int level)
virtual std::vector< std::string > const * sourceNativeProtocols() const =0
std::vector< std::string > native_
static void addType(TPluginManager *mgr, char const *type, int altType=0)
void setTempDir(const std::string &s, double minFreeSpace)
void setCacheHint(CacheHint value)
void termination(void) const
virtual unsigned int const * sourceTimeout() const =0
static StorageFactory * getToModify(void)
virtual bool enablePrefetching() const =0