Go to the documentation of this file.00001
00002
00003
00004
00005
00006 #include <ostream>
00007
00008 #include "DataFormats/Provenance/interface/BranchKey.h"
00009 #include "DataFormats/Provenance/interface/BranchDescription.h"
00010 #include "DataFormats/Provenance/interface/ConstBranchDescription.h"
00011
00012
00013 namespace edm
00014 {
00015 BranchKey::BranchKey(BranchDescription const& desc) :
00016 friendlyClassName_(desc.friendlyClassName()),
00017 moduleLabel_(desc.moduleLabel()),
00018 productInstanceName_(desc.productInstanceName()),
00019 processName_(desc.processName()) {}
00020
00021 BranchKey::BranchKey(ConstBranchDescription const& desc) :
00022 friendlyClassName_(desc.friendlyClassName()),
00023 moduleLabel_(desc.moduleLabel()),
00024 productInstanceName_(desc.productInstanceName()),
00025 processName_(desc.processName()) {}
00026
00027 std::ostream&
00028 operator<<(std::ostream& os, BranchKey const& bk) {
00029 os << "BranchKey("
00030 << bk.friendlyClassName_ << ", "
00031 << bk.moduleLabel_ << ", "
00032 << bk.productInstanceName_ << ", "
00033 << bk.processName_ << ')';
00034 return os;
00035 }
00036
00037
00038 }