#include <FileLocator.h>
Classes | |
struct | Rule |
Public Member Functions | |
FileLocator (edm::CatalogAttributes const &catAttr, unsigned iCatalog=0, std::string const &storageDescriptionPath=std::string()) | |
FileLocator (std::string const &catUrl, unsigned iCatalog=0) | |
std::string | pfn (std::string const &ilfn, edm::CatalogType catType) const |
~FileLocator () | |
Private Types | |
typedef std::map< std::string, Rules > | ProtocolRules |
typedef std::vector< Rule > | Rules |
Private Member Functions | |
std::string | applyRules (ProtocolRules const &protocolRules, std::string const &protocol, std::string const &destination, bool direct, std::string name) const |
std::string | convert (std::string const &input, ProtocolRules const &rules, bool direct) const |
void | init (edm::CatalogAttributes const &input_dataCatalog, unsigned iCatalog, std::string const &storageDescriptionPath) |
void | init_trivialCatalog (std::string const &catUrl, unsigned iCatalog) |
void | parseRule (boost::property_tree::ptree::value_type const &storageRule, std::string const &protocol, ProtocolRules &rules) |
void | parseRuleTrivialCatalog (tinyxml2::XMLElement *ruleNode, ProtocolRules &rules) |
Private Attributes | |
std::string | m_destination |
ProtocolRules | m_directRules |
ProtocolRules | m_directRules_trivialCatalog |
std::string | m_filename |
std::string | m_fileType |
ProtocolRules | m_inverseRules |
std::string | m_prefix |
std::vector< std::string > | m_protocols |
Static Private Attributes | |
static int | s_numberOfInstances |
Definition at line 15 of file FileLocator.h.
|
private |
Definition at line 42 of file FileLocator.h.
|
private |
Definition at line 41 of file FileLocator.h.
|
explicit |
Definition at line 53 of file FileLocator.cc.
References init().
|
explicit |
Definition at line 49 of file FileLocator.cc.
References init_trivialCatalog().
edm::FileLocator::~FileLocator | ( | ) |
Definition at line 60 of file FileLocator.cc.
|
private |
Definition at line 316 of file FileLocator.cc.
References HLTMuonOfflineAnalyzer_cff::destination, mps_fire::i, Skims_PA_cff::name, findAndChange::protocol, cmsCodeRulesChecker::rules, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by convert().
|
private |
Definition at line 68 of file FileLocator.cc.
References applyRules(), input, m_destination, m_prefix, m_protocols, MillePedeFileConverter_cfg::out, pi, cmsCodeRulesChecker::rules, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by pfn().
|
private |
Definition at line 223 of file FileLocator.cc.
References cms::Exception::addContext(), MillePedeFileConverter_cfg::e, edm::CatalogAttributes::empty(), cppFunctionSkipper::exception, edm::Service< T >::isAvailable(), fwlite::kEmptyString, m_directRules, m_prefix, m_protocols, parseRule(), castor_dqm_sourceclient_file_cfg::path, findAndChange::protocol, edm::CatalogAttributes::protocol, cmsCodeRulesChecker::rules, edm::CatalogAttributes::storageSite, AlCaHLTBitMon_QueryRunRegistry::string, and edm::CatalogAttributes::volume.
Referenced by FileLocator().
|
private |
Definition at line 129 of file FileLocator.cc.
References findQualityFiles::comma, GCPpyPlots::configFile, hcalRecHitTable_cff::doc, Exception, edm::Service< T >::isAvailable(), m_destination, m_directRules_trivialCatalog, m_filename, m_inverseRules, m_protocols, fileinputsource_cfi::option, parseRuleTrivialCatalog(), submitPVValidationJobs::split(), AlCaHLTBitMon_QueryRunRegistry::string, and relmon_authenticated_wget::url.
Referenced by FileLocator().
|
private |
Definition at line 113 of file FileLocator.cc.
References Exception, eostools::move(), edm::FileLocator::Rule::pathMatch, findAndChange::protocol, mps_fire::result, cmsCodeRulesChecker::rules, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by init().
|
private |
Definition at line 90 of file FileLocator.cc.
References Exception, eostools::move(), or, edm::FileLocator::Rule::pathMatch, findAndChange::protocol, mps_fire::result, cmsCodeRulesChecker::rules, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by init_trivialCatalog().
std::string edm::FileLocator::pfn | ( | std::string const & | ilfn, |
edm::CatalogType | catType | ||
) | const |
Definition at line 62 of file FileLocator.cc.
References convert(), m_directRules, m_directRules_trivialCatalog, and edm::TrivialCatalog.
|
private |
Definition at line 72 of file FileLocator.h.
Referenced by convert(), and init_trivialCatalog().
|
private |
Direct rules are used to do the mapping from LFN to PFN taken from storage.json
Definition at line 67 of file FileLocator.h.
|
private |
Direct rules are used to do the mapping from LFN to PFN.
Definition at line 63 of file FileLocator.h.
Referenced by init_trivialCatalog(), and pfn().
|
private |
Definition at line 70 of file FileLocator.h.
Referenced by init_trivialCatalog().
|
private |
Definition at line 69 of file FileLocator.h.
|
private |
Inverse rules are used to do the mapping from PFN to LFN
Definition at line 65 of file FileLocator.h.
Referenced by init_trivialCatalog().
|
private |
Definition at line 73 of file FileLocator.h.
|
private |
Definition at line 71 of file FileLocator.h.
Referenced by convert(), init(), and init_trivialCatalog().
|
staticprivate |
For the time being the only allowed configuration item is a prefix to be added to the GUID/LFN.
Definition at line 32 of file FileLocator.h.