Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
canvas
canvas
Persistency
Provenance
BranchKey.cc
Go to the documentation of this file.
1
#include "
canvas/Persistency/Provenance/BranchKey.h
"
2
#include "
canvas/Persistency/Provenance/BranchDescription.h
"
3
#include "
canvas/Persistency/Provenance/canonicalProductName.h
"
4
5
#include <ostream>
6
7
namespace
{
8
constexpr
char
underscore [[maybe_unused]]{
'_'
};
9
constexpr
char
period [[maybe_unused]]{
'.'
};
10
}
11
12
namespace
art
{
13
14
BranchKey::BranchKey
(
BranchDescription
const
&
desc
)
15
: friendlyClassName_{desc.
friendlyClassName
()}
16
,
moduleLabel_
{
desc
.moduleLabel()}
17
,
productInstanceName_
{
desc
.productInstanceName()}
18
,
processName_
{
desc
.processName()}
19
,
branchType_
{
desc
.branchType()}
20
{}
21
22
std::string
23
BranchKey::branchName
()
const
24
{
25
return
canonicalProductName
(
26
friendlyClassName_
,
moduleLabel_
,
productInstanceName_
,
processName_
);
27
}
28
29
std::ostream&
30
operator<<
(std::ostream& os,
BranchKey
const
& bk)
31
{
32
os <<
"BranchKey("
<< bk.
friendlyClassName_
<<
", "
<< bk.
moduleLabel_
33
<<
", "
<< bk.
productInstanceName_
<<
", "
<< bk.
processName_
<<
", "
34
<<
static_cast<
BranchType
>
(bk.
branchType_
) <<
')'
;
35
return
os;
36
}
37
}
string
std::string string
Definition:
nybbler.cc:12
art::BranchKey::branchName
std::string branchName() const
Definition:
BranchKey.cc:23
test_wireplots.desc
desc
Definition:
test_wireplots.py:10
art::BranchKey::productInstanceName_
std::string productInstanceName_
Definition:
BranchKey.h:45
art::operator<<
std::ostream & operator<<(std::ostream &os, const GroupSelector &gs)
Definition:
GroupSelector.cc:62
art::BranchKey::friendlyClassName_
std::string friendlyClassName_
Definition:
BranchKey.h:43
art::BranchDescription
Definition:
BranchDescription.h:41
BranchDescription.h
art::canonicalProductName
std::string canonicalProductName(std::string const &friendlyClassName, std::string const &moduleLabel, std::string const &productInstanceName, std::string const &processName)
Definition:
canonicalProductName.cc:9
art::BranchKey::BranchKey
BranchKey()=default
BranchKey.h
canonicalProductName.h
art::BranchKey
Definition:
BranchKey.h:31
art::BranchKey::processName_
std::string processName_
Definition:
BranchKey.h:46
art::BranchType
BranchType
Definition:
BranchType.h:20
art
Definition:
BasicOptionsHandler.h:9
art::BranchKey::moduleLabel_
std::string moduleLabel_
Definition:
BranchKey.h:44
art::BranchDescription::friendlyClassName
std::string const & friendlyClassName() const noexcept
Definition:
BranchDescription.h:129
art::BranchKey::branchType_
int branchType_
Definition:
BranchKey.h:47
Generated by
1.8.11