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 auto pnodes = ptr->pnodes_[ptr->CONFIG];
72 cout <<
"version : " << ptr->version_ << endl;
73 cout <<
"fwVersion : " << hex << pnodes.fwVersion_ <<
dec << endl;
74 cout <<
"LUTsPath : " << pnodes.kalmanLUTsPath_ << endl;
#define DEFINE_FWK_MODULE(type)
example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
T const * product() const
std::string hash(void *buf, size_t len) const
void analyze(const edm::Event &, const edm::EventSetup &) override
L1TMuonBarrelKalmanParamsViewer(const edm::ParameterSet &)
~L1TMuonBarrelKalmanParamsViewer(void) override