38 #include <openssl/sha.h>
44 char tmp[SHA_DIGEST_LENGTH * 2 + 1];
48 throw cms::Exception(
"L1TMuonGlobalParamsViewer::hash") <<
"SHA1 initialization error";
50 if (!SHA1_Update(&ctx,
buf, len))
51 throw cms::Exception(
"L1TMuonGlobalParamsViewer::hash") <<
"SHA1 processing error";
53 unsigned char hash[SHA_DIGEST_LENGTH];
54 if (!SHA1_Final(
hash, &ctx))
55 throw cms::Exception(
"L1TMuonGlobalParamsViewer::hash") <<
"SHA1 finalization error";
58 for (
unsigned int i = 0;
i < 20;
i++)
67 cout <<
" " << std::setw(24) <<
name <<
"[" << lut->
maxSize() <<
"] " << flush;
69 for (
unsigned int i = 0;
i < lut->
maxSize();
i++)
73 cout <<
" " << std::setw(24) <<
name <<
"[0]" << endl;
87 printLUT(ptr1.get()->absIsoCheckMemLUT(),
"absIsoCheckMemLUT");
88 printLUT(ptr1.get()->absIsoCheckMemLUT(),
"absIsoCheckMemLUT");
89 printLUT(ptr1.get()->relIsoCheckMemLUT(),
"relIsoCheckMemLUT");
90 printLUT(ptr1.get()->idxSelMemPhiLUT(),
"idxSelMemPhiLUT");
91 printLUT(ptr1.get()->idxSelMemEtaLUT(),
"idxSelMemEtaLUT");
93 printLUT(ptr1.get()->fwdPosSingleMatchQualLUT(),
"fwdPosSingleMatchQualLUT");
94 printLUT(ptr1.get()->fwdNegSingleMatchQualLUT(),
"fwdNegSingleMatchQualLUT");
95 printLUT(ptr1.get()->ovlPosSingleMatchQualLUT(),
"ovlPosSingleMatchQualLUT");
96 printLUT(ptr1.get()->ovlNegSingleMatchQualLUT(),
"ovlNegSingleMatchQualLUT");
97 printLUT(ptr1.get()->bOPosMatchQualLUT(),
"bOPosMatchQualLUT");
98 printLUT(ptr1.get()->bONegMatchQualLUT(),
"bONegMatchQualLUT");
99 printLUT(ptr1.get()->fOPosMatchQualLUT(),
"fOPosMatchQualLUT");
100 printLUT(ptr1.get()->fONegMatchQualLUT(),
"fONegMatchQualLUT");
101 printLUT(ptr1.get()->bPhiExtrapolationLUT(),
"bPhiExtrapolationLUT");
102 printLUT(ptr1.get()->oPhiExtrapolationLUT(),
"oPhiExtrapolationLUT");
103 printLUT(ptr1.get()->fPhiExtrapolationLUT(),
"fPhiExtrapolationLUT");
104 printLUT(ptr1.get()->bEtaExtrapolationLUT(),
"bEtaExtrapolationLUT");
105 printLUT(ptr1.get()->oEtaExtrapolationLUT(),
"oEtaExtrapolationLUT");
106 printLUT(ptr1.get()->fEtaExtrapolationLUT(),
"fEtaExtrapolationLUT");
107 printLUT(ptr1.get()->sortRankLUT(),
"sortRankLUT");
109 std::cout <<
"absIsoCheckMemLUTPath: " << ptr1.get()->absIsoCheckMemLUTPath() << std::endl;
110 std::cout <<
"relIsoCheckMemLUTPath: " << ptr1.get()->relIsoCheckMemLUTPath() << std::endl;
111 std::cout <<
"idxSelMemPhiLUTPath: " << ptr1.get()->idxSelMemPhiLUTPath() << std::endl;
112 std::cout <<
"idxSelMemEtaLUTPath: " << ptr1.get()->idxSelMemEtaLUTPath() << std::endl;
114 std::cout <<
"fwdPosSingleMatchQualLUTPath: " << ptr1.get()->fwdPosSingleMatchQualLUTPath() << std::endl;
115 std::cout <<
"fwdNegSingleMatchQualLUTPath: " << ptr1.get()->fwdNegSingleMatchQualLUTPath() << std::endl;
116 std::cout <<
"ovlPosSingleMatchQualLUTPath: " << ptr1.get()->ovlPosSingleMatchQualLUTPath() << std::endl;
117 std::cout <<
"ovlNegSingleMatchQualLUTPath: " << ptr1.get()->ovlNegSingleMatchQualLUTPath() << std::endl;
118 std::cout <<
"bOPosMatchQualLUTPath: " << ptr1.get()->bOPosMatchQualLUTPath() << std::endl;
119 std::cout <<
"bONegMatchQualLUTPath: " << ptr1.get()->bONegMatchQualLUTPath() << std::endl;
120 std::cout <<
"fOPosMatchQualLUTPath: " << ptr1.get()->fOPosMatchQualLUTPath() << std::endl;
121 std::cout <<
"fONegMatchQualLUTPath: " << ptr1.get()->fONegMatchQualLUTPath() << std::endl;
122 std::cout <<
"bPhiExtrapolationLUTPath: " << ptr1.get()->bPhiExtrapolationLUTPath() << std::endl;
123 std::cout <<
"oPhiExtrapolationLUTPath: " << ptr1.get()->oPhiExtrapolationLUTPath() << std::endl;
124 std::cout <<
"fPhiExtrapolationLUTPath: " << ptr1.get()->fPhiExtrapolationLUTPath() << std::endl;
125 std::cout <<
"bEtaExtrapolationLUTPath: " << ptr1.get()->bEtaExtrapolationLUTPath() << std::endl;
126 std::cout <<
"oEtaExtrapolationLUTPath: " << ptr1.get()->oEtaExtrapolationLUTPath() << std::endl;
127 std::cout <<
"fEtaExtrapolationLUTPath: " << ptr1.get()->fEtaExtrapolationLUTPath() << std::endl;
128 std::cout <<
"sortRankLUTPath: " << ptr1.get()->sortRankLUTPath() << std::endl;
130 std::cout <<
"fwdPosSingleMatchQualLUTMaxDR: " << ptr1.get()->fwdPosSingleMatchQualLUTMaxDR() << std::endl;
131 std::cout <<
"fwdNegSingleMatchQualLUTMaxDR: " << ptr1.get()->fwdNegSingleMatchQualLUTMaxDR() << std::endl;
132 std::cout <<
"ovlPosSingleMatchQualLUTMaxDR: " << ptr1.get()->ovlPosSingleMatchQualLUTMaxDR() << std::endl;
133 std::cout <<
"ovlNegSingleMatchQualLUTMaxDR: " << ptr1.get()->ovlNegSingleMatchQualLUTMaxDR() << std::endl;
134 std::cout <<
"bOPosMatchQualLUTMaxDR: " << ptr1.get()->bOPosMatchQualLUTMaxDR() << std::endl;
135 std::cout <<
"bONegMatchQualLUTMaxDR: " << ptr1.get()->bONegMatchQualLUTMaxDR() << std::endl;
136 std::cout <<
"bOPosMatchQualLUTMaxDREtaFine: " << ptr1.get()->bOPosMatchQualLUTMaxDREtaFine() << std::endl;
137 std::cout <<
"bONegMatchQualLUTMaxDREtaFine: " << ptr1.get()->bONegMatchQualLUTMaxDREtaFine() << std::endl;
138 std::cout <<
"fOPosMatchQualLUTMaxDR: " << ptr1.get()->fOPosMatchQualLUTMaxDR() << std::endl;
139 std::cout <<
"fONegMatchQualLUTMaxDR: " << ptr1.get()->fONegMatchQualLUTMaxDR() << std::endl;
142 std::cout <<
"sortRankLUTPtFactor: " << ptr1.get()->sortRankLUTPtFactor() << std::endl;
143 std::cout <<
"sortRankLUTQualFactor: " << ptr1.get()->sortRankLUTQualFactor() << std::endl;