Go to the documentation of this file.00001 #include "DataFormats/Provenance/interface/BranchID.h"
00002 #include "FWCore/Utilities/interface/CRC32Calculator.h"
00003 #include <ostream>
00004
00005 namespace edm {
00006
00007 BranchID::value_type
00008 BranchID::toID(std::string const& branchName) {
00009 cms::CRC32Calculator crc32(branchName);
00010 return crc32.checksum();
00011 }
00012
00013 std::ostream&
00014 operator<<(std::ostream& os, BranchID const& id) {
00015 os << id.id();
00016 return os;
00017 }
00018 }