Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
CondCore
TagCollection
src
PfnEditor.cc
Go to the documentation of this file.
1
#include "
CondCore/TagCollection/interface/PfnEditor.h
"
2
3
namespace
cond{
4
5
PfnEditor::PfnEditor
() : off(
true
){}
6
7
PfnEditor::PfnEditor
(
std::string
const
& ipre,
8
std::string
const
& ipos) :
9
prefix
(ipre),
10
postfix(ipos),
11
off(
prefix
.
empty
() && postfix.
empty
())
12
{}
13
14
15
std::string
PfnEditor::operator()
(
std::string
const
&
pfn
)
const
{
16
if
(
off
)
return
pfn
;
17
// FIXME ad-hoc
18
if
(pfn.find(
"FrontierInt"
)!=std::string::npos)
return
pfn;
19
if
(pfn.find(
"FrontierPrep"
)!=std::string::npos)
return
pfn;
20
if
(pfn.find(
"sqlite"
)!=std::string::npos)
return
pfn;
21
22
size_t
pos=std::string::npos;
23
if
(!
prefix
.empty()) pos = pfn.rfind(
'/'
);
24
return
prefix
+ ( (pos == std::string::npos) ? pfn :
25
pfn.substr(pos+1)
26
) +
postfix
;
27
}
28
29
}
relativeConstraints.empty
empty
Definition:
relativeConstraints.py:45
cond::PfnEditor::off
bool off
Definition:
PfnEditor.h:21
dbtoconf.pfn
list pfn
Definition:
dbtoconf.py:76
PfnEditor.h
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
funct::true
true
Definition:
Factorize.h:183
cond::PfnEditor::prefix
std::string prefix
Definition:
PfnEditor.h:19
cond::PfnEditor::postfix
std::string postfix
Definition:
PfnEditor.h:20
cond::PfnEditor::PfnEditor
PfnEditor()
Definition:
PfnEditor.cc:5
prof2calltree.prefix
list prefix
Definition:
prof2calltree.py:21
cond::PfnEditor::operator()
std::string operator()(std::string const &pfn) const
Definition:
PfnEditor.cc:15
Generated for CMSSW Reference Manual by
1.8.5