28 string hash(
void *
buf,
size_t len)
const;
31 printLayerMap =
pset.getUntrackedParameter<
bool>(
"printLayerMap",
false);
43 const EVP_MD *md = EVP_get_digestbyname(
"SHA1");
44 if (!EVP_DigestInit_ex(mdctx, md,
nullptr))
45 throw cms::Exception(
"L1TCaloParamsViewer::hash") <<
"SHA1 initialization error";
47 if (!EVP_DigestUpdate(mdctx,
buf, len))
48 throw cms::Exception(
"L1TCaloParamsViewer::hash") <<
"SHA1 processing error";
50 unsigned char hash[EVP_MAX_MD_SIZE];
51 unsigned int md_len = 0;
52 if (!EVP_DigestFinal_ex(mdctx,
hash, &md_len))
53 throw cms::Exception(
"L1TCaloParamsViewer::hash") <<
"SHA1 finalization error";
58 char tmp[EVP_MAX_MD_SIZE * 2 + 1];
61 for (
unsigned int i = 0;
i < md_len;
i++)
72 cout <<
"Some fields in L1TMuonOverlapParamsParams: " << endl;
90 cout <<
" number of general parameters: = " <<
gp->size() << endl;
96 const std::vector<L1TMuonOverlapParams::LayerMapNode> *lm = ptr1.
layerMap();
98 cout <<
" layerMap() = [" << lm->size() <<
"] ";
100 for (
unsigned int i = 0;
i < lm->size();
i++)
105 for (
unsigned int i = 0;
i < lm->size();
i++) {
109 char *
n = (
char *)(&(lm_[
i]));
111 cout <<
"0x" << hex <<
int(*(
n +
j)) <<
dec <<
", ";
118 cout <<
" layerMap() = [0] " << endl;
121 const std::vector<L1TMuonOverlapParams::RefLayerMapNode> *rlm = ptr1.
refLayerMap();
123 cout <<
" refLayerMap() = [" << rlm->size() <<
"] ";
125 for (
unsigned int i = 0;
i < rlm->size();
i++)
130 cout <<
" refLayerMap() = [0] " << endl;
133 const std::vector<L1TMuonOverlapParams::RefHitNode> *rhn = ptr1.
refHitMap();
135 cout <<
" refHitMap() = [" << rhn->size() <<
"] ";
137 for (
unsigned int i = 0;
i < rhn->size();
i++)
142 cout <<
" refHitMap() = [0] " << endl;
146 if (!gpsm->empty()) {
147 cout <<
" globalPhiStartMap() = [" << gpsm->size() <<
"] ";
148 int gpsm_[gpsm->size()];
149 for (
unsigned int i = 0;
i < gpsm->size();
i++)
150 gpsm_[
i] = (*gpsm)[
i];
151 cout <<
hash(gpsm_,
sizeof(
int) * (gpsm->size())) << endl;
153 cout <<
" globalPhiStartMap() = [0] " << endl;
156 const std::vector<L1TMuonOverlapParams::LayerInputNode> *lim = ptr1.
layerInputMap();
158 cout <<
" layerInputMap() = [" << lim->size() <<
"] ";
160 for (
unsigned int i = 0;
i < lim->size();
i++)
165 cout <<
" layerInputMap() = [0] " << endl;
170 cout <<
" connectedSectorsStart() = [" << css->size() <<
"] ";
171 int css_[css->size()];
172 for (
unsigned int i = 0;
i < css->size();
i++)
174 cout <<
hash(css_,
sizeof(
int) * (css->size())) << endl;
176 cout <<
" connectedSectorsStart() = [0] " << endl;
181 cout <<
" connectedSectorsEnd() = [" << cse->size() <<
"] ";
182 int cse_[cse->size()];
183 for (
unsigned int i = 0;
i < cse->size();
i++)
185 cout <<
hash(cse_,
sizeof(
int) * (cse->size())) << endl;
187 cout <<
" connectedSectorsEnd() = [0] " << endl;
192 cout <<
" chargeLUT = [" << clut->
maxSize() <<
"] ";
194 for (
unsigned int i = 0;
i < clut->
maxSize();
i++)
198 cout <<
" chargeLUT = [0] " << endl;
205 for (
unsigned int i = 0;
i < elut->
maxSize();
i++)
209 cout <<
" chargeLUT = [0] " << endl;
214 cout <<
" ptLUT = [" << ptlut->
maxSize() <<
"] " << flush;
216 for (
unsigned int i = 0;
i < ptlut->
maxSize();
i++)
217 ptlut_[
i] = ptlut->
data(
i);
220 cout <<
" ptLUT = [0] " << endl;
225 cout <<
" pdfLUT = [" << plut->
maxSize() <<
"] " << flush;
227 for (
unsigned int i = 0;
i < plut->
maxSize();
i++)
231 cout <<
" pdfLUT = [0] " << endl;
236 cout <<
" meanDistPhiLUT = [" << mlut->
maxSize() <<
"] " << flush;
238 for (
unsigned int i = 0;
i < mlut->
maxSize();
i++)
242 cout <<
" meanDistPhiLUT = [0] " << endl;
const std::vector< int > * generalParams() const
General definitions.
void analyze(const edm::Event &, const edm::EventSetup &) override
unsigned int maxSize() const
const l1t::LUT * chargeLUT() const
Golden Patterns definitions.
unsigned int hwNumber
short layer number used within OMTF emulator
int nGoldenPatterns() const
unsigned int logicNumber
logic numer of the layer
const std::vector< LayerMapNode > * layerMap() const
example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
const std::vector< LayerInputNode > * layerInputMap() const
edm::ESGetToken< L1TMuonOverlapParams, L1TMuonOverlapParamsRcd > token_
int nPdfAddrBits() const
Access to specific general settings.
int data(unsigned int address) const
const l1t::LUT * pdfLUT() const
unsigned fwVersion() const
#define DEFINE_FWK_MODULE(type)
bool getData(T &iHolder) const
L1TMuonOverlapParamsViewer(const edm::ParameterSet &pset)
bool bendingLayer
Is this a bending layers?
int nLogicRegions() const
int nHitsPerLayer() const
string hash(void *buf, size_t len) const
const std::vector< int > * connectedSectorsEnd() const
unsigned int connectedToLayer
const l1t::LUT * meanDistPhiLUT() const
const std::vector< RefLayerMapNode > * refLayerMap() const
const std::vector< int > * connectedSectorsStart() const
const l1t::LUT * ptLUT() const
const std::vector< RefHitNode > * refHitMap() const
const std::vector< int > * globalPhiStartMap() const
const l1t::LUT * etaLUT() const