LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
BranchID.cc
Go to the documentation of this file.
2 #include "cetlib/crc32.h"
4 #include <ostream>
5 
6 namespace art {
7 
9  BranchID::toID(std::string const& branchName)
10  {
11  auto const& check = cet::crc32{branchName}.digest();
12  mf::LogDebug("BranchID") << "Product created with branch id: "
13  << "[" << check << "] "
14  << "from branch name: "
15  << "\"" << branchName << "\"";
16  return check;
17  }
18 
19  std::ostream&
20  operator<<(std::ostream& os, BranchID const& id)
21  {
22  os << id.id();
23  return os;
24  }
25 }
std::ostream & operator<<(std::ostream &os, EDAnalyzer::Table< T > const &t)
Definition: EDAnalyzer.h:184
static value_type toID(std::string const &branchName)
Definition: BranchID.cc:9
MaybeLogger_< ELseverityLevel::ELsev_success, false > LogDebug
HLT enums.
unsigned int value_type
Definition: BranchID.h:17