32 #include <openssl/sha.h>
38 char tmp[SHA_DIGEST_LENGTH * 2 + 1];
39 bzero(tmp,
sizeof(tmp));
42 throw cms::Exception(
"L1TMuonBarrelKalmanParamsViewer::hash") <<
"SHA1 initialization error";
44 if (!SHA1_Update(&ctx, buf, len))
45 throw cms::Exception(
"L1TMuonBarrelKalmanParamsViewer::hash") <<
"SHA1 processing error";
47 unsigned char hash[SHA_DIGEST_LENGTH];
48 if (!SHA1_Final(hash, &ctx))
49 throw cms::Exception(
"L1TMuonBarrelKalmanParamsViewer::hash") <<
"SHA1 finalization error";
52 for (
unsigned int i = 0;
i < 20;
i++)
53 ::sprintf(&tmp[
i * 2],
"%02x", hash[i]);
65 auto pnodes = ptr->pnodes_[ptr->CONFIG];
66 cout <<
"version : " << ptr->version_ << endl;
67 cout <<
"fwVersion : " << hex << pnodes.fwVersion_ <<
dec << endl;
68 cout <<
"LUTsPath : " << pnodes.kalmanLUTsPath_ << endl;
#define DEFINE_FWK_MODULE(type)
std::string hash(void *buf, size_t len) const
example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
void analyze(const edm::Event &, const edm::EventSetup &) override
T const * product() const
L1TMuonBarrelKalmanParamsViewer(const edm::ParameterSet &)
~L1TMuonBarrelKalmanParamsViewer(void) override