LArSoft  v09_90_00
Liquid Argon Software toolkit - https://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, const GroupSelector &gs)
static value_type toID(std::string const &branchName)
Definition: BranchID.cc:9
unsigned int value_type
Definition: BranchID.h:18
MaybeLogger_< ELseverityLevel::ELsev_success, false > LogDebug
Definition: MVAAlg.h:12