40 const EVP_MD *md = EVP_get_digestbyname(
"SHA1");
41 if (!EVP_DigestInit_ex(mdctx, md,
nullptr))
42 throw cms::Exception(
"L1TMuonBarrelKalmanParamsViewer::hash") <<
"SHA1 initialization error";
44 if (!EVP_DigestUpdate(mdctx,
buf, len))
45 throw cms::Exception(
"L1TMuonBarrelKalmanParamsViewer::hash") <<
"SHA1 processing error";
47 unsigned char hash[EVP_MAX_MD_SIZE];
48 unsigned int md_len = 0;
49 if (!EVP_DigestFinal_ex(mdctx,
hash, &md_len))
50 throw cms::Exception(
"L1TMuonBarrelKalmanParamsViewer::hash") <<
"SHA1 finalization error";
55 char tmp[EVP_MAX_MD_SIZE * 2 + 1];
58 for (
unsigned int i = 0;
i < md_len;
i++)
71 cout <<
"fwVersion : " << hex << pnodes.fwVersion_ <<
dec << endl;
72 cout <<
"LUTsPath : " << pnodes.kalmanLUTsPath_ << endl;
std::vector< Node > pnodes_
example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
edm::ESGetToken< L1TMuonBarrelKalmanParams, L1TMuonBarrelKalmanParamsRcd > token_
std::string hash(void *buf, size_t len) const
#define DEFINE_FWK_MODULE(type)
bool getData(T &iHolder) const
void analyze(const edm::Event &, const edm::EventSetup &) override
L1TMuonBarrelKalmanParamsViewer(const edm::ParameterSet &)