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::string string
Definition: nybbler.cc:12
bool check(const std::vector< std::vector< float > > &outputs)
std::ostream & operator<<(std::ostream &os, const GroupSelector &gs)
static value_type toID(std::string const &branchName)
Definition: BranchID.cc:9
MaybeLogger_< ELseverityLevel::ELsev_success, false > LogDebug
constexpr digest_t digest() const
Definition: crc32.h:138
unsigned int value_type
Definition: BranchID.h:18